Specifications
VMware, Inc. 59
Chapter 2 Creating and Configuring Virtual Machines
For!an!existing!Linux!virtual!machine!with!the!modified!configuration,!the!guest!needs!
to!boot!with!the!LSI!Logic!SCSI!adapter,!so!it!tries!to!load!that!driver!from!the!initial!
RAM!disk!(initrd)!before!the!root!partition!is!mounted.!
To configure the LSI Logic SCSI Adapter in a Linux guest operating system
1Edit!/etc/modules.conf!and!set!scsi_hostadapter!to!mptscsih.
2 Create!a!
new!initial!RAM!disk!for!the!running!kernel.
mkinitrd --preload mptbase
/boot/initrd-<kernelname>-lsi.img <kernelname>
Where!<kernelname>!is!the!version!of!the!guest’s!kernel;!such!as!2.4.18‐3.
The!modules.conf!modification!you!made!allows!mkinitrd!to!provide! the!LSI!
Logic!SCSI!driver!to!the!kernel!when!booting.
3Edit!/etc/lilo.conf!or!/boot/grub/grub.conf!(depending!on!which!is!in!use!
in!the
!guest).!
Create!a!new!entry!that!uses!the!existing!kernel,!but!the!new!RAM!disk!file.!Keep!
the!original!boot!entry,!in!case!you!have!a!problem!and!need!to!boot!with!the!
BusLogic!adapter.!Install!the!boot!loader!(lilo,!or!grub-install /dev/sda)!
again.
4Shut!down!and!power!off!the!
virtual!machine,!and!edit!the!configuration!file!in!the!
management!interface.!
Switch!the!BusLogic!adapter!to!the!LSI!Logic!adapter!by!changing!this!line:
scsi0.virtualDev = “vmxbuslogic”
to!
scsi0.virtualDev = “vmxlsilogic”
5Remove!the!LSI!Logic!adapter!you!added!by!removing!these!lines:
scsi1.present = “TRUE”
scsi1.virtualDev = “vmxlsilogic”
6 Save!your!changes!to!the!configuration!file!and!boot!the!virtual!machine!again.!
If!the!virtual!machine!does!not!boot,!switch!the!configuration!back!to!BusLogic!and!
boot!with!the!original!configuration,!and!troubleshoot!the!following!issues:
! RAM!disk!might!not!have!been!created!correctly.!It!must!preload!mptbase!
and!load!mptscsih!as!the! main!SCSI!driver,!which!you!specified!in!Step 1.!
Verify!that!both!of!these!activities!occurred.