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

To: "Jordi Espasa Clofent" <sistemes.llistes@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Convert physical server to VM
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
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=moYHmuwYcYEbGWpcTOwXmJMHt9D0UREwSR2i4I8L6zbtKpSgG19+J0op6EJD/XH7lJD5s7pmbx9UDFZGScX7m07xCmieqiiM8epYzJH7uz8wyorAZsE8/vZ+BaScDeLW1qtK6ToAQC2sqz7WXeiRLF8X+ge96IKswFaqpafQJMU=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46D44F1F.40603@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <46CCB07E.3000003@xxxxxxxxxxxxxxx> <46CD69DE.1020702@xxxxxxxxxxxx> <EB861CD59F6DAA4BBC25EAE9987C5BC9031E9FCC@xxxxxxxxxxxxxxxxxxxxxxxxxx> <46CD8A60.1020105@xxxxxxxxxxxx> <EB861CD59F6DAA4BBC25EAE9987C5BC9031E9FCD@xxxxxxxxxxxxxxxxxxxxxxxxxx> <46CD98D0.1010408@xxxxxxxxxxxx> <46D44F1F.40603@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>