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] installing a new domU

To: "Robbie Dinn" <robbie@xxxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] installing a new domU
From: Stephan Böni <boeni@xxxxxx>
Date: Tue, 18 Oct 2005 14:00:26 +0200
Delivery-date: Tue, 18 Oct 2005 11:57:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
Thread-index: AcXT136t2zWyFaIZSUGdAb5ZE2nU9gAAP+4g
Thread-topic: [Xen-users] installing a new domU
>  > Hi all
>  >
>  > I have a stupid question...
>  >
>  > How do you actually install a new OS inside a new domainU ?
> 
> No, it's not a stupid question.
> 
> However I didn't find a general answer to that question

That may be different. If you're using SUSE 10.0 you can it do this way:

First create a filesystem which will be the root filesystem for your domU. If 
you have lvm installed and a volume group created you can create this 
filesystem as following:

lvcreate -L 8g -n root xenvg
# this creates a volume named root with a size of 8 GB in the volume group xenvg

mkfs -t reiserfs /dev/xenvg/root
# this makes a reiser filesystem on this volume

mount -t reiserfs /dev/xenvg/root /mnt
# this mounts the filesystem on /mnt

Now can fill up this filesystem:

yast dirinstall
# this starts the yast module called dirinstall. Select here as target 
directory /mnt and all your software you like to install. Then go to "Next". 
The packages will be installed now. Finally you can exit yast again.

cd /mnt/boot
cp /boot/*xen* .
cd /mnt/etc
echo "/dev/hda1 / reiserfs defaults 1 1" > fstab
rm -f mtab
cp /etc/passwd .
cp /etc/shadow .
cp /etc/ssh/sshd_config ssh/sshd_config
cd /mnt/var/adm/YaST/ProdDB
cp /var/adm/YaST/ProdDB/prod_* .
cd /
umount /mnt

Now your domU is created.

Stephan



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