Niels Horn's Blog

Random thoughts, tips & tricks about Slackware-Linux, Lego and Star Wars

VMware & Slackware as guest

Just a quick hint for those having trouble using the ‘generic’ kernel (as we should always use) when installing Slackware as a guest with VMware.

VMware creates SCSI drives by default when we create a new virtual machine for Linux with a 2.6 kernel, emulating a LSI Logic SCSI controller. The ‘huge’ kernel that comes with Slackware recognizes this controller as it is built in. But when we try to use the ‘generic’ kernel it ends up not completing the boot process as it cannot mount the root partition. We are presented with a basic shell to try to solve the problem but we only and up with a ‘kernel panic’

You probably already created a initrd.gz (initial RAM disk) to load the modules for your file system with your generic kernel.
To use the LSI Logic controller, we need to add some more modules to the list, like this:

mkinitrd -c -k xxx -m jbd:ext3:scsi_transport_spi:mptbase:mptscsih:mptspi -f ext3 -r /dev/yyy

Replace ‘xxx’ with your kernel version (I use 2.6.24.7-smp) and yyy with the partition of your root (probably sda1 or sda2).

Don’t forget to run lilo again and then you can boot using the generic kernel without problems!

Bookmark and Share

This entry was posted on Sunday, October 5th, 2008 at 14:08 and is filed under Linux, Slackware, VMware. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply



XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

It may take some time for your comment to appear, it is not necessary to submit it again.