Ask Your Question

Revision history [back]

To launch VM in VMware environment, you have to upload seprate image to glance that can work in ESXI hypervisor.

I guess you have tried launching the instance using ordinary image in glance that usually work in KVM hypervisor.

You should upload the image with hypervisor tag as VMware. So that nova will scheadule instance at VMware host.

To do this follow the commands :

$ glance image-create --name ubuntuqcow --is-public=True --container-format=bare --disk-format=vmdk --property vmware-disktype="sparse" --property vmware-adaptertype="ide" --property hypervisor_type="vmware" < ubuntuqcow.vmdk


Here ubuntuqcow.vmdk is the image I created by my own using KVM which was in qcow2 format. Then I converted it into vmdk format using the following command:(execute the above command after converting the image to vmdk format)

$ qemu-img convert -f qcow2 ubuntuqcow2.img -O vmdk ubuntuqcow.vmdk