shandy4473
Contributor
Contributor

Issue: P2V Old Gentoo Server to ESXi5

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

0 Kudos
11 Replies
continuum
Immortal
Immortal

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

Do you need support with a recovery problem ? - send a message via skype "sanbarrow"
0 Kudos
shandy4473
Contributor
Contributor

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.

0 Kudos
continuum
Immortal
Immortal

what do you have in fstab ? /dev/hda or /dev/sda ?
did you try IDE ?

Do you need support with a recovery problem ? - send a message via skype "sanbarrow"
0 Kudos
shandy4473
Contributor
Contributor

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.

0 Kudos
shandy4473
Contributor
Contributor

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

0 Kudos
continuum
Immortal
Immortal

or add the existing vmdk as IDE and hope your gentoo likes Intel IDE chipsets

Do you need support with a recovery problem ? - send a message via skype "sanbarrow"
0 Kudos
shandy4473
Contributor
Contributor

I can add an IDE disk to the VM but how is the OS going to see if it doesn't boot?

Steve

0 Kudos
continuum
Immortal
Immortal

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"

Do you need support with a recovery problem ? - send a message via skype "sanbarrow"
0 Kudos
shandy4473
Contributor
Contributor

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 -

scsi0:0.deviceType = "scsi-hardDisk"

Steve

0 Kudos
continuum
Immortal
Immortal

if unsure about the settings post the vmx-file so I can check it

Do you need support with a recovery problem ? - send a message via skype "sanbarrow"
0 Kudos
shandy73
Contributor
Contributor

Good Day Everyone,

   Here is the vmx file that is causing problems on Gentoo

Thanks

Steve

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "8"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
nvram = "HqSrSBC.nvram"
virtualHW.productCompatibility = "hosted"
powerType.powerOff = "soft"
powerType.powerOn = "hard"
powerType.suspend = "hard"
powerType.reset = "soft"
displayName = "HqSrSBC"
extendedConfigFile = "HqSrSBC.vmxf"
ide0.present = "TRUE"
scsi0.sharedBus = "none"
memsize = "512"
ide0:0.present = "TRUE"
ide0:0.fileName = "HqSrSBC.vmdk"
ide0:0.deviceType = "ide-hardDisk"
guestOS = "other26xlinux"
uuid.bios = "42 2a ad bb 69 12 34 1d-44 9c 4c 21 e0 04 8d b9"
vc.uuid = "50 2a 89 b5 fb 92 5f 7e-1b c3 04 68 6e b0 6d 7e"
sched.cpu.affinity = "all"
sched.mem.affinity = "all"
vmci0.id = "-536572487"
uuid.location = "56 4d 66 f3 74 78 75 fd-04 d7 b6 81 f1 e9 2b 7f"
cleanShutdown = "TRUE"
replay.supported = "FALSE"
sched.swap.derivedName = "/vmfs/volumes/501ad1c2-3d92f5e4-ede6-782bcb1389d2/HqSrSBC/HqSrSBC-0a9bc9b3.vswp"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
vmci0.pciSlotNumber = "33"
hostCPUID.0 = "0000000b756e65476c65746e49656e69"
hostCPUID.1 = "000206c220200800029ee3ffbfebfbff"
hostCPUID.80000001 = "0000000000000000000000012c100800"
guestCPUID.0 = "0000000b756e65476c65746e49656e69"
guestCPUID.1 = "000006f100010800800022010febfbff"
guestCPUID.80000001 = "00000000000000000000000120100800"
userCPUID.0 = "0000000b756e65476c65746e49656e69"
userCPUID.1 = "000206c220200800000022010febfbff"
userCPUID.80000001 = "00000000000000000000000120100800"
evcCompatibilityMode = "TRUE"
vmotion.checkpointFBSize = "4194304"
scsi0.virtualDev = "buslogic"
sched.scsi0:0.shares = "normal"
sched.scsi0:0.throughputCap = "off"
scsi0.sasWWID = "50 05 05 6b 69 12 34 10"
bios.bootDelay = "9000"
sched.cpu.max = "1024"
sched.cpu.units = "mhz"
sched.mem.max = "512"
tools.remindInstall = "TRUE"
ide0:0.present = "TRUE"
ide0:0.clientDevice = "FALSE"
ide0:0.deviceType = "cdrom-image"
ide0:0.startConnected = "FALSE"
debugStub.linuxOffsets = "0x0,0xffffffff,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0"
tools.syncTime = "FALSE"
ethernet0.present = "TRUE"
ethernet0.virtualDev = "vmxnet3"
ethernet0.networkName = "VM Network"
ethernet0.addressType = "vpx"
ethernet0.generatedAddress = "00:50:56:aa:38:87"
floppy0.present = "FALSE"
ethernet0.pciSlotNumber = "160"
ide0:0.fileName = "/vmfs/volumes/501ad1c2-3d92f5e4-ede6-782bcb1389d2/Server ISOs/systemrescuecd-x86-2.8.0.iso
0 Kudos