Cloning a published profile is the easiest way to create a custom image profile. Cloning a profile is especially useful if you want to remove a few VIBs from a profile, or if you want to use hosts from different vendors and want to use the same basic profile, but want to add vendor-specific VIBs. VMware partners or large installations might consider creating a profile from scratch.

Before you begin

  • Install the VMware PowerCLI and all prerequisite software. See Image Builder Installation and Usage.

  • Verify that you have access to the software depot that contains the image profile you want to clone.

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

About this task

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

Procedure

  1. At the PowerShell prompt, add the depot that contains the profile you want to clone to the current session.

    Depot Type

    Cmdlet

    Remote depot

    Run Add-EsxSoftwareDepot -DepotUrl depot_url.

    ZIP file

    1. Download the ZIP file to a local file path.

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

    The cmdlet returns one or more SoftwareDepot objects.

  2. (Optional) : Run the Get-EsxImageProfile cmdlet to find the name of the profile that you want to clone.

    Get-ESXImageProfile

    You can use filtering options with Get-EsxImageProfile.

  3. Run the New-EsxImageProfile cmdlet to create the new profile and use the -CloneProfile parameter to specify the profile you want to clone.

    New-EsxImageProfile -CloneProfile My_Profile -Name "Test Profile 42"

    This example clones the profile named My-Profile and assigns it the name Test Profile 42. You must specify a unique combination of name and vendor for the cloned profile.

What to do next

See Examining Depot Contents for some examples of filtering.

Customize the image profile by adding or removing VIBs. See Add VIBs to an Image Profile.