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 fc6 as domU directly on lv´s

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, "Xen-Users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] installing fc6 as domU directly on lv´s
From: "Philippe Trolliet" <p.trolliet@xxxxxxxxxxxxxxx>
Date: Tue, 22 May 2007 15:13:33 +0200
Delivery-date: Tue, 22 May 2007 06:11:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <907625E08839C4409CE5768403633E0B02561D0B@xxxxxxxxxxxxxxxxx>
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

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx]On Behalf Of Petersson,
> Mats
> Sent: Dienstag, 22. Mai 2007 14:46
> To: Philippe Trolliet; Xen-Users
> Subject: RE: [Xen-users] installing fc6 as domU directly on lv´s
> 
> 
> > -----Original Message-----
> > From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> > [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> > Philippe Trolliet
> > Sent: 22 May 2007 13:41
> > To: Xen-Users
> > Subject: [Xen-users] installing fc6 as domU directly on lv´s
> > 
> > hi,
> > since 2 days i´m trying to install fedora core 6 directly on logical
> > volumes. my host system is FC6 too.
> > i want to have following layout in my domU:
> > /dev/group/ServerRoot               mounted in domU as /
> > /dev/group/ServerVar                mounted in domU as /var
> > /dev/group/ServerSwap               mounted in domU as swap device 
> > for the server
> > 
> > my xen-config looks like this:
> > 
> > name = "mailserver-FC6"
> > kernel = "/boot/vmlinuz-2.6.20-1.2948.fc6xen"
> > memory = 512
> > disk = ['phy:VolGroup00/MailserverRoot,sda1,w',
> > 'phy:VolGroup00/MailserverVar,sda2,w',
> > 'phy:VolGroup00/MailserverSwap,sda3,w']
> > #vif = [ '' ]
> > root = "/dev/sda1"
> > extra = "ro selinux=0 3"
> > vcpus = 1
> > vif = [ 'mac=00:16:3e:1a:c5:ad, bridge=xenbr0', ]
> > nographic=1
> 
> [snip]
> It seems like your domain dies early during boot - perhaps 
> because you don't have an initrd for your guest?
> 
> Extract from your log-file:
> [2007-05-22 16:31:15 xend.XendDomainInfo 2900] WARNING 
> (XendDomainInfo:882)
> Domain has crashed: name=mailserver-FC6 id=1. 
> 
> 

i tried it with an initrd too. i copied the one of my dom0 to the domU. in
my config i have set the parameter ramdisk like this:
ramdisk = "/boot/initrd-2.6.20-1.2948.fc6xen.img"
that didn´t work too.

after that i generated a new ramdisk for my domU:

$ mkinitrd -f --with=ext3 --preload=ext3 --with=xennet --builtin=aic7xxx
--builtin=serverworks --preload=xenblk --omit-raid-modules
--omit-lvm-modules --fstab=/home/user/mnt/etc/fstab /boot/xen-initrd.img
2.6.20-1.2948.fc6xen

and changed the ramdisk parameter according to the filename of the newly
created ramdisk. i copied the ramdisk to /boot of my domU.
my logical root volume of the domU was mounted in /home/user/mnt.

another question i have: where do i have to copy the initrd? does it need to
be in the /boot-directory of the dom0 or the /boot-directory of the domU?

i got it working right now. after i tried the different ramdisks, i added
those parameters to the config:
extra = "ro selinux=0 3"
vcpus = 1
vif = [ 'mac=00:16:3e:1a:c5:ad, bridge=xenbr0' ]
nographic=1

no i tried it again and it worked. but i don´t know i exactly why but it
works. when the domU used to crash i saw following line in the log:
[2007-05-22 17:00:41 xend 2900] DEBUG (blkif:24) exception looking up device
number for sda3: [Errno 2] No such file or directory: '/dev/sda3'

maybe the newly created initrd solved the problem.


-- 
I am using the free version of SPAMfighter for private users.
It has removed 6509 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len

<<attachment: winmail.dat>>

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