VMware vSphere

 View Only
  • 1.  converting qcow2 image to vmdk image

    Posted Sep 15, 2020 09:35 AM

    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



  • 2.  RE: converting qcow2 image to vmdk image

    Posted Sep 15, 2020 09:37 AM

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



  • 3.  RE: converting qcow2 image to vmdk image

    Posted Sep 15, 2020 10:49 AM

    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



  • 4.  RE: converting qcow2 image to vmdk image

    Posted Sep 15, 2020 12:22 PM

    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.



  • 5.  RE: converting qcow2 image to vmdk image

    Posted Sep 15, 2020 12:48 PM

    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.