VMware vSphere 5.X Using Image Builder For Custom Installation

Image Builder allows VMware Admins to customize their installation media by adding and removing components. These components, called VMware Infrastructure Bundles (VIBs),

VMware vSphere PowerCLI 5.x requires the Set-ExecutionPolicy RemoteSigned setting.
Afterwards, the VMware vSphere PowerCLI 5.x can be used.

VMware recommends setting the PowerShell execution policy to RemoteSigned after the installation of PowerCLI.
To do this, right-click the VMware vSphere PowerCLI icon after installation and select Run As Administrator.

run as administrator

After that, set the execution policy using the following command:

Set-ExecutionPolicy RemoteSigned

You can now run VMware vSphere ESXi Image Builder.
vSphere ESXi Image Builder

The example will show how you update an Adaptec driver for an existing ESXi 5.0 (Build 799733) image and add an INTEL CIM provider.
Custom ESXi

Note: Download the ESXi 5.1 offline bundle (zip file) as the initial image. The ISO cannot be used at the initial image.
Add-EsxSoftwareDepot

First, add the initial image as the software depot:

PowerCLI C:\> Add-EsxSoftwareDepot  'C:\Custom ESXi\VMware-ESXi-5.1.0-799733-depot.zip'

Depot Url
---------
zip:C:\Custom ESXi\VMware-ESXi-5.1.0-799733-depot.zip?index.xml

Get-EsxImageProfile

The Get-EsxImageProfile command will now display the existing image profiles:

PowerCLI C:\> Get-EsxImageProfile

Name                           Vendor          Last Modified   Acceptance Level
----                           ------          -------------   ----------------
ESXi-5.1.0-799733-no-tools     VMware, Inc.    8/2/2012 3:0... PartnerSupported
ESXi-5.1.0-799733-standard     VMware, Inc.    8/2/2012 3:0... PartnerSupported

Add-EsxSoftwareDepot (Updated Driver, New CIM Provider)

You can add files to the offline bundle.

intel nic

VMware ESXi 5.x Driver for Intel I210, I350 and 82580 Gigabit Ethernet Controller – My VMware -> Product & Downloads -> All Downloads -> VMware vSphere -> VMware ESXi 5.x Driver for Int…

Unpack the respective ZIP files in order to open the *offline_bundle*.zip files.

Afterwards, the bundles may simply be added:

PowerCLI C:\ Add-EsxSoftwareDepot  'C:\Custom ESXi\igb-4.0.17-offline_bundle-890403.zip'

Depot Url
---------
zip:C:\Custom ESXi\igb-4.0.17-offline_bundle-890403.zip?index.xml

New-EsxImageProfile

PowerCLI C:\> New-EsxImageProfile -CloneProfile ESXi-5.1.0-799733-standard -Name "ESXi-5.1.0-799733-Network-Addons"

cmdlet New-EsxImageProfile at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Vendor: INTEL

Name                           Vendor          Last Modified   Acceptance Level
----                           ------          -------------   ----------------
ESXi-5.1.0-799733-Network-A... INTEL           8/2/2012 3:0... PartnerSupported

Get-EsxSoftwarePackage

PowerCLI C:\> Get-EsxSoftwarePackage

Name                     Version                        Vendor     Creation Date
----                     -------                        ------     -------------
scsi-bnx2i               1.9.1d.v50.1-5vmw.510.0.0.7... VMware     8/2/2012 3:00...
net-igb                  4.0.17-1OEM.500.0.0.472560     Intel      9/28/2012 3:4...
sata-sata-promise        2.12-3vmw.510.0.0.799733       VMware     8/2/2012 3:00...
net-forcedeth            0.61-2vmw.510.0.0.799733       VMware     8/2/2012 3:00...
esx-xserver              5.1.0-0.0.799733               VMware     8/2/2012 3:01...
misc-cnic-register       1.1-1vmw.510.0.0.799733        VMware     8/2/2012 3:00...
net-tg3                  3.110h.v50.4-4vmw.510.0.0.7... VMware     8/2/2012 3:00...
scsi-megaraid-sas        5.34-4vmw.510.0.0.799733       VMware     8/2/2012 3:00...
esx-xlibs                5.1.0-0.0.799733               VMware     8/2/2012 3:01...
scsi-megaraid-mbox       2.20.5.1-6vmw.510.0.0.799733   VMware     8/2/2012 3:00...
scsi-ips                 7.12.05-4vmw.510.0.0.799733    VMware     8/2/2012 3:00...
net-e1000e               1.1.2-3vmw.510.0.0.799733      VMware     8/2/2012 3:00...
sata-ahci                3.0-13vmw.510.0.0.799733       VMware     8/2/2012 3:00...
sata-sata-svw            2.3-3vmw.510.0.0.799733        VMware     8/2/2012 3:00...
net-cnic                 1.10.2j.v50.7-3vmw.510.0.0.... VMware     8/2/2012 3:00...
net-e1000                8.0.3.1-2vmw.510.0.0.799733    VMware     8/2/2012 3:00...
ata-pata-serverworks     0.4.3-3vmw.510.0.0.799733      VMware     8/2/2012 3:00...
scsi-mptspi              4.23.01.00-6vmw.510.0.0.799733 VMware     8/2/2012 3:00...
ata-pata-hpt3x2n         0.3.4-3vmw.510.0.0.799733      VMware     8/2/2012 3:00...
net-s2io                 2.1.4.13427-3vmw.510.0.0.79... VMware     8/2/2012 3:00...
esx-base                 5.1.0-0.0.799733               VMware     8/2/2012 3:01...
net-vmxnet3              1.1.3.0-3vmw.510.0.0.799733    VMware     8/2/2012 3:00...
net-bnx2                 2.0.15g.v50.11-7vmw.510.0.0... VMware     8/2/2012 3:00...
scsi-aic79xx             3.1-5vmw.510.0.0.799733        VMware     8/2/2012 3:00...
scsi-megaraid2           2.00.4-9vmw.510.0.0.799733     VMware     8/2/2012 3:00...
ata-pata-amd             0.3.10-3vmw.510.0.0.799733     VMware     8/2/2012 3:00...
esx-dvfilter-generic-... 5.1.0-0.0.799733               VMware     8/2/2012 3:01...
scsi-lpfc820             8.2.3.1-127vmw.510.0.0.799733  VMware     8/2/2012 3:00...
ata-pata-atiixp          0.4.6-4vmw.510.0.0.799733      VMware     8/2/2012 3:00...
esx-tboot                5.1.0-0.0.799733               VMware     8/2/2012 3:01...
ipmi-ipmi-devintf        39.1-4vmw.510.0.0.799733       VMware     8/2/2012 3:00...
scsi-qla2xxx             902.k1.1-9vmw.510.0.0.799733   VMware     8/2/2012 3:00...
net-r8169                6.011.00-2vmw.510.0.0.799733   VMware     8/2/2012 3:00...
sata-sata-sil            2.3-4vmw.510.0.0.799733        VMware     8/2/2012 3:00...
scsi-mpt2sas             10.00.00.00-5vmw.510.0.0.79... VMware     8/2/2012 3:00...
sata-ata-piix            2.12-6vmw.510.0.0.799733       VMware     8/2/2012 3:00...
scsi-hpsa                5.0.0-21vmw.510.0.0.799733     VMware     8/2/2012 3:00...
ata-pata-via             0.3.3-2vmw.510.0.0.799733      VMware     8/2/2012 3:00...
scsi-aacraid             1.1.5.1-9vmw.510.0.0.799733    VMware     8/2/2012 3:00...
scsi-rste                2.0.2.0088-1vmw.510.0.0.799733 VMware     8/2/2012 3:01...
ata-pata-cmd64x          0.2.5-3vmw.510.0.0.799733      VMware     8/2/2012 3:00...
scsi-mptsas              4.23.01.00-6vmw.510.0.0.799733 VMware     8/2/2012 3:00...
ohci-usb-ohci            1.0-3vmw.510.0.0.799733        VMware     8/2/2012 3:00...
net-igb                  2.1.11.1-3vmw.510.0.0.799733   VMware     8/2/2012 3:00...
scsi-qla4xxx             5.01.03.2-4vmw.510.0.0.799733  VMware     8/2/2012 3:00...
block-cciss              3.6.14-10vmw.510.0.0.799733    VMware     8/2/2012 3:00...
uhci-usb-uhci            1.0-3vmw.510.0.0.799733        VMware     8/2/2012 3:00...
tools-light              5.1.0-0.0.799733               VMware     8/2/2012 3:01...
net-sky2                 1.20-2vmw.510.0.0.799733       VMware     8/2/2012 3:00...
sata-sata-nv             3.5-4vmw.510.0.0.799733        VMware     8/2/2012 3:00...
sata-sata-sil24          1.1-1vmw.510.0.0.799733        VMware     8/2/2012 3:00...
net-ixgbe                3.7.13.6iov-10vmw.510.0.0.7... VMware     8/2/2012 3:00...
ipmi-ipmi-msghandler     39.1-4vmw.510.0.0.799733       VMware     8/2/2012 3:00...
scsi-adp94xx             1.0.8.12-6vmw.510.0.0.799733   VMware     8/2/2012 3:00...
scsi-fnic                1.5.0.3-1vmw.510.0.0.799733    VMware     8/2/2012 3:00...
ata-pata-pdc2027x        1.0-3vmw.510.0.0.799733        VMware     8/2/2012 3:00...
net-enic                 1.4.2.15a-1vmw.510.0.0.799733  VMware     8/2/2012 3:00...
net-be2net               4.1.255.11-1vmw.510.0.0.799733 VMware     8/2/2012 3:00...
net-nx-nic               4.0.558-3vmw.510.0.0.799733    VMware     8/2/2012 3:00...
ima-qla4xxx              2.01.31-1vmw.510.0.0.799733    VMware     8/2/2012 3:00...
net-bnx2x                1.61.15.v50.3-1vmw.510.0.0.... VMware     8/2/2012 3:00...
ehci-ehci-hcd            1.0-3vmw.510.0.0.799733        VMware     8/2/2012 3:00...
ipmi-ipmi-si-drv         39.1-4vmw.510.0.0.799733       VMware     8/2/2012 3:00...
net-r8168                8.013.00-3vmw.510.0.0.799733   VMware     8/2/2012 3:00...
ata-pata-sil680          0.4.8-3vmw.510.0.0.799733      VMware     8/2/2012 3:00...
misc-drivers             5.1.0-0.0.799733               VMware     8/2/2012 3:00...

Add-EsxSoftwarePackage

PowerCLI C:\> Add-EsxSoftwarePackage -ImageProfile ESXi-5.1.0-799733-Network-Addons -SoftwarePackage net-igb

Name                           Vendor          Last Modified   Acceptance Level
----                           ------          -------------   ----------------
ESXi-5.1.0-799733-Network-A... INTEL           2/5/2013 12:... PartnerSupported

Compare-EsxImageProfile

PowerCLI C:\> Compare-EsxImageProfile ESXi-5.1.0-799733-standard ESXi-5.1.0-799733-Network-Addons

Equal               : False
PackagesEqual       : False
RefAcceptanceLevel  : PartnerSupported
CompAcceptanceLevel : PartnerSupported
OnlyInRef           : {}
OnlyInComp          : {}
UpgradeFromRef      : {Intel_bootbank_net-igb_4.0.17-1OEM.500.0.0.472560}
DowngradeFromRef    : {}

Export-EsxImage-Profile

PowerCLI C:\ Export-EsxImageProfile -ImageProfile ESXi-5.1.0-799733-Network-Addons -FilePath C:\Custom ESXi\ESXi-5.1.0-799733-Network-Addons.iso -ExportToIso
PowerCLI C:\ dir 'C:\Custom ESXi\ESXi-5.1.0-799733-Network-Addons.iso'

Directory: C:\Custom ESXi

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
-a---          2/5/2013   1:10 PM  315207680 ESXi-5.1.0-799733-Network-Addons.iso

Leave a comment

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


*