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] Howto install domU CentOS 5 directly on partition

To: kanour-xen <xen@xxxxxxxxxx>
Subject: Re: [Xen-users] Howto install domU CentOS 5 directly on partition
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Sat, 28 Jul 2007 12:50:14 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 28 Jul 2007 04:47:35 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=CNPf3ve5x6AzzItb7tT708df2vf7cpVqUVFKp7npIgLtr27pkQu+lLxi7Tw+le0I12VCuTkS/V2Mjz4ymlRvQrlHke8jyvOZYjfBqmE+YhGYmHcktciU5HL0YDSw2HkBTfeAq7MmKR9PHZ9ucs22HDHJyLfxI/2huNr+SKhfdFY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=C4aEAF3oSyneXTxzkETcm7Ul9oin3PqDUA83M+JjaQQRpkC8z1zQePrvnHA0mh3nsKmzNohRC2xmQiAkkOtoyULpS5aiA+kKUcs3LhHZAiEhwE/6ObDdy4Rx63iV4HdWJUW+fs6HldVyKQdPt+gnYmprFtgReCQIh8AagX7ATYU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <46AB27CB.3050501@xxxxxxxxxx>
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: <46AB27CB.3050501@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)
kanour-xen wrote:
Hi.

I am new to CentOS (Debian user) and I am looking for way how to install CentOS 5 on domU in the way that I have it directly on dom0 LVM partition. If I install it with virtual-manager then the installation program takes that partition as a disk and then creates new partitions on it. I don't want it that way because I cannot then mount it from dom0.
Yes, you can. I agree that virt-install and virt-manager make some really bad default assumptions, and prefer the latest versions. But there are two underlying issues:

1: You can access the internal partitions from Dom0. Avoid the use of LVM in the DomU (which is a pointless thing to do in the first place there!), and use "kpartx -a -v /dev/Vol[whatver]/[Xen-image-partition]". Then mount the partitions from /dev/mapper/[Xen-image-partiion]1, etc.

2: The virt-install and virt-manager have the use of pygrub hard-coded into them, but *hardcoded*. This has advantages, but means you need grub to manage kernels in your DomU. And grub cannot deal with hard drive partitions like /dev/xdva1 that does not have a drive named /dev/xdva to go with it. Sad, but true, and an issue with grub itself for Xen implementations.

Is there some way how to install it directly on partition as for example in Debian with debootstrap?
There are plenty of OS image building tools, such as "mock" and those images at www.jailtime.org. You can save a good OS image as a tarball and build from that, if you like, but you'll have to work out the pygrub fun if you use that.

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