ADVERTISE HERE

Boot from Paravirtualized SCSI Adapter

Title: Boot from Paravirtualized SCSI Adapter
Author(s): (VIRTU-AL) Alan Renouf
Target Audience: Technical - Intermediate
Current Revision:
First Published: 7 December 2009
Products: VMware vSphere
UID: XD10154

Boot from a Paravirtualizaed SCSI adapter without the Blue Screen of Death.

Punchy Text: 

Boot from a Paravirtualizaed SCSI adapter without the Blue Screen of Death

Alan Renouf is a community peer for VMware PowerCLI, Virtu-Al.Net.  In 2009, he was named a vEXPERT by VMware.  Alan's main focus is to teach and help other VMware admins automate their VMware infrastructures and make their lives easier through automation.
www.virtu-al.net.


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.

Add Hardware - Advanced Options

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

New SCSI Controller has been added

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.

VMware PVSCSI Controller

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

Storage controllers

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.

Storage controllers2

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.

Spotlight:

Microsoft Volume Licensing in Virtualized Environments

If you are a Microsoft volume licensing customer then this paper is a 'must have'

Tape Backup Integration with VMware Data Recovery (VDR)

Move VDR backup data to tape the easy way with Powershell

Beginners Guide to Managing VMware using PowerShell

Release the power...go forth and manage VMware using Microsoft's PowerShell

Technology Exchange:

Paul Davey, Xtravirt CTO - Blog

virtualboy - Matt McSpirit on Windows Server & Virtualisation

Simon Long - The Slog

ICT-Freak – VMware, Windows, Citrix, Linux, Scripting...

Virtu-Al – Virtually everything is poshable

Download the FREE SolarWinds VM Monitor for Instant Visibility into VMware!

Add3 – Technology Driven Consultancy

Dan Eason is Virtually Insane

<!--[if gte mso 9]> Normal 0 false false false EN-GB X-NONE X-NONE MicrosoftInternetExplorer4 <![endif]--><!--[if gte mso 9]> <![endif]--><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-520092929 1073786111 9 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} --><!--[if gte mso 10]> <! /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} --> <!--[endif]-->

ICT-Freak – VMware, Windows, Citrix, Linux, Scripting...