VMware vSphere 5.5 Cookbook
上QQ阅读APP看书,第一时间看更新

Adding the HA VIB to the image profile

If you are deploying stateless ESXi hosts using vSphere Auto Deploy, then you should be packaging the vSphere HA FDM VIB into the image profile; otherwise, you won't be able to enable HA on the auto-deployed hosts.

How to do it...

The following procedure will guide you through the steps required in adding the FDM VIB to the image profile:

  1. Use the cmdlet Connect-VIServer to add the vCenter server to the PowerCLI session:
    Connect-VIServer -Server vcenterhost001 -User Administrator -Password pass123
    
  2. Add the ESXi offline bundle to the session:
    Add-EsxSoftwareDepot -DepotUrl C:\Offline-Bundles\VMware-ESXi-5.5.0-1331820-depot.zip
    
  3. Add the vSphere HA depot to the session. The vSphere HA depot is at http://IP or FQDN of the vCenterhost/vSphere-HA-depot:
    Add-EsxSoftwareDepot http://vcenterhost001/vSphere-HA-depot
    
  4. Clone and create a new image profile to customize. Read the recipe Creating an image profile by cloning a predefined profile for instructions.
  5. Add the FDM VIB vmware-fdm to the new image profile:
    Add-EsxSoftwarePackage "vmware-fdm" –ImageProfile Profile001
    
  6. Export the image profile to a ZIP archive, so that the customization is not lost when you exit the Power CLI Session. Read the recipe Exporting an image profile as an ISO or offline bundle.
  7. The image profile can now be used in an Auto Deploy rule. For instructions on how to create auto deploy rules, read Chapter 5, Using vSphere Auto Deploy.