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] How to install a domu

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to install a domu
From: Tom Brown <tbrown@xxxxxxxxxxxxx>
Date: Wed, 15 Jun 2005 10:40:09 -0700 (PDT)
Delivery-date: Wed, 15 Jun 2005 17:39:21 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <36967cc905061509186f022e07@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/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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 15 Jun 2005, Shahzad Chohan wrote:

> Hi guys,
> I know this is probably a basic question, but I'm having real
> difficulty in trying to figure out a way of installing a rhel 3 (not a
> yum distro) domU. I'm stumped for ideas, everywhere else it talks
> about installing fedora but it has the luxury of using yum. Please can
> someone help me with a guide as to how to accomplish this. I've
> searched google but I'm not having much luck.

Everyone seems to talk about running through the normal installation
process, my approach is generally to clone an existing install. This won't
help much if you want to try new versions/distributions etc...

> So far I've got a partition /dev/hda5. I ran MAKEDEV, but after this
> I'm stuck  about do I install an the os  into it?

mount /dev/hda5 /mnt

rsync -rav -H --one-file-system / /mnt/

# repeat for all other filesystems you need
# e.g. If this was the source box and I needed to clone it, I
# would sync usr2 as well.

   Filesystem           1k-blocks      Used Available Use% Mounted on
   /dev/md0               5044064   4119988    667848  87% /
   /dev/md1             192958776  19148768 173810008  10% /usr2

rsync -rav -H --one-file-system /usr2/ /mnt/usr2/

Note that tar will work fine too...

(cd / && tar --one-file-system -cf -) | (cd /mnt && tar -xvf -)

The filesystem locks stop you from copying /proc by accident.

then you can chroot into the new filesystem and it should work
fine... e.g.

chroot /mnt/

you can tweak whatever settings you need, e.g. /etc/fstab will be
required, and probably your network config.


> Many thanks for your help.
> Shaz
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users

tbrown@xxxxxxxxxxxxx   | Courage is doing what you're afraid to do.
http://BareMetal.com/  | There can be no courage unless you're scared.
                       | - Eddie Rickenbacker

Xen-users mailing list

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