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] DomU in it's own LVM partition fails to boot CentOS 5.2

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] DomU in it's own LVM partition fails to boot CentOS 5.2 Dom0/U
From: Peter Hoose <phoose@xxxxxxxxx>
Date: Sat, 24 Jan 2009 15:35:28 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 24 Jan 2009 12:36:11 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=NoIEscNOLRC3ZQrTWTmqszmk3CJoIrUnT2IdaOOIhoY=; b=CIlbSDMKO+XEwcAAD6GUaSozcNEpGW/ZAzBFE/ECnodhIkyeW14Ko9dz/wbGiJAifR x5knoOJt/+lsLKsV+7Iw/0z+5dUD0iXzP5/cQs8qzwqXy1RtVLmr56Vxbyu8d7sAw/Ij cP1xdDgkee+/hM8dDnXigiSuoeES7Qdq5ThRo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uDBm9pS3ThbytEEmm6wUJCED6L9JnuLiih485u2E3/e9Mq06VScEevptrDnIMxhZOI p5kKbdIQNtblsLslOEiKUqhmV40cNTZQoEpOMmbxSQn0kCl0rL+EwfbPGjRUivQOt1sr hs1YtNm5/3BIT/NABDV12oaICfOL1aJGbZItY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0901241229q7dd26838w17cd8f5a5c63256a@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <772cf79b0901241019m270e5b5bpe987a514a4798861@xxxxxxxxxxxxxx> <7207d96f0901241151o5fa61bd1kbb4ca13b60bf9842@xxxxxxxxxxxxxx> <772cf79b0901241219m35a8eacwfcf87bf0270150ff@xxxxxxxxxxxxxx> <7207d96f0901241229q7dd26838w17cd8f5a5c63256a@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> Yes. For this purpose, you create one LV on dom0, map it to domU as
> xvda, and install domU like what you'd do with file-based disk image.

Sweet!

Got much closer this time around my new config:

kernel = "/var/lib/xen/boot/CentOS/CentOS_5_x64_vmlinuz"
ramdisk = "/var/lib/xen/boot/CentOS/CentOS_5_x64_initrd.img"
extra = "text"
name = "guest01"
memory = "1024"
disk = [ 'phy:/dev/VolGroup00/guest01,xvda,w', ]
vif = [ 'bridge=xenbr0', ]
vcpus=1
> >
The disk shows up properly now, and in theory, it lets me create partitions on it, format them, etc... But it bombs out as soon as it starts to install with:

Error
The file system-config-securitylevel-tui-1.6.29.1-2.1.el5.x86_64.rpm
cannot be opened.  This is due to a missing file, a corrupt package
or corrupt media.  Please verify your installation source.

If you exit, your system will be left in an inconsistent state that
will likely require reinstallation.

This happens regardless of packages selected, it seems to be the first file each time, this is install from the same mirror that I used with no problems with file based, so it seems to still be something wrong with my disk setup?

Anyways, it's much closer now and past the first big question/issue I had.

If you have any ideas what caused the above error, I'd appreciate it, if not I'll just hack away at it until it works.

Thanks,
  Peter

On Sat, Jan 24, 2009 at 3:29 PM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
On Sun, Jan 25, 2009 at 3:19 AM, Peter Hoose <phoose@xxxxxxxxx> wrote:
> I just created a LVM based vbd in my dom0, I want to use
> this as my 'disk' for my domU, which I would create my partitions on. Is
> this possible,

Yes. For this purpose, you create one LV on dom0, map it to domU as
xvda, and install domU like what you'd do with file-based disk image.

> or do I need to create a /boot, / and /swap on my domU and
> share those with dom0 for it to access natively? IE: Does the dom0 see this
> partition as a disk that it can create partitions on, or does it see it just
> like a normal partition?

I'm not quite sure what you mean, but you can do this :
- create two LVs on dom0, map it to domU as xvda1 (for / ) and xvda2
(for swap). You don't need a separate /boot.
- do mkfs.ext3 and mkswap on dom0 directly on that LV (not creating
partition on top of it)
- populate domU's filesystem (for example, by extracting "templates"
like the one from jailtime.org, or by copying from a working domU.)
- create a suitable initrd

Regards,

Fajar

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