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: Ian Tobin <itobin@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Convert physical server to VM
From: Marc Patino Gómez <mpatino@xxxxxxxxxxxx>
Date: Thu, 23 Aug 2007 15:18:12 +0200
Cc: Simon Gao <gao@xxxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 23 Aug 2007 06:17:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E0E43F8F0962AD4C8A1D6CE8ED5EDE3F219775@xxxxxxxxxxxxxxxxxxxxxx>
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>
Organization: CLARANET SAU
References: <E0E43F8F0962AD4C8A1D6CE8ED5EDE3F219775@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (X11/20070604)
Hi,

I have no experience about converting Windows physical hosts to XEN hosts :( In my modest opinion, I think this is the way:

- Create a LVM on the xen server with the same or more space than the windows HD.
- Shutdown windows machine.
- Boot windows box with a GNU/Linux LiveCD
- Copy all the windows HD with dd:

dd if=/dev/hda | ssh root@xxxxxxxxxxxxxxxxx "/bin/dd of=/dev/vg00/vmwindows"

- Then pray :) and hope windows boot correctly, my knowledge about windows is 
poor :( .

Probably, in a few days I will try to do it. I try this steps with some old 
GNU/Linux boxes, with kernels 2.4 and it works correctly.

Regards,

Marc




Ian Tobin wrote:
Hi,

And what about converting Windows physical hosts to VMs :)



-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Marc Patino Gómez
Sent: 23 August 2007 12:05
To: Simon Gao
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Convert physical server to VM

Hi,

rsync works great on production enviroments, I had paravirtualized some servers with these method:

rsync -ave ssh --exclude=/proc --exclude=/sys --exclude=/dev (if you are using udev) root@runingserver:/ /mnt/newserverimage/

after this:

mkdir /mnt/newserverimages/proc

mkdir /mnt/newserverimages/sys

mkdir /mnt/newserverimages/dev

review your fstab, and copy the kernel modules:

cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/

more or less .... this is the way

Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4, I used GNU/Linux live CD on the old box and dd utility:


dd if=/dev/hda | ssh root@xxxxxxxxxxxxxxxxx "/bin/dd of=/dev/vg00/newvserver"

I hope it will be helpfull


Marc

Simon Gao wrote:
Hi,

Anyone has any suggestions on programs, utility or instructions on how
to convert a physical server to domU VM?

Thanks,

Simon

_______________________________________________
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



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

<Prev in Thread] Current Thread [Next in Thread>