Convert a Xen disk image to VMware

I run my production virtual machines on NetBSD/xen. But I’m doing all the testings on VMware Fusion.

Last week, I wanted to grab my production machine and tweak it from my testing environment.
Here’s how to convert and use a xen disk image on VMware software:

  • Transfer the disk image to you VMware host machine. Beware that the filesystem might be corrupted if you copy a disk from a running machine ;
  • Grab Qemu for the Mac and install it ;

You should now have the qemu binaries in /opt/local/bin.

Now, convert the disk image:

# /opt/local/bin/qemu-img convert -O vmdk $HOME/luuna.img $HOME/luuna.vmdk

From within VMware, attach that vmdk disk image and you’re done.

That’s All Folks!

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

%d bloggers like this: