[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Convert physical server to VM



the problem is that you only copy the filesystem with tar command. You must copy the FULL disc, to do this follow use dd, as I post before

dd if=/dev/hda | ssh root@xxxxxxxxxxxxxxxxx "/bin/dd of=/xen/images/myimage.img"


so the process will be:

1- dd if=/dev/zero of=image.img bs=1M count=4096 (if you have a 4GB HD, if your physical HD is 4GB)
  remember, the image must be at least the same size than your original HD)

2- stop old box, and boot with a LiveCD

3- Copy the disc to your XEN server
dd if=/dev/hda | ssh root@xxxxxxxxxxxxxxxxx "/bin/dd of=/xen/images/myimage.img"

¿Anyone has some experience with this method into a production environment? I'm looking for a tool/method to do it.

--
Thanks,
Jordi Espasa Clofent

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.