Migrate Linux from KVM to Nutanix AHV

Shares

Migrate Linux from KVM to Nutanix AHV is very similar to migrate Windows from KVM to Nutanix AHV (Link here)/ There is one difference, no need to install Nutanix VirtIO drivers. To find list of supported Linux operating systems by Nutanix AHV, check out Nutanix official documentation

Test Environment:

  • Guest virtual machine – CentOS 8.1
  • Nutanix AOS 5.16
  • Ubuntu 18.04 KVM

First what you have to do is mount Nutanix container onto KVM host. The next task is to convert the QCOW2 VM disk file to RAW (Nutanix AHV). The default path is /var/lib/libvirt/images but the image file location may vary. To find out exact file location you can use virsh (virsh domblklist centos81kvm) or Virtual manager (GUI).

Virtual machine disk location
qemu-img convert -f qcow2 -O raw centos81kvm.qcow2 centos81kvm.raw

Copy over the RAW file from KVM host onto Nutanix AHV container. Create VM on Nutanix AHV, when adding disk, choose the SCSI bus and CLONE FROM ADFS. In file patch provide a path to the RAW file stored on Nutanix container.

[email protected]:# alias cp="rsync -ah --progress"
[email protected]:# cp centos81kvm.raw /mnt/nutanix/
sending incremental file list
centos81kvm.raw
          5.05G  23%  428.64MB/s    0:00:37

NOTE: At first boot, CentOS VM may have issues (I saw it once when I was tetsting migration to Nutanix AHV on CentOS 8.1) with networking connectivity. Follow the below procedure to “fix” the problem (for the demo purposes I have DHCP IP address on the VM).

  1. Power VM on
  2. log in and power VM off.
  3. Remove vNIC,
  4. SAVE changes and add new vNIC.
  5. Power VM on

You can delete now source RAW image from Nutanix container and Migrate Linux from KVM to Nutanix AHV task is done 🙂
Below you can find video and watch migration process with all steps.

0 0 votes
Article Rating

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x

FOR FREE. Download Nutanix port diagrams

Join our mailing list to receive an email with instructions on how to download 19 port diagrams in MS Visio format.

NOTE: if you do not get an email within 1h, check your SPAM filters

You have Successfully Subscribed!

Don't miss any posts. Subscribe To Our Newsletter!!

Join our mailing list to receive the latest news and updates from www.vmwaremine.com.

You have Successfully Subscribed!

Pin It on Pinterest