- VMware vSphere 6.5 Cookbook(Third Edition)
- Abhilash GB Cedric Rajendran
- 217字
- 2025-02-18 00:43:34
There's more...
You can use the Image Builder CLI to achieve the same task. Before you begin, keep in mind that each vSphere PowerCLI session is like a temporary work desk and exiting a session will clear your work desk. So, it is necessary for you to import what you need to work on into the PowerCLI session. An offline bundle is imported into a PowerCLI session as a software depot to allow for the cloning of image profiles, or the use of VIBs included in the bundle, to create a custom depot, for instance.
The following procedure will walk you through the steps involved in importing an offline bundle into a VMware PowerCLI session:
- Launch a VMware PowerCLI session.
- Use the Add-SoftwareDepot command to import the required offline bundles. The command requires you to provide the path of the offline bundle.
- Run the GetEsxSoftwareDepot command to list all software depots imported into the PowerCLI session.
- Additionally, you could issue the $DefaultSoftwareDepots command to verify which of the added software depots is the default:

Unlike with the Image Builder GUI, the CLI method does not upload anything to the VCSA appliance storage. However, anything that you add to the PowerCLI session is temporary and is lost after you exit the session.