6.7

Table Of Contents
4 View all available image profiles.
Get-EsxImageProfile
5 To clone an image profile, enter its name, a new name for the new profile, and a name of the vendor.
$ip = New-EsxImageProfile -CloneProfile base-tbd-v1 -Name "Test Profile 42" -Vendor "Vendor20"
6 (Optional) View the newly created image profile, $ip.
PowerShell returns the information about the image profile in tabular format.
Name Vendor Last Modified Acceptance Level
---- ------ ------------- ----------------
Test Profile 42 Vendor20 9/15/2010 5:45:43... PartnerSupported
Example: Creating Image Profile by Cloning Using Variables
This workflow example repeats the steps of this workflow by passing in parameters as objects accessed
by position in a variable, instead of passing in parameters by name. You can run the following cmdlets in
sequence from the PowerCLI prompt.
$DefaultSoftwareDepots
Add-EsxSoftwareDepot -DepotUrl depot_url
$DefaultSoftwareDepots
$profs = Get-EsxImageProfile
$profs
$ip = New-EsxImageProfile -CloneProfile $profs[2] -Name "new_profile_name" -Vendor "my_vendor"
$ip
Create New Image Profiles Workflow
In most situations, you create an image profile by cloning an existing profile. Some VMware customers or
partners might need to create a new image profile. Pay careful attention to dependencies and acceptance
levels if you create an image profile from scratch.
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. If you have to add a VIB with a lower acceptance level to the image
profile, you must lower the image profile acceptance level. For more information, see Set the Image
Profile 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.
Prerequisites
n
PowerCLI and prerequisite software is installed. See Install vSphere ESXi Image Builder and
Prerequisite Software.
VMware ESXi Installation and Setup
VMware, Inc. 66