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

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


  • To: "Jordi Espasa Clofent" <sistemes.llistes@xxxxxxxxxxxxx>
  • From: "Dan VerWeire" <dverweire@xxxxxxxxx>
  • Date: Wed, 29 Aug 2007 08:52:26 -0400
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 29 Aug 2007 05:53:05 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=SfL6sh2U2Mrt72oqiNrd3s7jtJ0aHHydpHvtRYrbK0joYQjveOUd78R6k1mBxl3UF5mUnOOdc4WSlC+Ayifbnq+Ia/jPguDFMGKcPJY9Sng8HjZBgSdA6cSiiegFSXWSRp2nUgQxLnOOOeuT/FKnmOyJdgxwBZzkiojVt49oh0k=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

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