1. Home
  2. Servers
  3. KVM Migration instructions

KVM Migration instructions

This article provides you with some instructions to ensure your server migration is successful 

Please follow the below instructions to ensure the server migration is successful:

It is important to ensure you have at least 350MB or more free space available for the migration on the root mount “/” and “/” or 100MB free on your boot mount “/boot”

Also ensure you have the following installed: qemu-guest-agent, qemu-kvm, as well as libvirt on these VMs before attempting the migration.

If you are running one of the following EOL OS versions, please take note of the required packages that need to be installed prior to the migration date: 

EOL OS versions

1. Ubuntu 14

OR

2. Centos 6

See steps below on how to install these packages:

1.1) UBUNTU 14:

SSH to the server and run the following commands:

  • apt-get update && apt-get upgrade
  • apt-get install qemu-guest-agent
  • apt-get install qemu-kvm
  • apt-get install qemu*
  • apt-get install libvirt*

1.2) CENTOS 6:

SSH to the server and run the following commands:

  • Yum update –y
  • Yum install qemu-guest-agent
  • Yum install qemu-kvm
  • Yum install libvirt

2. You will need to reboot the machine once you have completed steps 1.1 or 1.2

3. Once the machine is back online will you need to verify that the Virtio driver is present, you can confirm this by running the command below:

grep -i virtio /boot/config-$(uname -r)

3.1) Please check to see you have an output similar to this:

CONFIG_BLK_MQ_VIRTIO=y

CONFIG_CAIF_VIRTIO=m

CONFIG_CRYPTO_DEV_VIRTIO=m

CONFIG_DRM_VIRTIO_GPU=m

CONFIG_HW_RANDOM_VIRTIO=m

CONFIG_NET_9P_VIRTIO=m

CONFIG_RPMSG_VIRTIO=m

CONFIG_SCSI_VIRTIO=m

CONFIG_VIRTIO=y

CONFIG_VIRTIO_BALLOON=y

CONFIG_VIRTIO_BLK=m

CONFIG_VIRTIO_BLK_SCSI=y

CONFIG_VIRTIO_CONSOLE=y

CONFIG_VIRTIO_INPUT=m

CONFIG_VIRTIO_MMIO=y

CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y

CONFIG_VIRTIO_NET=m

CONFIG_VIRTIO_PCI=y

CONFIG_VIRTIO_PCI_LEGACY=y

CONFIG_VIRTIO_VSOCKETS=m

CONFIG_VIRTIO_VSOCKETS_COMMON=m

3.2) Next, please confirm If the values of the parameters CONFIG_VIRTIO_BLK and CONFIG_VIRTIO_NET is y or m ( y = the virtio driver is included & m = the virtio driver is in the temp file system).

4. Once the above has been completed 1-grid will be able to migrate these VMs to KVM.

Updated on March 14, 2023

Was this article helpful?

Related Articles

Leave a Comment