Migration of image files

VMware to xen migration

German original: http://www.eisxen.org/49.html

To convert a Linux VMWare Image to a normal image, below the most important commands:

qemu-img convert -f vmdk /var/vmware/vm/vm01.vmdk \
        -O raw /tmp/vmimage.raw
fdisk -l -u /home/xen/vmimage.raw
Device Boot    Start       End    Blocks   Id  System
linux1   *        63    208844    104391   83  Linux
linux2        208845   7550549   3670852+  83  Linux
linux3       7550550   8193149    321300   82  Linux swap
dd if=vmimage.raw of=/dev/vg01/xendomU01slash bs=512 skip=208845 count=7341705