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!

Author: Joel Carnat

@work Technical Architect and SysAdmin ; @home OpenBSD and FOSS, Karate, Kobudō, Jōdō, Bodyweight workout, Photography & Music

Leave a Reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.