|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-users
Re: [Xen-users] Convert physical server to VM 
| Jordi, 
 Right now I am attempting the following procedure to move a Windows 2000 Server to a virtual machine:
 
 Create logical volume on Xen server
 Run 'nc -l -p 999 > /dev/xendisks/myserverdisk' on Xen server
 Boot windows machine using Linux bootable CD.
 Run 'dd if=/dev/hda bs=1M | nc 192.168.100.13 999' on Linux bootable CD
 Then wait
 
 So far this method is not working for me as I believe there is something wrong with the hard drive I am reading from. I receive hda IO errors when I reach around 5gigs transferred.
 
 I am also looking into using partimage to create an image of the drive, transfer that to my Xen server and put the image into my logical volume.
 
 Hope this helps in some way.
 
 Regards,
 
 Dan
 
 
 On 8/28/07, Jordi Espasa Clofent <sistemes.llistes@xxxxxxxxxxxxx> wrote:
> 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
 
 
 _______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users | 
 |  | 
  
    |  |  |