You can export an image profile to an ISO image or a ZIP file of component files and folders. You cannot create both by running the cmdlet once. You can use the ISO image as an ESXi installer or upload the ISO into vSphere Update Manager for upgrades. You can use the ZIP file, which contains metadata and the VIBs specified in the image profile, for upgrades to ESXi 5.0 and later.

Administrators performing this task must have some experience with PowerCLI or Microsoft PowerShell.

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

If you encounter problems running PowerCLI cmdlets, consider changing the execution policy. See Using Image Builder Cmdlets.

1

Run Add-EsxSoftwareDepot to connect to the depot that contains the image profile to export.

Depot Type

Cmdlet

Remote depot

Run Add-EsxSoftwareDepot -DepotUrl depot_url.

ZIP file

a

Download the ZIP file to a local file path.

b

Run Add-EsxSoftwareDepot -DepotUrl C:\file_path\offline-bundle.zip

The cmdlet returns one or more SoftwareDepot objects.

2

Run Export-EsxImageProfile to export the image profile.

To build...

Run...

ISO images

Export-EsxImageProfile with the -ExportToIso parameter.

Offline depot ZIP files

Export-EsxImageProfile with the -ExportToBundle parameter.

For the ISO image, Image Builder validates VIB signatures, adds VIB binaries to the image, and downloads the image to the specified location. For the ZIP file, Image Builder validates VIB signatures and downloads the VIB binaries to the specified location.

Export an image profile to ISO from the PowerCLI prompt.

1

Add the software depot.

Add-EsxSoftwareDepot -DepotUrl url_or_file
2

Display all available image profiles to find the name of the image profile to export.

Get-EsxImageProfile
3

Export the image profile.

Export-EsxImageProfile -ImageProfile "myprofile" -ExportToIso -FilePath iso_name

Export an image profile to an offline bundle ZIP from the PowerCLI prompt.

1

Add the software depot.

Add-EsxSoftwareDepot -DepotUrl url_or_file
2

Display all available image profiles to find the name of the image profile to export.

Get-EsxImageProfile
3

Export the image profile.

Export-EsxImageProfile -ImageProfile "myprofile" -ExportToBundle -FilePath C:\my_bundle.zip

Use the ISO image in an ESXi installation or upload the ISO image into vSphere Update Manager to perform upgrades.

Use the ZIP file to upgrade an ESXi installation.

Import the ZIP file into vSphere Update Manager for use with patch baselines.

Download the ZIP file to an ESXi host or a datastore and run esxcli software vib commands to import the VIBs in the ZIP file.

See the vSphere Upgrade documentation.