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/
Home Products Support Community News


Re: [Xen-users] Convert CentOS system to Xen image?

To: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Convert CentOS system to Xen image?
From: Daniel Kao <dkao@xxxxxxxxxxxx>
Date: Wed, 02 Apr 2008 14:01:39 -0700
Delivery-date: Wed, 02 Apr 2008 14:02:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
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
User-agent: Thunderbird (Windows/20080213)
I'm coming in late to the "party" and haven't gone through the entire thread.  Couple things I did notice so I'm going to base my answers on the following assumptions:

1. You're attempting full virtualization.
2. Your guest domain configuration file is in Python format located in /etc/xen.

If the above two are correct:

1. Open up the Python config file for your CentOS domain.
2. Locate the line starting with "disk ="
3. Within the last double-quote, but before closing bracket, put in the following immediately after the last double-quote:
, "file:/directory/with/cdrom_dvd_image.iso,hdc:cdrom,r"
So it should look similar to this:
disk = [ "file:/var/lib/xen/images/centos.img,hda,w", "file:/directory/with/cdrom_dvd_image.iso,hdc:cdrom,r" ]
4. While still the Python domain Xen configuration file, find the line which starts with "boot =".  It's probably set to boot = "c".
5. Change the boot sequence to boot = "dc" or "boot = "d".
6. Once you're done with the CD/DVD, you can revert it back.

Good luck!

James Pifer wrote:
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. 

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

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


Xen-users mailing list

Daniel Kao
Übermind, Inc.
Seattle, WA, U.S.A.
Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>