Starting from Virtuozzo 7 Update 8, it is possible to migrate KVM virtual machines in live mode using the attached script.
- The source server should be running native RHEL7/CentOS7 KVM of at least version 7.3, and the version of 'qemu-kvm-ev' package on the source should be at least 2.6.0-28.el7.10.1
- By default, to make the migration work, you have to open the following ports on the destination host and reload firewall-cmd:
# firewall-cmd --permanent --add-port 49153/tcp
# firewall-cmd --permanent --add-port 49152/tcp
# firewall-cmd --reload - Make sure that virtual networks attached to the Virtual Machines are also present on the destination node:
# virsh net-list
- Run the script in the following way:
rhel_to_vz.py [-v] --vzhost=<USERNAME@HOSTNAME> --vmname=<VM_NAME> --netsource=<IF_NAME>
Example:
# ./rhel_to_vz.py --vzhost=user@vzhost.com --vmname=VM123 --netsource=br0