This procedure assumes that you are using the working directory \images\New for the user named admin.
PowerCLI C:\images\New PowerCLI> Connect-VIServer 192.168.11.12
This example shows connecting to a vCenter server with the IP address 192.168.11.12, but you can also connect by using a fully qualified domain name.
This example adds the VMware distribution bundle (.zip file) and host drivers to a template.
This documentation uses VMware-ESXi-6.0.0 build-2494585-depot.zip and xsigo_6.0.0-ESX1 drivers for illustrative purposes. Follow the same procedure for other versions.
PowerCLI C:\images\New PowerCLI> Add-EsxSoftwareDepot -DepotUrl C:\Users\Administrator \Downloads\VMware-ESXi-6.0.0-2494585-depot.zip PowerCLI C:\images\New PowerCLI> Add-EsxSoftwareDepot -DepotUrl C:\Users\Administrator \Desktop\ESX6.0Drivers\xsigo_6.0.0-ESX.1-1vmw.600.0.0-2494585.zip
This example imports the VMware distribution bundle (VMware-ESXi-6.0.0-2494585- depot.zip) and host drivers (xsigo_6.0.0- ESX.1-1vmw.600.0.0-2494585.zip) to a template.
When you upload the ESXi software depot, it creates VMware standard profiles by default. The profiles can be either cloned or created to make a Custom-ESXi ISO. This procedure uses the cloned-profile installation procedure.
PowerCLI C:\images\New PowerCLI > Get-EsxImageProfile Name Vendor Last Modified Acceptance Level ---- ------ ------------- ---------------- ESXi-6.0.0-2494585-standard VMware, Inc. 2/6/20156:... PartnerSupported ESXi-6.0.0-2494585-no-tools VMware, Inc. 2/6/20156:... PartnerSupported
As shown in this example, two ESXi image profiles are available by default. To make the remastered ISO, you will clone the ESXi-6.0.0-2494585-standard profile.
PowerCLI C:\images\New PowerCLI> New-EsxImageProfile -CloneProfile ESXi-6.0.0-2494585- standard -Name "Custom-ESX-6.0.0" -Vendor VMware
In this example, a new ESXi image profile named ESX-6.0.0 is created by cloning the default ESXi image profile.
PowerCLI C:\images\New PowerCLI > Get-EsxImageProfile Name Vendor Last Modified Acceptance Level ---- ------ Custom-ESX-6.0.0 VMware 2/6/20156:... PartnerSupported ESXi-6.0.0-2494585-standard VMware, Inc. 2/6/20156:... PartnerSupported ESXi-6.0.0-2494585-no-tools VMware, Inc. 2/6/20156:... PartnerSupported
When the custom image profile is present, you can add and remove necessary packages to make a custom ISO.
PowerCLI C:\images\New PowerCLI> Remove-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 -SoftwarePackage net-mlx4-en PowerCLI C:\images\New PowerCLI> Remove-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 -SoftwarePackage net-mlx4-core PowerCLI C:\images\New PowerCLI> Remove-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 -SoftwarePackage nmlx4-en PowerCLI C:\images\New PowerCLI> Remove-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 -SoftwarePackage nmlx4-core
PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-ib-core PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-mlx4-core PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-ib-mad PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-ib-sa PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-ib-ipoib PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-mlx4-ib PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-ib-cm PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-xscore PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-xsvnic PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage net-xve PowerCLI C:\images\New PowerCLI> Add-EsxSoftwarePackage -ImageProfile Custom-ESX-6.0.0 - SoftwarePackage scsi-xsvhba
PowerCLI C:\images\New PowerCLI> Export-EsxImageProfile -ImageProfile Custom-ESX-6.0.0 - FilePath C:\Users\Administrator\Desktop\ESX6.0Drivers\Custom-6.0-OVN.iso –ExportToIso
This step is required if your deployments use a bundle for installation.
PowerCLI C:\images\New PowerCLI> Export-EsxImageProfile -ImageProfile Custom-ESX-6.0.0 -FilePath C:\Users\Administrator\Desktop\ESX6.0Drivers\Custom-ESX-6.0.0-OVN.zip – ExportToBundle