Virtu-Al.Net

Virtually everything is poshable

Boot from Paravirtualized SCSI Adapter

From vSphere U1, VMware now support booting from a Paravirtualized SCSI adapter, why would you want to do this ?  Well why not, check out the VMware  Performance Blog where VMware have tested this adapter and shared their results.

VMware were able to achieve 350,000 I/O operations per second on a single vSphere host (ESX 4.0) and 3 virtual machines.  From their findings the VMware Paravirtual SCSI (PVSCSI) adapter was able to achieve 12% more throughput with 18% less CPU cost compared to the LSI virtual adapter… Now you see why we should use it !

So in trying to test this the first thing I did was move one of my current virtual machines onto the adapter by clicking “edit settings” go to “SCSI controller 0” and click the change type button, from there you can select “VMware Paravirtual”.

When booting the VM you may find a slight issue though..

A ‘Blue Screen of Death’ welcomes you!

VMtools was installed and at the latest version (U1) but although the PVSCSI driver is shipped with VMtools it is not actually active until you add a PVSCSI adapter to the VM so to enable the PVSCSI driver for the boot device we need a slight bit of trickery….

1.  With the VM powered off edit the settings and add an extra disk, just something small like 10MB, when choosing the ‘Virtual Device Node’ ensure you put it on another controller than any currently present, I chose SCSI 1:0 as I had no disks on the 1: node.

image

2.  Once added you will also see that a new SCSI Controller has been added.

image

3.  Select the SCSI Controller and click the “Change Type” button at the top Right, Select VMware Paravirtual , click OK and click OK again for the controller and disk to be added to the VM.

4.  Power On the VM and log into the console, once logged in you will see that the controller and disk drivers are added to the OS.

image

And if you check in device manager you will see you now have a LSI Adapter and a VMware PVSCSI Adapter.

image

5.  Now the drivers are installed shut down your VM

6.  Go back into edit the settings and remove the disk we just added, this will automatically remove our extra controller too,  whilst in the VM settings go to the original controller (SCSI Controller 0) and change the type to VMware Paravirtual as we did before.

7. Power back on the Virtual machine and check device manager, you should now only have the controllers we need.

image

Now you can reap the benefits of the extra speed !

As a note while we are on the subject don’t forget that if you build a VM from fresh using the Paravirtual SCSI Adapter you will need to hit F6 and select the drivers during the OS install.

,

15 Responses to “Boot from Paravirtualized SCSI Adapter”

Leave a Reply

Your email address will not be published. Required fields are marked *

*

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