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

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




Hi,

Chiu, PCM (Peter) wrote:
Hi, there,

I am watching this thread with interest.

Marc, can you repeat the actual steps you do to set up Linux guest VMs,
especially the ones using 2.4 kernels.

I have tried similar steps you mentioned, apart from the cp -pr /lib/modules
into the guest OS disk, but when I start up the guest VM, it complains
If you are going to "full virtualitzed" a linux box you don't need to copy the kernel's modules, you will use the unmodified old OS kernel ones, and the old kernel (of course).
"boot loader didn't return any data!"

Have you copy the full HD? or only the partition?
It looks like something is missing to turn the root copied file system to be 
bootable
as a guest VM.

Thanks.

Peter

Good luck Peter,

Marc
-----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


 


Rackspace

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