Gentoo Blog

The ultimate Gentoo Blog
  • Home
  • About

converting vmware linux virtual machine to citrix xenserver virtual machine

Simon | October 23, 2009

1. Install quemu on the vmware Server or another Linux machine

2. Uninstall vmware modules on the vmware guest you wish to convert

3. Stop the vmware guest

4. Convert the image file qemu-img convert Linux_2.6.x_kernel-flat.vmdk -O raw Debian.img

5. Copy the image file to the xen server with scp or ftp or to an attached storage server if you have one. Your storage uuid will be different: scp Debian.img 10.110.1.1:/var/run/sr-mount/7d327ac3-f85e-e742-1f5b-f52dd4dbadf6

6. Create a guest with at least the same disk size and amount of RAM as the imported vmware virtual disk. Rename the disk under properties so you can locate it later.
You may need to boot the guest with an ISO image to get it to work

7. Open a console or connect to the xen server with ssh and find the disk copy the uuid of the host: xe vdi-list or with: xe vdi-list name-label=your_disk_name

8. Import the image with: xe vdi-import uuid=652cc56f-4251-44d0-8f07-dcf219edf15a filename=Debian.img

9. Fire up your converted xen image. You may have to modify the grub boot loader vmware uses /dev/sda for it’s HD and xen uses /dev/hda.

10. If you machine does not boot press e at the grub prompt an search for root=/dev/sda1 line and change it to root=/dev/hda1 please change this in you grub.conf once the machine has booted and save your changes

Share on Facebook
Categories
Xen/Vmware
Comments rss
Comments rss
Trackback
Trackback

« Encrypted home and swap partition on Ubuntu 9.10 Karmic xen missing gpg key »

2 Responses to “converting vmware linux virtual machine to citrix xenserver virtual machine”

  1. Markus says:
    February 29, 2012 at 1:26 pm

    Simon, I could fucking kiss you. This post was a damn life-saver. Seriously, I cannot thank you enough :D

  2. Simon says:
    May 11, 2012 at 1:34 pm

    Your welcome glad I could help.

Leave a Reply

Click here to cancel reply.

 

May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories

  • confixx/Plesk
  • fun
  • Gentoo
  • iptables
  • mysql
  • news
  • Raid Controllers
  • Stuff
  • Ubuntu/Debian
  • Xen/Vmware

Links

  • Gentoo
  • http.net
  • iphone software linux
  • michael-fuchs.net
  • Ubuntu
  • webupd8.org

Search Blog

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox