Installation guide
C H A P T E R 2 Creating and Configuring Virtual Machines
63
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 in the previous step allows
mkinitrd to provide the LSI Logic SCSI driver to the kernel when booting.
3. Edit /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. Make sure you 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.
4. Shut down and power off the virtual machine, then edit the configuration file in
the management interface. Switch the original BusLogic adapter to the LSI Logic
adapter by changing this line:
scsi0.virtualDev = "vmxbuslogic"
to
scsi0.virtualDev = "vmxlsilogic"
5. Remove the LSI Logic adapter you added previously by removing these lines:
scsi1.present = "TRUE"
scsi1.virtualDev = "vmxlsilogic"
6. Save your changes to the configuration file and boot the virtual machine again.
The virtual machine should boot. If it does not boot, switch the configuration
back to BusLogic and boot with the original configuration, and troubleshoot the
following issues:
• The RAM disk may 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.
• The boot loader may not have been installed or was not installed correctly,
which results in the loader loading the old ram disk image. Check the boot
loader configuration and install the boot loader again.
• The kernel does not support the LSI Logic adapter. Check that you can
manually modprobe mptscsi without errors, and that it appears in the
output of lsmod. If not, upgrade the kernel and start over again.
Note: You may see different results on different distributions.