Dark Developments Where Knowledge Meets Power

15Aug/121

VMware- ESX Image Builder CLI

VMware- ESX Image Builder CLI

When installing ESX(i) on different vendor platforms you'll get confronted with warnings related to drivers. In my case it was a Dell R720 and during the installation of ESX I got the message "no network adapters found".
The only option is to build your own custum ESX image and inserting the correct NIC drivers.

1. Download the latest ESXi build from the patch page from VMware. my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere/5_0#product_downloads

2. Next download the approriate driver software from the driver depot. my.vmware.com/web/vmware/info/slug/datacenter_cloud_infrastructure/vmware_vsphere/5_0#drivers_tools
Note: In my case I needed the net-tg3 drivers.

3. Extract all the files so that you can access them with vCLI. You can download vSphere CLI from my.vmware.com/web/vmware/details/vcli41/ZHcqYmRoaCpiZHRAag== .

4. Next, start your PowerCLI session and import the software depots using the “Add-EsxSoftwareDepot” cmdlet.  Import all the software depots you have downloaded.

Select All Code:
1
2
Add-EsxSoftwareDepot C:\vmware\ESXi-5.0.0-20120604001-standard.zip
Add-EsxSoftwareDepot -DepotURL "C:\vmware\net-tg3.zip"

5. After the software depots have been imported the next step is to create an image profile using the “New-EsxImageProfile” cmdlet. There are two ways to create a new image profile, you can create an empty image profile and manually specify the VIBs you want to add, or you can clone an existing image profile and use that as your starting point.

Select All Code:
1
New-EsxImageProfile -CloneProfile "ESXi-5.0.0-20120604001-standard" -Name "CustomISO" -AcceptanceLevel CommunitySupported

6. Next, you use the “Add-EsxSoftwarePackage” to add VIBs to your image profile.

Select All Code:
1
Add-ESXSoftwarePackage -ImageProfile CustomISO -SoftwarePackage net-tg3

7. After adding the VIBs you need the next step is to export the image profile. You can export the Image Profile as a software depot (.zip) or as an ISO file (.iso).

Select All Code:
1
2
3
Export-EsxImageProfile -ImageProfile CustomISO -ExportToIso -FilePath C:\vmware\CustomProfile.iso
 
Export-EsxImageProfile -ImageProfile CustomISO –ExportToBundle -FilePath C:\vmware\CustomProfile.zip

blogs.vmware.com/vsphere/2012/04/using-the-vsphere-esxi-image-builder-cli.html

communities.vmware.com/message/2069580

Print Friendly
Comments (1) Trackbacks (0)
  1. When some one searches for his necessary thing, so he/she wants to be available that in detail, so that thing is maintained over here.


Leave a comment

No trackbacks yet.