How does virt-v2v work?
In order to convert a virtual machine from foreign hypervisors to run on KVM hypervisors, the virt-v2v utility performs the following steps:
- Retrieve guest configuration (xml) from the hypervisor
- Export a disk image
- Modify the disk image
- Create a guest on the target hypervisor
Note
virt-v2v connects to the target hypervisor using libvirt, retrieves the specified virtual machine configuration and disk path, and then transfers the disk image over the network to the conversion server. Next, we will modify this image to install a virtio driver (network and block). We will then update the guest operating system configuration to match the KVM environment that includes updating the /etc/fstab
and xorg.conf
file, rebuilding initrd, removing blkid.tab
, and finally creating a guest on the target KVM host.
Getting the virt-v2v utility
The virt-v2v utility is shipped as an RPM package. The package is available in the Fedora base channel. To install it, we will use the dnf
package manager...