|
|
|
|
|
|
|
|
|
|
xen-users
RE: [Xen-users] Convert physical server to VM
Hi,
I hope I am not intruding this thread too much, but
I am watching this thread with vested interests.
I have been trying to port some running Linux RedHat4/Suse9/Suse10
servers
as guest VMs but without success.
Each time it complains "Boot loader didn't return any data!"
Do you need to do anything after copying the running Linux root file
system
into the image to make that bootable?
I have also noted you are specifying in your configuration:
kernel = "/boot/vmlinuz-2.6.x-xenU";
ramdisk = "/boot/initrd-ifyouhaveone";
Are these kernel and ramdisk set-ups referring to the Dom0 kernel,
as the running Linux servers are not using a "xen" version of kernel.
I am using Suse 10.2 as Dom0 server, the above two lines are replaced by
a DomULoader:
bootloader = '/usr/lib/xen/boot/domUloader.py'
bootentry = 'hda1:/boot/vmlinuz-xen,/boot/initrd-xen'
But still the problem persists...
Peter
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Joseph Smith
Sent: 22 August 2007 23:00
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Convert physical server to VM
I would dd the server's hard drive to an image file. Its probably the
most straightforward way.
dd if=/dev/sda of=server.img
use your servers hard drive device node in place of /dev/sda
then write up a domU config:
# general
name = "newVM";
memory = 1024;
# booting
kernel = "/boot/vmlinuz-2.6.x-xenU";
ramdisk = "/boot/initrd-ifyouhaveone";
builder = "linux";
# virtual harddisk
disk = ['tap:aio:/xvmstore/images/vmThree.img,sda,w'];
root = "/dev/sda1 ro"; #or whatever your root partition is
-Joe
On Wednesday 22 August 2007 16:54:06 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
--
---
Joseph Smith
smithj@xxxxxxxxx
(402)476-8786 x391
Linux IT Specialist
_______________________________________________
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
|
|
|
|
|