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: "Joseph Smith" <smithj@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Convert physical server to VM
From: "Chiu, PCM \(Peter\)" <P.C.M.Chiu@xxxxxxxx>
Date: Thu, 23 Aug 2007 09:16:42 +0100
Cc: "Chiu, PCM \(Peter\)" <P.C.M.Chiu@xxxxxxxx>
Delivery-date: Thu, 30 Aug 2007 02:28:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200708221659.35080.smithj@xxxxxxxxx>
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> <200708221659.35080.smithj@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcflDXCxpO/gVNIgQcypMto896oP4QATo2Vw
Thread-topic: [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

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