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
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/
  
#Add the VMware Online Depot: Add-EsxSoftwareDepot -DepotUrl https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
+
#Download the [https://my.vmware.com/group/vmware/details?productId=285&downloadGroup=VCL-VSP510-ESXI-510-EN VMware vSphere offline bundle]
#Add the HP Online Depot: Add-EsxSoftwareDepot -DepotUrl http://vibsdepot.hp.com/index.xml
+
#Add the offline bundle as the depot: <code>Add-EsxSoftwareDepot -DepotUrl VMware-ESXi-5.1.0-799733-depot.zip</code>
#You can confirm that channels and packages are added by Get-EsxSoftwareChannel
+
#Download the driver. In this case I’ve download the driver for the OCZ two Cisco drivers for ENIC and FNIC as well as the latest Broadcom drivers:
#To show all software packages in these channels, run Get-EsxSoftwarePackage
 
#Download the drivers from VMware. In this case I’ve download the two Cisco drivers for ENIC and FNIC as well as the latest Broadcom drivers:
 
 
#*enic_driver_2.1.2.22-564611.zip
 
#*enic_driver_2.1.2.22-564611.zip
 
#*fnic_driver_1.5.0.7-563432.zip
 
#*fnic_driver_1.5.0.7-563432.zip
Line 16: Line 14:
 
#To check the software packages for a specific vendor run Get-EsxSoftwarePackage -Vendor Cisco or Get-EsxSoftwarePackage -Vendor He*for example
 
#To check the software packages for a specific vendor run Get-EsxSoftwarePackage -Vendor Cisco or Get-EsxSoftwarePackage -Vendor He*for example
 
#Next we will select a valid ESXi 5 image profile and create a clone that we will then enhance. Run Get-EsxImageProfile to get a list of all available profiles. For this example, I’m selecting ESXi-5.0.0-20111204001-standard as that includes the latest patches at the time of writing. To create a clone run the following command:
 
#Next we will select a valid ESXi 5 image profile and create a clone that we will then enhance. Run Get-EsxImageProfile to get a list of all available profiles. For this example, I’m selecting ESXi-5.0.0-20111204001-standard as that includes the latest patches at the time of writing. To create a clone run the following command:
<br />New-EsxImageProfile -CloneProfile ESXi-5.0.0-20111204001-standard -Name ESXi-5.0.0-Custom-18012012 . Obviously feel free to adjust the name of the image as you need! 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.0.0-Custom-18012012 -AcceptanceLevel CommunitySupported
+
New-EsxImageProfile -CloneProfile ESXi-5.0.0-20111204001-standard -Name ESXi-5.0.0-Custom-18012012 . Obviously feel free to adjust the name of the image as you need! 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.0.0-Custom-18012012 -AcceptanceLevel CommunitySupported
 
#To get the list of VIBs in your profile run (Get-EsxImageProfile -Name ESXi-5.0.0-Custom-18012012).VibList including the brackets
 
#To get the list of VIBs in your profile run (Get-EsxImageProfile -Name ESXi-5.0.0-Custom-18012012).VibList including the brackets
 
#Now add the Cisco and Broadcom drivers to your profile by running Add-EsxSoftwarePackage -ImageProfile ESXi-5.0.0-Custom-18012012 -SoftwarePackage scsi-fnic, net-enic, net-tg3
 
#Now add the Cisco and Broadcom drivers to your profile by running Add-EsxSoftwarePackage -ImageProfile ESXi-5.0.0-Custom-18012012 -SoftwarePackage scsi-fnic, net-enic, net-tg3

Revision as of 19:59, 9 October 2012

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

  1. Download the VMware vSphere offline bundle
  2. Add the offline bundle as the depot: Add-EsxSoftwareDepot -DepotUrl VMware-ESXi-5.1.0-799733-depot.zip
  3. Download the driver. In this case I’ve download the driver for the OCZ two Cisco drivers for ENIC and FNIC as well as the latest Broadcom drivers:
    • enic_driver_2.1.2.22-564611.zip
    • fnic_driver_1.5.0.7-563432.zip
    • tg3-3.120h.v50.2-547149.zip
  4. Extract these drivers to a location accessible to your PowerCLI window.
  5. Now add the “offline bundle” packages to the depot:
    • Add-EsxSoftwareDepot X:\VMware\ESXi5\Drivers\enic_driver_2.1.2.22-564611\enic_driver_2.1.2.22-offline_bundle-564611.zip
    • Add-EsxSoftwareDepot X:\VMware\ESXi5\Drivers\fnic_driver_1.5.0.7-563432\fnic_driver_1.5.0.7-offline_bundle-563432.zip
    • Add-EsxSoftwareDepot X:\VMware\ESXi5\Drivers\tg3-3.120h.v50.2-547149\tg3-3.120h.v50.2-offline_bundle-547149.zip (remember to adjust the path to your environment!)
  6. To check the software packages for a specific vendor run Get-EsxSoftwarePackage -Vendor Cisco or Get-EsxSoftwarePackage -Vendor He*for example
  7. Next we will select a valid ESXi 5 image profile and create a clone that we will then enhance. Run Get-EsxImageProfile to get a list of all available profiles. For this example, I’m selecting ESXi-5.0.0-20111204001-standard as that includes the latest patches at the time of writing. To create a clone run the following command:

New-EsxImageProfile -CloneProfile ESXi-5.0.0-20111204001-standard -Name ESXi-5.0.0-Custom-18012012 . Obviously feel free to adjust the name of the image as you need! 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.0.0-Custom-18012012 -AcceptanceLevel CommunitySupported

  1. To get the list of VIBs in your profile run (Get-EsxImageProfile -Name ESXi-5.0.0-Custom-18012012).VibList including the brackets
  2. Now add the Cisco and Broadcom drivers to your profile by running Add-EsxSoftwarePackage -ImageProfile ESXi-5.0.0-Custom-18012012 -SoftwarePackage scsi-fnic, net-enic, net-tg3
  3. When you run the command at 10. again, you will see how the drivers are now from Cisco and Broadcom – and not VMware anymore.
  4. 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
  5. Now check again with (Get-EsxImageProfile -Name ESXi-5.0.0-Custom-18012012).VibList that all your drivers and updates are inserted.
  6. 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" .
  7. 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"
  8. To compare the original to your profile, run this Compare-EsxImageProfile ESXi-5.0.0-20111204001-standard ESXi-5.0.0-Custom-18012012
  9. 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).