Using vSphere Image Builder and Powerpath/VE

I typically use vSphere Image Builder to create custom ISO images that contain EMC PowerPath VE. The problem is, I need to add three packages in the correct order — and I never can remember the correct order. A few tries and I usually have what I need. I thought it would be worthwhile to write these down, so at the very least I could find the correct order in the future.

The code below assumes you have the and folders already downloaded and stored in your current working directory.

[cc lang=”Powershell”]
$buildName = “VM50-721882_ppve57p1”

Add-EsxSoftwareDepot –DepotUrl
$standard = Get-EsxImageProfile | ?{$_.Name -match ‘standard’}
$newProfile = New-EsxImageProfile -CloneProfile $ -Name $buildName

# Add powerpath VE to the image
Add-EsxSoftwareDepot -DepotUrl
“powerpath.lib.esx”,”powerpath.cim.esx”,”powerpath.plugin.esx” | %{ Add-EsxSoftwarePackage -ImageProfile $newProfile -SoftwarePackage $_ }

# Export Image in ISO and ZIP format
Export-EsxImageProfile –ImageProfile $newProfile -FilePath “$buildName.iso” -ExportToIso
Export-EsxImageProfile –ImageProfile $newProfile -FilePath “Bundle_$” -ExportToBundle

This entry was posted in Scripting, Virtualization. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Notify me of followup comments via e-mail. You can also subscribe without commenting.