LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 09-24-2010, 01:05 AM   #1
abi200433
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Latest kernel version fails to boot on virtual box


I am running Red hat on a virtual box. My current kernel version is 2.6.18-155.el5.when I install the new kernel 2.6.35.4, I do not get any error during the install but the kernel fails to boot. I get the following error.

mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: no such file or directory
setuproot: error mounting /proc: no such file or directory
setuproot: error mounting/sys: no such file or directory
switchroot: mount failed:no such file or directory
kernel panic-not syncing:attempting to kill init!

I am new to Linux. Can anyone help me out here.
 
Old 09-24-2010, 01:43 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,127

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Redhat puts a lot of effort into packaging their RHEL systems - that's why people pay for it.
It's also licensed, which means you can't (legitimately) just copy it.
So ...

What are you trying to learn/achieve - maybe we can offer a solution.
 
Old 09-24-2010, 12:15 PM   #3
abi200433
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
I am using this for a course on Linux device drivers which requires installation of the kernel's latest version and all module programming to be done on the newly installed kernel. I am currently working on 2.6.18-155-el5. I downloaded and installed version 2.6.35.4 and when I try to boot this version I get the error which I have mentioned above.
 
Old 09-24-2010, 05:52 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,127

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
I wouldn't have thought RHEL was the place to do this.
Where did you get the .config from ?. If it's from the RH environment, you'll need to build an initrd to ensure the required support to mount the root is included. I build all that into the kernel itself when I build one so initrd isn't an issue.
Have a look at the CentOS (the open source equivalent to RHEL) wiki for doco on how to do all required.
 
Old 09-24-2010, 06:22 PM   #5
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 542

Rep: Reputation: 74
A pretty generic approach:

Your error is: mount: could not find filesystem '/dev/root'

There can be 2 reasons: either the disk device drivers are not found, which is plausible in virtualization land, or the filesystem device driver is not found;
I bet the 1st one is the case, although I've erred years in the past forgetting to build in support for ext2 (at that time)

Your steps would be:
1st: identify the filesystem type (ext4, reiserfs, ...) and disk type (ide, virtio, scsi, ...)
2nd: check if support is available in the kernel for either, and you have it compiled in (if not, enable it and recompile your kernel)

In the case of a virtio disk type, you may have to make an initrd with at least the modules virtio, virtio_blk and virtio_pci. (maybe more, doing this from the top of my head)

You may have to run some setup commands for your bootloader to recognize your initrd (if you have one) and kernel.

Last edited by Ramurd; 09-25-2010 at 03:29 AM. Reason: typo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] virtual box failed to boot after kernel update digsecurity Linux - Virtualization and Cloud 2 06-24-2010 05:23 AM
Virtual Box Fails to start iro_number1 Linux - Software 10 12-31-2007 03:00 PM
The latest kernel version? outshined Red Hat 3 07-17-2006 06:46 PM
What is the latest version of debian with the 2.4.x kernel? abefroman Debian 3 11-22-2005 01:00 PM
What is the latest version of mandriva with the 2.4.x kernel? abefroman Mandriva 1 11-21-2005 10:22 PM


All times are GMT -5. The time now is 02:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration