Results 1 to 4 of 4
Ok, I have a Fresh Gentoo install.
My Kernel works fine It runs grub everything is fine.
Well this is for testing OpenVZ. Since I was out of SpareBoxes I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-08-2007 #1
OpenVZ Kernel Panic
Ok, I have a Fresh Gentoo install.
My Kernel works fine It runs grub everything is fine.
Well this is for testing OpenVZ. Since I was out of SpareBoxes I had to use my Work Terminal (a Compaq Laptop of some kind that runs Windows XP (Im not allowed to change that)) so I started up innotek Virtual Box in WinXP Pro. and I Installed Gentoo. Everything works fine (exept that atkbd.c keeps spamming in the terminal) So I emerged openvz. I used the Guide: Gentoo Linux Documentation -- Gentoo OpenVZ Howto
but when I had to boot the OpenVZ kernel I got Kernel Panic.
The Terminal says:So I thought, ok this is a grub error.Code:VFS: Cannot open root device "hda1" or unknwon-block(0,0) Please append a correct "root=" boot option. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
So here is my grub:
Thats the same.. so I dont see the error there.Code:default 0 timeout 10 title=Gentoo root(hd0,0) kernel /boot/kernel root=/dev/hda1 title=OpenVZ root(hd0,0) kernel /boot/kernel-openvz root=/dev/hda1
So I checked the kernels.
and yea they both can read the format that the hda1 is partitioned in.
(Keep in mind that this is a test box so I didnt do good partitioning its hda -> / and hdb -> swap)
Anyhow, I dont really see a error.
So can somebody tell me what the kernel error makes?
Cheers,
Robin
- 11-08-2007 #2
this is is a typical error ,when you don't have a initrd to load the modules before mounting the root filesystem , the other kernel can load them because it was compiled against all the necessary modules as built in , and specially the fs modules , it's not the case for the openvz kernel wish have been compiled the fs as modules , so in order to run the second kernel you have to make the initrd file with at least the specific filesystem that you are using , i never used gentoo , but usually this can be done (in Slackware )
i believe it'll be similar in gentoo you can google it , after that you have to add the entry in the grub menu.lstCode:mkinitrd -c -k 2.6.21.5 -m reiserfs:intelfb
another possible solution is to recompile the kernel with fs built in (specially your root fs and ext2 ) .Code:intrd /boot/initrd-xxxxx
Hope this helps .
Regards.Linux is not only an operating system, it's a philosophy.
Archost.
- 11-09-2007 #3
- 11-09-2007 #4
In debian it's mkinitramfs , but usually you can regenerated like :
Regards.Code:dpkg-reconfigure linux-image-$(uname -r)
Linux is not only an operating system, it's a philosophy.
Archost.


Reply With Quote

