Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to migrate virtual machines

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to migrate the virtual machine". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to migrate the virtual machine".

There are two schemes for virtual machine migration, one is static migration and the other is dynamic migration. The so-called static is to turn off the virtual machine copy configuration file, mirror the disk to the target host, and then start it.

Dynamic migration means that the business is not terminated, and the client does not feel the termination of the service. This way is realized through storage, and then the client mounts it. Copy the created virtual machine image and configuration file to the storage, and then use the command to migrate in real time. Static migration dynamic migration

Migrate hosts from vmware to kvm http://koumm.blog.51cto.com/703525/1304461

This is a virtual machine instance that uses the live migration feature.

This requires a 2 KVM host server and a storage server similar to the following.

Please set up the DNS or host to resolve the name or IP address, usually first.

[1] the virtual machine image storage server is configured. For storage servers, you can use NFS,iSCSI, GlusterFS, and so on. This example uses a NFS storage server.

[2] configure the directory provided by the same mount point on both the KVM host server and the mount storage server on the KVM server. This example is mounted [in / data/ KVM/images].

[3] create and start a virtual machine on the KVM host server.

[4] this is all determined to perform a live migration similar to the following virtual machine running server. After completion, the virtual machine migrates another KVM host similar to the following.

Nfs output. Two kvm hosts are mounted at the same time, and the created virtual machines are stored in a directory on nfs.

[root@kvm01 ~] # virsh list Id Name State-- 3 centos7 running [root@kvm01 ~] # virsh migrate-- live centos7 qemu+ssh://192.168.0.13/system root@192.168.0.13's password:# enter the root password [root@kvm01 ~] # virsh List Id Name State-- # on another KVM Host # [root@kvm02 ~] # virsh list Id Name State-- 1 centos7 running# is migrating back to [root@kvm02 ~] # virsh migrate-- live centos7 qemu+ssh://192.168.0.12/system root@192.168.0.12's password: [root@kvm02 ~] # virsh list Id Name State-- thank you for your reading The above is the content of "how to migrate the virtual machine". After the study of this article, I believe you have a deeper understanding of how to migrate the virtual machine, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report