In part 1 of this short series we discussed configuration drift with regards to ESXi hosts. In this part, we complete the series by configuring answer files, host profiles, and various other settings needed to successfully Auto Deploy ESXi hosts. Continue reading
Image Builder
Using vSphere Auto Deploy to reduce configuration drift in the enterprise – Part 1
A common challenge facing enterprise deployments of vSphere is configuration drift. When the hardware or software configuration changes, manageability becomes increasingly difficult. This in turn results in higher support costs. Continue reading
Wednesday Tidbit: Create custom ESXi ISO with ESX-tools-for-ESXi
My test cluster in the lab recently needed to be rebuilt. As this cluster is nested and I wanted the latest version of ESXi to be deployed, I thought it would be good to use Image Builder to combine the two.
After downloading the VMware Tools for Nexted ESXi tools fling, I followed Andreas Peetz’ article on how to use them to build an offline bundle.
Once done, I used the following PowerCLI script with Image Builder to create my new ISO complete with VMware Tools for Nested ESXi:
# Add VMware depot Add-EsxSoftwareDepot C:\Depot\ESXi550-201505002.zip # Clone the ESXi 5.5 GA profile into a custom profile $CloneProfile = Get-EsxImageProfile ESXi-5.5.0-20150504001-standard $MyProfile = New-EsxImageProfile -CloneProfile $CloneProfile -Vendor $CloneProfile.Vendor -Name (($CloneProfile.Name) + "-virtualhobbit") -Description $CloneProfile.Description # Add the Nested ESXi VMTools Offline bundle Add-EsxSoftwareDepot C:\Depot\esx-tools-for-esxi-9.7.1-0.0.00000-offline_bundle.zip # Add the esx-tools-for-esxi package to the custom profile Add-EsxSoftwarePackage -SoftwarePackage esx-tools-for-esxi -ImageProfile $MyProfile # Disable signature check $DeployNoSignatureCheck=$true # Export the custom profile into an ISO file Export-EsxImageProfile -ImageProfile $MyProfile -ExportToISO -NoSignatureCheck -FilePath C:\Depot\ESXi550-201505002-virtualhobbit.iso
I also chose to export the image profile to a .zip file, so I could use it to remediate an existing cluster using VUM.
Export-EsxImageProfile -ImageProfile $MyProfile -ExportToBundle -NoSignatureCheck -FilePath C:\Depot\ESXi550-201505002-virtualhobbit.zip