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 ESXi500-201206001.zip and EMCPower.VMWARE.5.7.P01.b002.zip folders already downloaded and stored in your current working directory.

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

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

# Add powerpath VE to the image
Add-EsxSoftwareDepot -DepotUrl EMCPower.VMWARE.5.7.P01.b002.zip
“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_$buildName.zip” -ExportToBundle
[/cc]

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.