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: Liam Kirsher <liamk@xxxxxxxxxxx>
Date: Sat, 28 Jul 2007 12:12:19 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 28 Jul 2007 12:10:25 -0700
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>
Openpgp: id=7011F7B7; url=http://liam.numenet.com/pgp/
References: <46AB27CB.3050501@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.0 (X11/20070326)
I used virt-install, and selected custom partitioning during the install
process, removing the LVM stuff and reducing it to one partition.  Then
the install proceeded fine.  That created my "template" OS, with a
single partition and no swap (ignore the warning about missing swap
during install).  That is created on a logical volume accessible from
dom0, can be mounted with kpartx and mount.

Now I just create logical volumes for data and swap, and copy (using dd)
the template to the data, mkswap on swap.
Then, mount the data volume, make a few changes, and just start it up.
I can send more details if you like, but I've got to run now.
It took me a *looooong* time to figure out exactly how to do it, but now
I can set up a new domU in less than ten minutes, and it´s easy to
access the domU files from dom0.

Liam


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.
>
> Is there some way how to install it directly on partition as for
> example in Debian with debootstrap?
>
> Thank you
>
> Jiri
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>
>

-- 
Liam Kirsher
PGP: http://liam.numenet.com/pgp/


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