When you create an image profile and exit the vSphere PowerCLI session, the image profile is no longer available when you start a new session. You can export the image profile to a ZIP file software depot, and add that depot in the next session.

Before you begin

Install the vSphere PowerCLI and all prerequisite software. See Install vSphere ESXi Image Builder and Prerequisite Software.

Procedure

  1. In a vSphere PowerCLI session, create an image profile, for example by cloning an existing image profile and adding a VIB.
  2. Export the image profile to a ZIP file by calling Export-EsxImageProfile with the ExportToBundle parameter.
    Export-EsxImageProfile	-ImageProfile "my_profile" -ExportToBundle -FilePath
    				"C:\isos\temp-base-plus-vib25.zip"
  3. Exit the vSphere PowerCLI session.
  4. When you start a new vSphere PowerCLI session, add the depot that contains your image profile to access it.
    Add-EsxSoftwareDepot "C:\isos\temp-base-plus-vib25.zip"