ESXi 5.0 Dealing with Auto Deploy and Image Profiles.

Handling of Image Profiles is done via the PowerCLi interface.

First off to fetch the latest Image Profiles listing by adding VMware's depot.
Add-EsxSoftwareDepot -DepotUrl
List all available bundles
Get-EsxImageProfile | Format-Table -AutoSize
Piping Get-EsxImageProfile through Format-Table gives you the full name of the image.

To fetch an image to export it locally
Export-EsxImageProfile "ImageProfileNamefromListAbove" -FilePath D:\ESXiDepot\Bundle\ -ExportToBundle
or to export to a bootable ISO
Export-EsxImageProfile "ImageProfileNamefromListAbove" -FilePath D:\ESXiDepot\ISOe\ImageProfileNamefromListAbove.iso -ExportToIso

Now we have the bundles we select the bundle we want

Add-EsxSoftwareDepot D:\ESXiDepot\Bundle\

Because the bundle has come from VMWare it will be a read only bundle.
We clone the one we need and embedded the HA Agent in it.

Add-EsxSoftwareDepot http://your.vcenter.server.address:80/vSphere-HA-depot
New-EsxImageProfile -CloneProfile ImageProfileNamefromListAbove -name "NewImageProfileName"
Add-EsxSoftwarePackage -ImageProfile “NewImageProfileName” -SoftwarePackage vmware-fdm

Remove-DeployRule -DeployRule ProductionBootRule -delete

PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI> New-DeployRule -Name ProductionBootRule -Item EMA-ESXi-5.0.0-2012120
2001-standard,em-vs-00,EMCloud -Pattern "mac=00:30:48:f1:5d:1a"

Add-DeployRule -DeployRule ProductionBootRule

PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI> Export-EsxImageProfile EMA-ESXi-5.0.0-20121202001-standard -FilePath
d:\vmware\depot\ -ExportToBundle

PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI> Test-DeployRuleSetCompliance

VMHost ItemList
------ -------- {Non-compliant: EMA-ESXi-5.0.0-469512-standard ...

PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI> Test-DeployRuleSetCompliance | Format-Table -AutoSize

VMHost ItemList
------ -------- {Non-compliant: EMA-ESXi-5.0.0-469512-standard != EMA-ESXi-5.0.0-20121202001-standard}

PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI> Test-DeployRuleSetCompliance | Repair-DeployRuleSetCom
PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI>

Please Register.

If you wish to add comments.