Adding Third Party Drivers To A VMware vSphere/ESXi 5 Installation ISO
Jump to navigation
Jump to search
Stolen from http://alexander.walden.de/2012/01/18/making-your-own-esxi-5-installation-image/
- Download the VMware vSphere offline bundle
- Add the offline bundle as the depot:
Add-EsxSoftwareDepot c:\temp\VMware-ESXi-5.1.0-799733-depot.zip
- To show all software packages in these channels, run
Get-EsxSoftwarePackage
- Download the driver. In this case I’ve downloaded the driver for the OCZ Revodrive 3:
- Place this driver file in a location accessible to your PowerCLI window.
- Add the “offline bundle” packages to the depot:
Add-EsxSoftwareDepot c:\temp\ocz10xx-1.0.0-offline_bundle-751505.zip
(remember to adjust the path to your environment!) - To check the software packages for a specific vendor run
Get-EsxSoftwarePackage -Vendor ocz*
- 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.1.0-799733-standard as that is the latest at the time of writing. To create a clone of this profile runNew-EsxImageProfile -CloneProfile ESXi-5.1.0-799733-standard -Name ESXi-5.1.0-799733-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.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
- 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
- When you run the command at 10. again, you will see how the drivers are now from Cisco and Broadcom – and not VMware anymore.
- 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
- Now check again with (Get-EsxImageProfile -Name ESXi-5.0.0-Custom-18012012).VibList that all your drivers and updates are inserted.
- 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" .
- 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"
- To compare the original to your profile, run this Compare-EsxImageProfile ESXi-5.0.0-20111204001-standard ESXi-5.0.0-Custom-18012012
- 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).