Migrate a KVM Guest Using virsh
Use the virsh utility to move a KVM guest to another host.
Ensure that the following are true before proceeding:
- The KVM guest is shut down on the source host.
Note:
For live migration options, see Managed KVM Server Virtualization.
- You have administrator privileges on the source and destination hosts.
- The source and destination hosts must be mutually reachable over the network, and all required migration ports must be open on the destination host.
- CPUs on the source and destination hosts must be compatible. If the KVM guest configuration requests a CPU model or features not available on the destination, the migrated guest might fail to start.
- Shared storage (for example, NFS/iSCSI/Ceph) must be visible to both hosts, or
use
--copy-storage-allto transfer disks during migration. - The
libvirtdservice must be enabled on both hosts. See Manage the libvirtd Service.
Follow these steps to migrate a KVM guest from one host to another.