Find the answer to your Linux question:
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.
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429

    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:
    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 I thought, ok this is a grub error.
    So here is my grub:
    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
    Thats the same.. so I dont see the error there.
    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
    Last edited by RobinVossen; 11-08-2007 at 12:50 PM. Reason: Spelling Errors.
    New Users, please read this..
    Google first, then ask..

  2. #2
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    Quote Originally Posted by RobinVossen View Post
    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)
    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 )
    Code:
    mkinitrd -c -k 2.6.21.5 -m reiserfs:intelfb
    i believe it'll be similar in gentoo you can google it , after that you have to add the entry in the grub menu.lst
    Code:
    intrd /boot/initrd-xxxxx
    another possible solution is to recompile the kernel with fs built in (specially your root fs and ext2 ) .

    Hope this helps .

    Regards.
    Linux is not only an operating system, it's a philosophy.
    Archost.

  3. #3
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Ok, well I dont get the command to work.
    But I found a nice Debian Install Guide so I guess Ill follow that
    New Users, please read this..
    Google first, then ask..

  4. #4
    Linux Engineer aliov's Avatar
    Join Date
    Dec 2006
    Location
    Geneva,Beirut
    Posts
    1,078
    In debian it's mkinitramfs , but usually you can regenerated like :

    Code:
    dpkg-reconfigure linux-image-$(uname -r)
    Regards.
    Linux is not only an operating system, it's a philosophy.
    Archost.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •