How do I convert a VMware VM to a format compatible with UIS?

  1. Upload the VMware VM file to a host managed in UIS Manager. In this example, the VM file name is 1.ova. For example, upload the VM file to directory /vms/defaultShareFileSystem0 on host 10.10.10.151.

  1. If the VM file is an OVA package file, you must decompress the package file before you can convert the VM. As a best practice, create a temporary directory and decompress the OVA file in that directory.

For example, create subdirectory tmp in the /vms/defaultShareFileSystem directory, move the VM package file (1.ova) to the subdirectory, and execute the tar command to decompress the file.

root@cvknode1:/vms/defaultShareFileSystem0# mkdir tmp

root@cvknode1:/vms/defaultShareFileSystem0# ls

root@cvknode1:/vms/defaultShareFileSystem0# mv 1.ova tmp
root@cvknode1:/vms/defaultShareFileSystem0# cd tmp

root@cvknode1:/vms/defaultShareFileSystem0/tmp# tar –xf 1.ova

Figure-1 VM files extracted from the OVA package file

 

  1. Locate the .vmdk file in the directory, and then execute the qemu-img convert command to convert the .vmdk file to the qcow2 format.

qemu-img convert -O qcow2 filename out_filename

The filename argument represents the file name of the source VM image, and the out_filename argument represents the file name of the converted VM image.

Figure-2 Converting the VM image format

 

  1. Move the qcow2 image to a storage pool for VM creation.

This example moves the converted image (ykt-1) to storage pool /vms/defaultShareFileSystem0.

root@cvknode1:/vms/defaultShareFileSystem0/tmp# mv ykt-1 /vms/defaultShareFileSystem0

root@cvknode1:/vms/defaultShareFileSystem0/tmp# cd ..

root@cvknode1:/vms/defaultShareFileSystem0#ls

  1. Create a VM in UIS Manager. Select the converted image file and set the disk bus type to IDE.

In this example, select image ykt-1 from the defaultShareFileSystem0 storage pool.

  1. Start the VM and verify that the VM can operate correctly.

  1. Delete the temporary directory. In this example, delete /vms/defaultShareFileSystem0/tmp.