
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
-AcceptanceLevel
parameter to change the acceptance level of the image
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
Add-EsxSoftwareDepot -DepotUrl
depot_url
.
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
format-list
for detailed information about the
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.
n
VMware PowerCLI and prerequisite is software installed. See
“Install Image Builder PowerCLI and
Prerequisite Software,”
on page 233.
n
You have access to a depot that includes a base image and one or more VIBs. VMware and VMware
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.
Chapter 7 Installing ESXi
VMware, Inc.
245
Summary of Contents for VS4-ENT-PL-A - vSphere Enterprise Plus
Page 6: ...vSphere Installation and Setup 6 VMware Inc ...
Page 8: ...vSphere Installation and Setup 8 VMware Inc ...
Page 10: ...vSphere Installation and Setup 10 VMware Inc ...
Page 28: ...vSphere Installation and Setup 28 VMware Inc ...
Page 70: ...vSphere Installation and Setup 70 VMware Inc ...
Page 100: ...vSphere Installation and Setup 100 VMware Inc ...
Page 122: ...vSphere Installation and Setup 122 VMware Inc ...
Page 138: ...vSphere Installation and Setup 138 VMware Inc ...