Good Day Everyone,
I have a small issue. I recently P2V'd a small desktop computer that was running Linux 2.6.18-gentoo-r4 into a VM on ESXi 5.0. When I attempt to power on the machine - I get a kernel panic that says
Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0). <6>Time: tsc clocksource has been installed.
My initial thoughts are to attempt to recompile the kernel to a higher version of Gentoo.
Does anyone have any thoughts?
Thanks
Steve
what do you have in the original fstab : /dev/hda or /dev/sda ?
first of all use a Gentoo LiveCD and check /etc/fstab
then you may also need create a new initrd
but before you try any changes - switch the disk to IIDE or BUSLOGIC and see if you have more luck
I tried buslogic - didn't work. Is there a way to add a SCSI driver to the kernel or upgrade the kernel via LiveCD? From what I read, the issue that a driver is lacking in older Gentoo kernels.
what do you have in fstab ? /dev/hda or /dev/sda ?
did you try IDE ?
I am downloading the LiveCD to check the fstab. However the grub has hda(0,0). IDE didn't work. I changed in the vmx file - scsi lines to ide and it didn't boot.
Okay I have use the systemrescuecd-x86 and have chrooted into the VM. On performing a cat /etc/fstab:
/dev/hda1 /boot ext2
/dev/hda3 / ext2
/dev/hda2 none swap
It appears /dev/hda3. I could upgrade the VM kernel to a newer kernel to detect the scsi controller
or add the existing vmdk as IDE and hope your gentoo likes Intel IDE chipsets
I can add an IDE disk to the VM but how is the OS going to see if it doesn't boot?
Steve
now your vmdk is connected to its controller like this
scsi0:0.filename = "the-imported-vmdk-who-looks-like-hda.vmdk"
rewite that to
ide0:0.filename = "the-imported-vmdk-who-looks-like-hda.vmdk"
when the VM is powered off and unregistered.
Make sure you have this lines as well
ide0.present = "true"
ide0:0.present = "true"
i can't add it back to the inventory once those changes are made. The option is greyed out. Are you sure this line should be edited as well -
Steve
if unsure about the settings post the vmx-file so I can check it
Good Day Everyone,
Here is the vmx file that is causing problems on Gentoo
Thanks
Steve