LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-23-2011, 09:35 AM   #1
kilgour
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Rep: Reputation: Disabled
V2P - Kernal panic error


Hi, I am attempting to migrate a virtual machine onto a physical machine and have managed to do so but when I attempt to boot the physical machine I get the following errors:

Code:
Red Hat nash version 5.1.19.6 starting
Reading all physical volumes. This may take a while...
Volume group "VolGroup00" not found
Unable to access resume device (/dev/VolGroup00/LogVol01)
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: Attempted to kill init!
The VM is Oracle Linux which uses the Red Hat distribution and the physical machine is a SUN x6250 box.

I assume it is due to a hardware mismatch from when the VM was created (using VMware Workstation) and the hardware on the machine but I am fairly new to Linux and could do with some guidance/suggestions for how to go about fixing the issue.

Many thanks in advance,

Paul
 
Old 02-24-2011, 03:12 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz & Welcome to LQ!

Well, for starters I'd ask "Why the V2P? Why not just setup the Sun x6250, then migrate the database(s)?".
Then I'd ask "What did Oracle Support say?" (But I'm sure you've had a case open for days, and they've just failed to call you back.)"

As for your current problem; I would boot a Linux Live CD (like Knoppix), and see what you can see.
If it finds your drive(s), physical volume(s), volume group(s), and logical volume(s), then your in business.
However, if it can't; then you either have hardware the Linux Live CD cannot see (which I have not had happen with the latest Knoppix builds), or something went horribly, horribly wrong with your V2P.

Did the V2P process generate any log files?

I've not played with Oracle Linux (their downloads haven't worked for me for a few months now). Does it use the GRUB boot loader?
If so, when presented with the menu, do the following;

1) Hit "c". Which should take you to the grub prompt.
2) Do either "find /boot/grub/stage1" or "find /grub/stage1". It should list the drives it can boot from like so;
Code:
(hd0,0)
(hd1,0)
(hd2,0)
3) now change the "root (hd#,#)" line to match what it found and try to boot that.

If you still have booting issues, then you may have to rebuild your initrd (if Oracle Linux uses that).

If this post (or any post) helps you out, hit "Yes" in the bottom right-hand corner of that post.
Also, if your problem has been solved, use "Thread Tools" at the top of the page to mark the thread [SOLVED].

Last edited by xeleema; 02-24-2011 at 03:13 AM.
 
1 members found this post helpful.
Old 02-24-2011, 05:42 AM   #3
kilgour
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for your response xeleema. Unfortunately V2P is the only way to get this to work!

When I run find /grub/stage1 I get the result "(hd0,0)". I have run "root (hd0,0)" and I get the message "Filesystem type is ext2fs, partition type 0x83". Then running setup(hd0) seems to run ok and ends with Done.

I have tried to rebuild my initrd and again, this seemed to be OK.

The only thing I am trying to run now is "grub-install --recheck /dev/sda1" which returns

Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot

I presume this is linked with the fact that when i ran find /boot/grub/stage1 it didn't find anything but did with "find /grub/stage1". Do you know what I should be doing to get grub-install to work?

Thanks for any help you can provide,

Paul

Last edited by kilgour; 02-24-2011 at 06:19 AM.
 
Old 02-24-2011, 06:24 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by kilgour View Post
Thanks for your response xeleema. Unfortunately V2P is the only way to get this to work!
Drat. Even though I'm a staunch beliver that there's always more than one way to skin a penguin.
Quote:
Originally Posted by kilgour View Post
When I run find /grub/stage1 I get the result "(hd0,0)"...
Good, make sure your grub.conf has a line in it that says "root (hd0,0)"
Quote:
Originally Posted by kilgour View Post
...but when i run "root (hd0,0)" i get the message "Filesystem type is ext2fs, partition type 0x83". I am not sure what to do with this?
Don't type "root (hd0,0)" at the "grub>" prompt. That line should be in your grub.conf.
Quote:
Originally Posted by kilgour View Post
I have also attempted to rebuild my initrd and these are the steps that I have taken
1. Boot systemrescuecd
2. Open terminal or console and run "su" for root.
3. Mount root partition or logical volume (VolGroup00/LogVol00)
3a. cd /mnt
3b. mkdir sysroot
3c. mount /dev/VolGroup00/LogVol00 ./sysroot
4. Mount your boot partition: (dev/sda1)
4a. mount /dev/sda1 ./sysroot/boot
5. Mount w/ bind the /dev from rescue system to problem system
5a. mount --bind /dev ./sysroot/dev
6. Go into the chroot environment
6a. chroot sysroot
7. Mount /proc and /sys
7a. mount /proc
7b. mount /sys
8. run mkinitrd
8a. cd /boot
8b. mkinitrd -v -f initrd-2.6.18.194.el5.img 2.6.18.194.el5
You forgot the dash. It should be this;
Code:
8b. mkinitrd -v -f initrd-2.6.18-194.el5.img 2.6.18-194.el5
Quote:
Originally Posted by kilgour View Post
Unfortunately at the last step I get the error "No modules available for kernal initrd-2.6.18-194.el5". I have run "ls -l /lib/modules/2.6.18-194.el5/" and there seem to be module files and folders. Do you know what I might be doing wrong?
Thanks for any help you can provide,
Paul
I know you have to move your current initrd to initrd.bak first.
Just be sure that the the last three characters there are "eee" "ell" "five" (el5) and not "eee" "fifteen" (e15)
(I've goofed up like that before.)
 
1 members found this post helpful.
Old 02-24-2011, 09:06 AM   #5
kilgour
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks xeleema, you have been very helpful.

The root command is in my grub.conf and I managed to successfully run the mkinitrd command (my bad!).

When I restart the system without the rescue disk, I am getting a similar (but not exactly the same) error message. It still reports that Volume group "VolGroup00" not found and mount: could not find filesytem /dev/root. However, it now says "Kernal panic - not syncing: Attempted to kill init!"

For some reason it is unable to find the /var folder even though this is definitely there. When I get the grub console up, and manually attempt to boot, it is noticeable that when i type "kernal /vm[tab]" it finds the /vmlinuz... folder but when i continue to type "ro root=/dev[tab]" it does not find the dev folder.

Does this give any clues? I am really out of ideas! I have managed to run the command "grub-install --recheck /dev/sda" (I was typing sda1 before) and this seems to work ok. Any ideas would be greatly appreciated right now!

Many thanks,

Paul
 
Old 02-24-2011, 09:36 AM   #6
kilgour
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I think it might be to do with my mkinitrd not being created with the correct drivers for the hardware on the SUN server and it not picking up the hard drives correctly. Does anybody know how I find out which drivers are needed for the initrd and I specify the correct ones?

Cheers,

Paul
 
Old 02-24-2011, 10:04 AM   #7
kilgour
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I have seen that the mkinitrd command looks in the /lib/modules/2.6.18-194.el5/kernel/drivers folder for the drivers. Can I assume the drivers in this folder are for a different architecture and need replacing with the correct architecture's drivers or does mkinitrd just "pick" the driver from this folder which it needs for the architecture it thinks it is on? In this case, how do I point it to the correct drivers?

Cheers,

Paul
 
Old 02-24-2011, 11:01 AM   #8
kilgour
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I have managed to fix this! I had to use the mkinitrd command with "--with aacraid" and now it boots up fine. Obviously it wasn't finding the RAID controller because the original VM was created on a windows system that didn't have one.

Thanks for the help xeleema.

Paul
 
Old 02-26-2011, 07:59 AM   #9
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
That's awesome! Way to go!
 
  


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
Kernal Panic error Satheesh Anirudhan Linux - Enterprise 1 01-14-2007 02:34 PM
Kernal Panic Error canegames Linux - Kernel 2 09-28-2006 03:05 PM
kernal panic after update redhat enterprice 4 from kernal(2.6.9-5) to kernal(2.6.9-42 TAREK-SALAMA Linux - Enterprise 3 09-10-2006 09:07 AM
kernal panic error ramjimh Linux - Newbie 1 07-28-2005 12:42 AM
Mandrake 9.0 : Kernal Panic error aniketbapat Linux - General 1 02-23-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration