Start a Conversation

Unsolved

This post is more than 5 years old

A

5 Practitioner

 • 

274.2K Posts

4929

August 31st, 2011 06:00

Using PowerCli to add PowerPath/VE 5.7 to vSphere Auto Deploy images

Now that PowerPath/VE 5.7 for ESXi 5.0 supports vSphere's Auto Deploy feature, users need to install PowerPath in an ESXi 5.0 image for deployment.

The PowerCli command Add-EsxSoftwarePackage can be used. The following example shows the steps to add PowerPath VIBs to an image…

Run Add-EsxSoftwareDepot to attach the software depot that contains the image profile to the PowerCLI session.

Add-EsxSoftwareDepot C:\file_path\VMware-ESXi-5.0.0-469512-depot.zip

Bind the image profile you want to use

$img = Get-EsxImageProfile

You can display the varous image profiles using

$img[4]

Clone the base ESXi image

$newimg=New-EsxImageProfile -CloneProfile $img[1] -Name "PPProfile1"               

Include PowerPath offline bundle in the image profile

Add-EsxSoftwareDepot c:\vmware\powerpath\EMCPower.VMWARE.5.7.b173.zip

$pkg = Get-EsxSoftwarePackage -Vendor "EMC*"

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage "powerpath.lib.esx"

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage "powerpath.cim.esx"

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage "powerpath.plugin.esx"

Alternately

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage $pkg[0]

Hope this helps. We can find these steps in VMware's image builder guide.

5 Practitioner

 • 

274.2K Posts

November 22nd, 2011 06:00

great post! just helped me a lot!

5 Practitioner

 • 

274.2K Posts

November 28th, 2011 14:00

Note when adding the packages, you must add them in the following order: lib, cim & plugin.

If using the array notation, this equates to:

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage $pkg[1]

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage $pkg[0]

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage $pkg[2]

Brian

5 Practitioner

 • 

274.2K Posts

November 29th, 2011 07:00

I added them using something like:

Add-esxsoftwarepackage –depoturl pp5.7.zip

$vib = get-esxsoftwarepackage

Add-esxsoftwarepackage –depoturl D:\images\VMware-ESXi-5.0.0-469512-depot.zip

Add-EsxSoftwarePackage -ImageProfile $newimg -SoftwarePackage $vib

Then I export the new image as a zip file, exit the current power cli session, and add the custom image as a depot. No errors are thrown and the new image contains the three vibs (lib, cim, and plugin)needed for powerpath.

Brian, can you explain the issue you had when not adding the vibs individually and in order as you described in your previous post. Thanks for your help!

No Events found!

Top