Difference between revisions of "Adding Third Party Drivers To A VMware vSphere/ESXi 5 Installation ISO"
m |
m |
||
Line 8: | Line 8: | ||
#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> | #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> | ||
#To check the software packages for a specific vendor run<p><code>Get-EsxSoftwarePackage -Vendor ocz*</code></p> | #To check the software packages for a specific vendor run<p><code>Get-EsxSoftwarePackage -Vendor ocz*</code></p> | ||
− | #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. | + | #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.1.0-799733-Custom -AcceptanceLevel CommunitySupported</code></p> |
− | #To get the list of VIBs in your profile run<p><code>(Get-EsxImageProfile -Name ESXi-5. | + | #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 add the driver to your profile by running<p><code>Add-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733- | + | #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> |
− | + | #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<p><code>Compare-EsxImageProfile ESXi-5.1.0-799733-standard ESXi-5.1.0-799733-Custom</code></p> | |
− | + | #And just in case you want to remove a package:<p><code>Remove-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-Custom -SoftwarePackage scsi-ocz10xx</code></p> | |
− | |||
− | #Now export your Custom ISO: Export-EsxImageProfile -ImageProfile ESXi-5. | ||
− | #To compare the original to your profile, run | ||
− | #And just in case you want to remove a package: Remove-EsxSoftwarePackage -ImageProfile ESXi-5. |
Revision as of 20:36, 9 October 2012
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.1.0-799733-Custom -AcceptanceLevel CommunitySupported
- To get the list of VIBs in your profile run
(Get-EsxImageProfile -Name ESXi-5.1.0-799733-Custom).VibList
- Now add the driver to your profile by running
Add-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-custom -SoftwarePackage scsi-ocz10xx
- 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"
- To compare the original to your profile, run
Compare-EsxImageProfile ESXi-5.1.0-799733-standard ESXi-5.1.0-799733-Custom
- And just in case you want to remove a package:
Remove-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-Custom -SoftwarePackage scsi-ocz10xx