create xen image from vmware image fails

I got a client that has a windows xp vmware image that I just tried to convert to xen... it didn't work

Converting from VMware to full disk format ..
.. converted image size is 40 GB

Extracting biggest partition from full disk ..
.. no Linux partitions found

What does a linux partition have to do with windows ?

Status: 
Closed (fixed)

Comments

The issue is that Cloudmin's Xen support only works with partition images currently, not entire disks .. so you cannot yet import a Windows (or Linux) image that is of a whole disk.

This is being worked on though, as part of a larger project to support HVM, installing from CDs, and non-Linux Xen instances..

So how can I convert his VMware image to xen then and allow him to use it ?

Right now, you'd have to do it manually with commands like :

qemu-img convert -f vmdk /path/to/image.vmdk -O raw /var/webmin/server-manager/windows-image.raw

Then create a /var/webmin/server-manager/windows-image.img file like :

files=windows-image.raw
desc=My Windows Image
id=windows-image
manager=xen
size=$size_of_file
rawsize=$size_of_file

Is the rawsize= in GB, MB or bytes ?

What about the size= ?

Both are in bytes.

New bug with this now...

Waiting for creation to complete ..... creation failed: Failed to extract filesystem : gzip: /var/webmin/server-manager/windows-xp.raw: not in gzip format

So I need to gzip it or is this a CM bug ?

That looks like a Cloudmin bug - however, a quick work-around is to edit /var/webmin/server-manager/windows-xp.img and add the line nocompress=1

And it looks like converted windows vmware images aren't bootable but thanks for the help.

Yeah, there is a bunch more work needed in Cloudmin before Windows will work, sorry..