[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.