The principle is that 10 physical machines may have to be completed. Now, only five physical machines can be virtualized on each physical machine. These five virtual machines share a stronge, for example, if a physical machine is down or needs to be maintained, we can drag the Virtual Machine above it to reduce losses or prevent terminal services. During the migration process, the services will not be terminal, the virtual machine runs normally during migration.
Lab environment: kvm on rhel6.5.
Selinux = disabled iptables-F
Server1 192.168.3.78 redhat.example.com
192.168.3.103 rhce.example.com
Vim/etc/exports
/Var/lib/libvirt/images/* (rw, sync, no_root_squash)
/Etc/init. d/nfs start
Showmount-e check whether shared
# Vim/etc/libvirt/qemu. conf
User = "root"
Group = "root"
/Etc/init. d/lib1_d start
Server2 selinux = disabled
Iptables-F
192.168.3.78 redhat.example.com
192.168.3.103 rhce.example.com
Showmount-e 192.168.3.78
Mount 192.168.3.78:/var/lib/libvirt/images
# Vim/etc/libvirt/qemu. conf
User = "root"
Group = "root"
/Etc/init. d/lib1_d start
File ++> add connettion ++> connect to remote host check ++> enter the ip address to be synchronized in hostname. Then, the virtual machines on both hosts are located in the same host + ++> right-click Migrate and click Migrate. ++>
During the migration, you may need to enter the password of the other host. In this way, you can view the virtual machine on the second host to operate, test whether the service is interrupted during migration. You can ping to check whether the service is interrupted.