For some specific migration scenarios, you may have to mount Nutanix container into the source hypervisor. A few years back I did create quick tutorials on how to mount Nutanix container into VMware ESXi and Microsoft Hyper-V. In this post, I will show you how to mount the Nutanix container on the Linux KVM host.
NOTE: Mounting Nutanix containers to non-Nutanix (external) systems is not supported. The only exception is when you are migrating workloads to Nutanix plarform.
First what you have to do is to add Linux KVM host IP address into the container whitelist. This can be done from Prism Element or from the command line. In advance settings of the container, on the very bottom of the applet, you have to provide KVM host IP address in the following format: IP_address/Subnert_mask. Example: for single IP address 192.168.1.190/255.255.255.255 . For subnet mask 192.168.1.0/255.255.255.0
Now, mount Nutanix container onto the KVM host. replace the IP address and destination path with your values. In the mount command, first, you put target system (Nutanix CVM IP address), second is destination path on KVM host.
sudo mount 192.168.1.40:/SelfServiceContainer /mnt/nutanix/
Now you are ready to copy VM disk files onto the Nutanix platform. In case you are looking at how to migrate VMs from KVM based hypervisors like RedHat RHV or opensource, stay tuned. I’m working on several blog posts on how with the detailed migration process.