WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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