Difference between revisions of "Adding Third Party Drivers To A VMware vSphere/ESXi 5 Installation ISO"

From Nearline Storage
Jump to navigation Jump to search
m
m
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Stolen from http://alexander.walden.de/2012/01/18/making-your-own-esxi-5-installation-image/
 
Stolen from http://alexander.walden.de/2012/01/18/making-your-own-esxi-5-installation-image/
  
#Download the [https://my.vmware.com/group/vmware/details?productId=285&downloadGroup=VCL-VSP510-ESXI-510-EN VMware vSphere offline bundle]
+
The SSD I purchased as the only disk in my new server isn't recognized by the vSphere installation CD.  I need to add a driver from the vendor in order to do the installation.
#Add the offline bundle as the depot:<p><code>Add-EsxSoftwareDepot  c:\temp\VMware-ESXi-5.1.0-799733-depot.zip</code></p>
+
 
#To show all software packages in these channels, run<p><code>Get-EsxSoftwarePackage</code></p>
+
#Download and install [http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli?rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CCkQFjAA&url=http://www.vmware.com/go/PowerCLI&ei=Zo90UNauJMf1ygG0wYDQDw&usg=AFQjCNHixkgPGjBKVx5ZnJKrGXx0ba-y_g&sig2=KQgPBTyg9qp1p1t3617RCg VMware vSphere PowerCLI] on a Windows 7 machine
#Download the driver. In this case I’ve downloaded the driver for the OCZ Revodrive 3:<p>[https://my.vmware.com/group/vmware/details?downloadGroup=DT-ESX50-OCZ_Technology-ocz10xx-100&productId=242 ocz10xx-1.0.0-offline_bundle-751505.zip]</p>
+
#*Run it as an administrator
#Place this driver file in a location accessible to your PowerCLI window.
+
#*The first time you start it, run<p><code>Set-ExecutionPolicy RemoteSigned</code></p>
#Add the “offline bundle” packages to the depot:<p><code>Add-EsxSoftwareDepot c:\temp\ocz10xx-1.0.0-offline_bundle-751505.zip</code> (remember to adjust the path to your environment!)</p>
+
#Download the driver. The driver I needed is found at:<p>[https://my.vmware.com/group/vmware/details?downloadGroup=DT-ESX50-OCZ_Technology-ocz10xx-100&productId=242 ocz10xx-1.0.0-offline_bundle-751505.zip]</p>
#To check the software packages for a specific vendor run<p><code>Get-EsxSoftwarePackage -Vendor ocz*</code></p>
+
#Unzip the driver file into a location that is accessible to the PowerCLI window.
#Next we will select a valid ESXi 5 image profile and create a clone that we will then enhance. Run <code>Get-EsxImageProfile</code> to get a list of all available profiles. For this example, I’m selecting ESXi-5.1.0-799733-standard as that is the latest at the time of writing. To create a clone of this profile run<p><code>New-EsxImageProfile -CloneProfile ESXi-5.1.0-799733-standard -Name ESXi-5.1.0-799733-Custom</code>.</p><p>Obviously feel free to adjust the name of the image as required</p><p>OPTIONAL: You may need to change the Acceptance Level of your image depending on which drivers you want to inject by running</p><p><code>Set-EsxImageProfile -ImageProfile ESXi-5.0.0-Custom-18012012 -AcceptanceLevel CommunitySupported</code></p>
+
#Add the VMware online depot as the starting point:<p><code>Add-EsxSoftwareDepot -DepotUrl https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml</code></p><p>Alternately, you can download the [https://my.vmware.com/group/vmware/details?productId=285&downloadGroup=VCL-VSP510-ESXI-510-EN VMware vSphere offline bundle] and use it as the base depot by running:</p><p><code>Add-EsxSoftwareDepot  c:\temp\VMware-ESXi-5.1.0-799733-depot.zip</code></p>
#To get the list of VIBs in your profile run<p><code>(Get-EsxImageProfile -Name ESXi-5.0.0-Custom-18012012).VibList</code></p>
+
#Add the driver's offline bundle ZIP file to the depot:<p><code>Add-EsxSoftwareDepot c:\temp\ocz10xx-1.0.0-offline_bundle-751505.zip</code> (remember to adjust the path to your environment!)</p>
#Now add the driver to your profile by running<p><code>Add-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-dlk -SoftwarePackage scsi-ocz10xx</code></p>
+
#To check the software packages in the depot for a specific vendor, run<p><code>Get-EsxSoftwarePackage -Vendor ocz*</code></p><p>You'll need to do this to get the driver's internal package name for a later step.</p>
#When you run the command at 10. again, you will see how the drivers are now from Cisco and Broadcom – and not VMware anymore.
+
#To show all software packages in the depot, run<p><code>Get-EsxSoftwarePackage</code></p>
#Now let’s add the HP VIBs by running Add-EsxSoftwarePackage -ImageProfile ESXi-5.0.0-Custom-18012012 -SoftwarePackage char-hpilo, hp-smx-provider, char-hpcru, hpbootcfg, hponcfg
+
#Next, select a valid ESXi 5 image profile and create a clone that you'll then enhance. Run <code>Get-EsxImageProfile</code> to get a list of all available profiles. For this example, I’m selecting ESXi-5.1.0-799733-standard since it's the latest available as of this writing. To create a clone of this profile run<p><code>New-EsxImageProfile -CloneProfile ESXi-5.1.0-799733-standard -Name ESXi-5.0.0-20111204001-Custom</code>.</p><p>Obviously feel free to adjust the name of the image as required</p><p>OPTIONAL: You may need to change the Acceptance Level of your image depending on which drivers you want to inject by running</p><p><code>Set-EsxImageProfile -ImageProfile ESXi-5.1.0-799733-Custom -AcceptanceLevel CommunitySupported</code></p>
#Now check again with (Get-EsxImageProfile -Name ESXi-5.0.0-Custom-18012012).VibList that all your drivers and updates are inserted.
+
#Now add the driver to your profile by running<p><code>Add-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-custom -SoftwarePackage scsi-ocz10xx</code></p>
#Once you are happy with all your additions, you should export the profile into a ZIP file for later changes. Remember: when you exit the PowerShell session, all your work is gone! You can however skip this if you choose so. Export into a ZIP by running Export-EsxImageProfile -ImageProfile ESXi-5.0.0-Custom-18012012 -ExportToBundle -FilePath "X:\VMware\ESXi5\ESXi-5.0.0-Custom-18012012.zip" .
+
#To get the list of VIBs in your profile, run<p><code>(Get-EsxImageProfile -Name ESXi-5.1.0-799733-Custom).VibList</code></p>
#Now export your Custom ISO: Export-EsxImageProfile -ImageProfile ESXi-5.0.0-Custom-18012012 -ExportToISO -FilePath "X:\VMware\ESXi5\ESXi-5.0.0-Custom-18012012.iso"
+
#Now export your custom ISO:<p><code>Export-EsxImageProfile -ImageProfile ESXi-5.1.0-799733-Custom -ExportToISO -FilePath "c:\temp\ESXi-5.1.0-799733-Custom.iso"</code></p>
#To compare the original to your profile, run this Compare-EsxImageProfile ESXi-5.0.0-20111204001-standard ESXi-5.0.0-Custom-18012012
+
#If you want to save a custom depot zip file, run<p><code>Export-EsxImageProfile -ImageProfile ESXi-5.1.0-799733-Custom -ExportToBundle -FilePath "c:\temp\ESXi-5.1.0-799733-Custom.zip"</code></p>
#And just in case you want to remove a package: Remove-EsxSoftwarePackage -ImageProfile ESXi-5.0.0-Custom-18012012-SoftwarePackage net-be2net (as an example).
+
#To compare the original to your profile, run<p><code>Compare-EsxImageProfile ESXi-5.1.0-799733-standard ESXi-5.1.0-799733-Custom</code></p>
 +
#And just in case you need to know how to remove a package:<p><code>Remove-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-Custom -SoftwarePackage scsi-ocz10xx</code></p>
 +
 
 +
Note: I had to transfer the ISO image to Linux and burn using <code>cdrecord</code> in order to get a CD that would boot properly.
 +
[[Category:Linux]]

Latest revision as of 15:34, 31 December 2019

Stolen from http://alexander.walden.de/2012/01/18/making-your-own-esxi-5-installation-image/

The SSD I purchased as the only disk in my new server isn't recognized by the vSphere installation CD. I need to add a driver from the vendor in order to do the installation.

  1. Download and install VMware vSphere PowerCLI on a Windows 7 machine
    • Run it as an administrator
    • The first time you start it, run

      Set-ExecutionPolicy RemoteSigned

  2. Download the driver. The driver I needed is found at:

    ocz10xx-1.0.0-offline_bundle-751505.zip

  3. Unzip the driver file into a location that is accessible to the PowerCLI window.
  4. Add the VMware online depot as the starting point:

    Add-EsxSoftwareDepot -DepotUrl https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

    Alternately, you can download the VMware vSphere offline bundle and use it as the base depot by running:

    Add-EsxSoftwareDepot c:\temp\VMware-ESXi-5.1.0-799733-depot.zip

  5. Add the driver's offline bundle ZIP file to the depot:

    Add-EsxSoftwareDepot c:\temp\ocz10xx-1.0.0-offline_bundle-751505.zip (remember to adjust the path to your environment!)

  6. To check the software packages in the depot for a specific vendor, run

    Get-EsxSoftwarePackage -Vendor ocz*

    You'll need to do this to get the driver's internal package name for a later step.

  7. To show all software packages in the depot, run

    Get-EsxSoftwarePackage

  8. Next, select a valid ESXi 5 image profile and create a clone that you'll then enhance. Run Get-EsxImageProfile to get a list of all available profiles. For this example, I’m selecting ESXi-5.1.0-799733-standard since it's the latest available as of this writing. To create a clone of this profile run

    New-EsxImageProfile -CloneProfile ESXi-5.1.0-799733-standard -Name ESXi-5.0.0-20111204001-Custom.

    Obviously feel free to adjust the name of the image as required

    OPTIONAL: You may need to change the Acceptance Level of your image depending on which drivers you want to inject by running

    Set-EsxImageProfile -ImageProfile ESXi-5.1.0-799733-Custom -AcceptanceLevel CommunitySupported

  9. Now add the driver to your profile by running

    Add-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-custom -SoftwarePackage scsi-ocz10xx

  10. To get the list of VIBs in your profile, run

    (Get-EsxImageProfile -Name ESXi-5.1.0-799733-Custom).VibList

  11. Now export your custom ISO:

    Export-EsxImageProfile -ImageProfile ESXi-5.1.0-799733-Custom -ExportToISO -FilePath "c:\temp\ESXi-5.1.0-799733-Custom.iso"

  12. If you want to save a custom depot zip file, run

    Export-EsxImageProfile -ImageProfile ESXi-5.1.0-799733-Custom -ExportToBundle -FilePath "c:\temp\ESXi-5.1.0-799733-Custom.zip"

  13. To compare the original to your profile, run

    Compare-EsxImageProfile ESXi-5.1.0-799733-standard ESXi-5.1.0-799733-Custom

  14. And just in case you need to know how to remove a package:

    Remove-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-Custom -SoftwarePackage scsi-ocz10xx

Note: I had to transfer the ISO image to Linux and burn using cdrecord in order to get a CD that would boot properly.