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 CentOS system to Xen image?

To: "James Pifer" <jep@xxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Convert CentOS system to Xen image?
From: "Ross S. W. Walker" <rwalker@xxxxxxxxxxxxx>
Date: Wed, 2 Apr 2008 16:57:11 -0400
Cc: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 02 Apr 2008 13:57:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: normal
In-reply-to: <1207168694.5035.6.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
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>
Priority: normal
References: <20080401195421.GJ2937@xxxxxxx> <1207081039.8297.52.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <20080401223507.GA4561@xxxxxxx> <1207140100.8297.59.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <20080402133214.GU4561@xxxxxxx> <1207144984.8297.61.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <20080402142504.GX4561@xxxxxxx> <1207154400.8297.70.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <20080402170005.GD4561@xxxxxxx> <1207157714.8297.75.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <20080402181120.GE4561@xxxxxxx> <1207160833.8297.82.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <1207161210.27447.24.camel@xxxxxxxxxxxxxxxxxxx> <1207162751.8297.93.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <1207163388.27447.32.camel@xxxxxxxxxxxxxxxxxxx> <1207164981.8297.101.camel@xxxxxxxxxxxxxxxxxxxxxxxx> <E2BB8074E5500C42984D980D4BD78EF9022A708A@xxxxxxxxxxxxxxxxxxxxx> <1207168694.5035.6.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciVAYp2fQ5tKnb2T8WopTc8oU9eqAAAVxEw
Thread-topic: [Xen-users] Convert CentOS system to Xen image?
James Pifer wrote:
> 
> > Well, your almost there, but you need to boot up an OS recovery iso
> > in the HVM and reinstall grub as the primary disk will now be 'hda'
> > instead of whatever the other server's was, probably 'sda', or
> > 'md0' if it had software raid.
> > 
> > Once you have it running install the xen PV kernel, use disklabels
> > for non-LVM volumes in your fstab and grub and then shut it down
> > and convert the config to PVM. Boot with 'xm create -c <config'
> > so you see the grub menu and select the xen kernel. Once you
> > have the PVM running, set it's kernel as the default in grub.
> 
> I tried to do that. Since it's full virt does an actual CD need to be
> inserted in the box? I tried adding a virtual CDROM using the ISO, but
> it will not boot off of it. 

Best thing to do is write up a command-line config for your little
domain. Try this to get started (put your specifics where needed):

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 512
name = "MyDomain"
guest_os_type = 'linux'
vcpus=1
vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [ 'phy:/dev/vg0/lv3,hda,w', 'file:/tmp/rescue.iso,hdc,r' ]
boot="dcna"
vnc=1
vncconsole=1
vncpasswd=''
serial='pty'

This should boot into d=cdrom first, then c=hard disk second, followed
by n=network (PXE) third, followed by a=floppy last.

> On the screen I have
> ata0 master is the qemu hard disk.
> ata0 slave is Unknown device.

Not sure which screen you are talking about here, still using
virt-manager? Drop it and start writing config files.

The options are documented in the examples in /etc/xen directory.

> I installed a xen PV kernel on the live server before grabbing it. 

Good fore thought, that'll save a step later.

-Ross

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.


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

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