VMware Cloud Community
thuso607
Contributor
Contributor

converting qcow2 image to vmdk image

Good day

After converting a qcow2 image to vmdk image, which is vsphere compatible. My VM is not able to do vMotion from one esxi host to another. It is also not able to create a snapshot. I used the following command to convert the image : "qemu-img convert -f qcow2 -O vmdk -o adapter_type=lsilogic vm-disk.qcow2  vm-disk.vmdk". I looked up on the internet for a solution but couldn't find any.

Any ideas what might be causing this?

Kind regards

Reply
0 Kudos
4 Replies
scott28tt
VMware Employee
VMware Employee

Without knowing what error messages you are seeing when you try those operations, it would be difficult for anyone to help.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
Reply
0 Kudos
thuso607
Contributor
Contributor

I get the error "Operation time out" when doing a vMotion and when creating a snapshot I get the error "Unable to access file since it is locked".

Regards

Reply
0 Kudos
nachogonzalez
Commander
Commander

Hey, hope you are doing fine

Can you try to perform a cold migration to another datastore and host?
(Shut down the VM --> Migrate to another host and datastore)

That will indicate if VM was created properly.

Once that is that is done try to vmotion again

All of this is assuming your vMotion network works fine and you can migrate other VMs.

Reply
0 Kudos
thuso607
Contributor
Contributor

Hi, I'm fine thanks. hope you're also fine.

I am able to perform a cold migration, however a hot migration is only succesful on the VMs that I created within the vSphere esxi host and didn't have to convert their disks from qcow2 to vmdk.

Reply
0 Kudos