I have a 50GB Xen HVM disk image that is stored in a file on my ESX server. It contains a MBR and multiple partitions, so it is the representation of a whole disk. How can I convert this into a usable VMDK disk that I can attach to one of my VMs running on ESX ?
Would it be possible doing this with qemu-img ?
qemu-img convert -f raw disk.img -O vmdk disk.vmdk
I am asking here upfront as I expect this process to take quite a while. Also, is there anything else I need to do ?
I think that it is possible.
If the guest is a Windows server, a better way was to use VMware Converter to convert the guest directly from the Xen host to the VMware ESX host.