Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127989 - Gentoo as a guest in VMWare Server doesn't boot
Summary: Gentoo as a guest in VMWare Server doesn't boot
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords:
: 128046 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-29 07:27 UTC by M. Edward Borasky
Modified: 2006-04-12 07:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Partitions on the virtual SCSI disk /dev/sda (cfdisk-dev-sda,735 bytes, text/plain)
2006-03-29 19:19 UTC, M. Edward Borasky
Details
ls -l of /dev when the livecd is booted (dev-ls-livecd-chroot,79.27 KB, text/plain)
2006-03-29 19:20 UTC, M. Edward Borasky
Details
kernel ".config" file (dot.config,46.57 KB, text/plain)
2006-03-29 19:21 UTC, M. Edward Borasky
Details
Grub config file "menu.lst" (menu.lst,284 bytes, text/plain)
2006-03-29 19:22 UTC, M. Edward Borasky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description M. Edward Borasky 2006-03-29 07:27:05 UTC
I have a system running VMWare server. I can boot the Gentoo install CD (I used minimal) in a guest virtual machine, and it installed fine, but when I try to boot up the installed guest it can't find the root device:

>> Activating udev
>> Determining root device...
!! Block device /dev/sda2 is not a valid root device...
!! The root block device is unspecified or not detected

I've checked "grub.conf" quite a few times and I'm pretty sure it's right.I can boot the virtual machine with the Gentoo install CD, mount /dev/sda2 and chroot into it with no problems.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-29 10:13:04 UTC
What is your partition layout and please post your grub.conf as an attachment.

Honestly, I should close this as WORKSFORME, since it is definitely something with your configuration if the InstallCD boots fine, but you're one of the "good guys" that tends to help us out when we ask, so I'll help you out.  *grin*
Comment 2 Michiel de Bruijne 2006-03-29 10:53:50 UTC
Also double check if your kernel supports the filesystem and the (virtual) scsi device, if you want you can attach your .config to this bug and I will check it for you.
Comment 3 Matthew Marlowe (RETIRED) gentoo-dev 2006-03-29 11:29:36 UTC
if your kernel actually contains and is loading the appropriate modules (check output of dmesg, it should show /dev/sda2 being assigned)..then it could be a udev problem.  I've seen that happen when setting up a vmware image using the latest 2006.0 livecds.  I think I had to manually mknod the /dev/sdaX file in /dev and ensure that a tarball of /dev was being saved during restarts.  I dont know why the problem occured - I think somehow the install process didnt create the initial tarball so first time your boot up, everything goes to hell.  Hopefully, this isnt the case with you.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-29 14:54:29 UTC
We actually don't even use the udev tarball on the CD itself.  The only real issue I could see is if the system is booting faster than udev is initializing the device nodes, which has been known to happen from time to time.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-29 16:57:28 UTC
*** Bug 128046 has been marked as a duplicate of this bug. ***
Comment 6 M. Edward Borasky 2006-03-29 19:19:26 UTC
Created attachment 83409 [details]
Partitions on the virtual SCSI disk /dev/sda
Comment 7 M. Edward Borasky 2006-03-29 19:20:33 UTC
Created attachment 83410 [details]
ls -l of /dev when the livecd is booted
Comment 8 M. Edward Borasky 2006-03-29 19:21:53 UTC
Created attachment 83411 [details]
kernel ".config" file
Comment 9 M. Edward Borasky 2006-03-29 19:22:41 UTC
Created attachment 83412 [details]
Grub config file "menu.lst"
Comment 10 M. Edward Borasky 2006-03-29 19:39:52 UTC
a couple of other notes:

1. This particular guest machine was *not* built with the LiveCD -- it was built the "old-fashioned" way using the 2006.0 minimal CD over the Internet using my bash scripts. The kernel was built with "genkernel --menuconfig --gensplash all" and is from 2.6.15-r5 gentoo-sources.

2. I tried this with VMWare Server using both a Windows XP host and a Gentoo Linux host. Same thing both times. I also tried it with VMWare Workstation 5.5 on a Windows XP host and it's the same thing.

For now I'm going to switch to an IDE virtual disk like the filer of bug 128046 did. I'm going out of town with a "company" laptop that is a "Penguin-free zone", so I need a virtual Gentoo to check my regular email, etc.

By the way, this is going to end up as an entry in the VMWare Virtual Appliance contest.I don't know exactly what I'm going to do yet, but it *will* be Gentoo-based and *will* use a lightweight desktop, most likely XFCE4.
Comment 11 Michiel de Bruijne 2006-03-30 08:24:40 UTC
I see you have CONFIG_FUSION_SPI=m are you sure this module is loaded at startup? I.o.w. is the module in /etc/modules.autoload.d/kernel-2.6? You can also change it to y and rebuild your kernel (+copy to /boot).

If you are sure that the module is loaded, attach the result of mount in the chroot after you mounted /dev/sda2 (just to double check what your fs is and if support for it is enabled in the kernel).
Comment 12 M. Edward Borasky 2006-04-12 05:53:21 UTC
You can probably close this ... I found out how to at least work around it. When you boot the install CD, you have to put "doscsi" on the command line, e.g.,

boot: gentoo doscsi

And you need a "doscsi" on the kernel command line in your "/boot/grub/menu.lst" file as well. Then it brings in the modules and finds all the SCSI gizmos just fine. It's probably a good idea to compile in the BusLogic module when you do a kernel build, but I haven't done that yet.
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2006-04-12 07:08:22 UTC
Yeah, any options you use on the command line of the CD need to be passed on to grub if you've used genkernel.