Foreman, Tim
2007-Mar-01 15:14 UTC
[Xen-users] Xen 3.0.4 on RH EL 4.4 - can''t make it boot kernel
I''m trying to build a Xen server on Enterprise 4.4 and I can''t get the Xen kernel to boot. I installed the kernel rpm and the Xen rpm and my grub.conf looks like this: # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,0) # kernel /boot/vmlinuz-version ro root=/dev/hda1 # initrd /boot/initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux ES (2.6.9-42.ELsmp) root (hd0,0) kernel /boot/vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ initrd /boot/initrd-2.6.9-42.ELsmp.img title Red Hat Enterprise Linux ES-up (2.6.9-42.EL) root (hd0,0) kernel /boot/vmlinuz-2.6.9-42.EL ro root=LABEL=/ initrd /boot/initrd-2.6.9-42.EL.img title Red Hat Enterprise Linux ES Xen (2.6.16.33-xen_3.0.4.1) root (hd0,0) kernel /boot/xen-3.0.4.1.gz module /boot/vmlinuz-2.6.16.33-xen_3.0.4.1 ro root=/dev/hda1 module /boot/initrd-2.6.16.33-xen_3.0.4.1.img When I try and boot the Xen kernel it stops with the following errors: Loading ide-disk.ko module ide_disk: no version for "struct_module" found: kernel tainted. Creating root device Mounting root filesystem mount: error 6 mounting ext2 mount: error 2 mounting none Switching to new root switchroot: mount failed: 22 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! I did some googling and found some indications that it might have been related to using the ext3 filesystem, so I rebuild the server with ext2 and got the same results. Any suggestions? -- Timothy W. Foreman ~ Security Administrator ~ tforeman@ibsys.com (651) 365-4181 ~ Internet Broadcasting ~ www.ibsys.com -- The Onion: Have you decided what you want to be when you grow up? Berkeley Breathed: Dad. The rest is frosting. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Omer Khalid
2007-Mar-01 15:23 UTC
Re: [Xen-users] Xen 3.0.4 on RH EL 4.4 - can''t make it boot kernel
Hi Tim, The first thing I noticed in your grub.conf is that your xen configuration have index value 0f 2, while the default=0. It should be default=2. I hope this should sort the obvious problem. Secondly, why are you not using root=LABEL=/ rather root=/dev/hda1! Cheers Omer On 3/1/07, Foreman, Tim <tforeman@ibsys.com> wrote:> > I''m trying to build a Xen server on Enterprise 4.4 and I can''t > get the Xen kernel to boot. > > I installed the kernel rpm and the Xen rpm and my grub.conf looks > like this: > > # grub.conf generated by anaconda > # > # Note that you do not have to rerun grub after making changes to this > file > # NOTICE: You do not have a /boot partition. This means that > # all kernel and initrd paths are relative to /, eg. > # root (hd0,0) > # kernel /boot/vmlinuz-version ro root=/dev/hda1 > # initrd /boot/initrd-version.img > #boot=/dev/hda > default=0 > timeout=5 > splashimage=(hd0,0)/boot/grub/splash.xpm.gz > hiddenmenu > title Red Hat Enterprise Linux ES (2.6.9-42.ELsmp) > root (hd0,0) > kernel /boot/vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ > initrd /boot/initrd-2.6.9-42.ELsmp.img > title Red Hat Enterprise Linux ES-up (2.6.9-42.EL) > root (hd0,0) > kernel /boot/vmlinuz-2.6.9-42.EL ro root=LABEL=/ > initrd /boot/initrd-2.6.9-42.EL.img > title Red Hat Enterprise Linux ES Xen (2.6.16.33-xen_3.0.4.1) > root (hd0,0) > kernel /boot/xen-3.0.4.1.gz > module /boot/vmlinuz-2.6.16.33-xen_3.0.4.1 ro root=/dev/hda1 > module /boot/initrd-2.6.16.33-xen_3.0.4.1.img > > When I try and boot the Xen kernel it stops with the following errors: > > Loading ide-disk.ko module > ide_disk: no version for "struct_module" found: kernel tainted. > Creating root device > Mounting root filesystem > mount: error 6 mounting ext2 > mount: error 2 mounting none > Switching to new root > switchroot: mount failed: 22 > umount /initrd/dev failed: 2 > Kernel panic - not syncing: Attempted to kill init! > > I did some googling and found some indications that it might have been > related to using the ext3 filesystem, so I rebuild the server with ext2 > and got the same results. > > Any suggestions? > -- > Timothy W. Foreman ~ Security Administrator ~ tforeman@ibsys.com > (651) 365-4181 ~ Internet Broadcasting ~ www.ibsys.com > -- > The Onion: Have you decided what you want to be when you grow up? > Berkeley Breathed: Dad. The rest is frosting. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- --------------------------------------------------------------- CERN – European Organization for Nuclear IT Department, CH-1211 Geneva 23, Switzerland Phone: +41 (0) 22 767 7996 Fax: +41 (0) 22 767 4900 E-mail : Omer.Khalid@cern.ch Homepage: http://cern.ch/Omer.Khalid _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kraska, Joe A \(US SSA\)
2007-Mar-01 16:34 UTC
RE: [Xen-users] Xen 3.0.4 on RH EL 4.4 - can''t make it boot kernel
> I did some googling and found some indications that it might have been > related to using the ext3 filesystem, so I rebuild the server withext2> and got the same results. > > Any suggestions?Here''s my config for a stock RHEL4u4 installation: --------------- disk = [ ''file:/RAID/data/xen/images/xen-rh64-gold/hda,hda,w'' ] kernel = "/boot/vmlinuz-2.6.16.33-xenU" ramdisk = "/boot/initrd-2.6.16.33-xenU.img" root = "/dev/VolGroup00/LogVol00" memory = 4096 vcpus = 1 builder = ''linux'' name = ''xen-rh64-gold'' vif = [ ''mac=00:16:3e:00:00:22, bridge=xenbr2'' ] localtime = 0 on_poweroff = ''preserve'' on_reboot = ''restart'' on_crash = ''restart'' extra = '' TERM=xterm'' # #sdl = 1 --------------- As you see, I''m installed on an image file. I installed that with Qemu. I had to do nothing special there, except to do a mutation to /etc/modprobe.conf (add "alias eth0 xennnet") and do system- config-network, and do service network restart, and then do system-config-network again (the double network config is associated with the text version not having the option to set up the autoconfig of eth0 on boot). My xenU kernel handles RH out of the box. I often had your problem until I figured out that I had to point the root to a valid logical volume. Without the root= entry... kernel panic exactly the way you''re getting it. At a glance you didn''t look like you were using logical volumes, but I didn''t look to carefully. I forget why, but another thing I had to do was to add IDE support to the kernel. Probably I could have done that in the initrd, but I didn''t know how, so I compiled it in (if you were having that problem, it would manifest differently: "unreadable block (0,..)" or some such). Joe. p.s. nothing to do with ext3, I think. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ulrich Windl
2007-Mar-02 07:12 UTC
Re: [Xen-users] Xen 3.0.4 on RH EL 4.4 - can''t make it boot kernel
On 1 Mar 2007 at 16:23, Omer Khalid wrote:> Secondly, why are you not using root=LABEL=/ rather root=/dev/hda1! >One of the reasons could be that you have multiple systems to boot: Usually I have a "production" system and a test system, and both root filesystems have the "root" label. Therefore you can''t use simple labels in fstab or elsewhere. Ulrich _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users