VMware VS4-ENT-PL-A - vSphere Enterprise Plus Setup Manual page 245

Setup guide
Table of Contents

Advertisement

The system expects that the acceptance level of the VIBs you add to the base image is at least as high as the
level of the base image. Pass in the
profile if you have to add a VIB with a lower acceptance level.
As an alternative to specifying the parameters on the command line, you can use the PowerShell prompting
mechanism to specify string parameters. Prompting does not work for other parameters such as objects.
The following workflow illustrates creating image profiles from scratch.
1
At the PowerShell prompt, add the depot that contains the packages you want to use to the current
session.
For remote depots, run
For an offline depot ZIP file, you must download the ZIP file first.
a
Download the ZIP file to a local file path.
b
Run
Add-EsxSoftwareDepot -DepotUrl C:\file_path\offline-bundle.zip
2
List the available packages that you are interested in and bind them to a variable.
Get-EsxSoftwarePackage -CreatedAfter 7/1/2010
3
Create a new profile, assign it a name and vendor, and add a base package.
New-EsxImageProfile -NewProfile -Name "Test #2" -vendor "Vendor42" -SoftwarePackage esx-
base[0]
The example uses the esx-base package. In most cases, you include the esx-base package when you
create an image profile from scratch. Names that contain spaces are surrounded by quotes.
4
Pipe the information about the new image profile to
new package.
(Get-EsxImageProfile -Name "Test #2").VibList | format-list
Example: Creating Image Profiles from Scratch Using Variables
This command sequence repeats the steps of the workflow, but passes parameters as objects, accessed by
position in a variable, instead of passing parameters by name. You can run the following commands in
sequence from the PowerCLI prompt.
Add-EsxSoftwareDepot depoturl
$pkgs = Get-EsxSoftwarePackage -CreatedAfter 7/1/2010
$ip2 = New-EsxImageProfile -Name "Test #2" -vendor "Vendor42" -SoftwarePackage $pkgs[0]
$ip2 | format-list
Editing Image Profiles Workflow
You can create a custom image by cloning and editing an image profile. You can add or replace one or more
VIBs in the existing profile. If adding or replacing VIBs would make the image profile inconsistent, an error
results.
Before you use the cmdlets in this workflow, make sure your environment meets the following
requirements.
VMware PowerCLI and prerequisite is software installed. See
n
Prerequisite Software,"
You have access to a depot that includes a base image and one or more VIBs. VMware and VMware
n
partners make public depots, accessible by a URL, available. VMware or VMware partners can create a
ZIP file that you can download to your local environment and access by using a file path.
1
At the PowerShell prompt, add the depot that contains the image profile that you want to edit to the
current session.
VMware, Inc.
parameter to change the acceptance level of the image
-AcceptanceLevel
Add-EsxSoftwareDepot -DepotUrl depot_url
on page 233.
.
for detailed information about the
format-list
"Install Image Builder PowerCLI and
Chapter 7 Installing ESXi
245

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vsphere 5.5

Table of Contents