Some servers are missing drivers when installing ESXis, such as finding me unable to find a hard disk or network card when installing Wave Server NF8460M3, and I need to add drivers to the ESXis installation package by myself.
Prepare Driven Packaging Tool
WMware now uses the driver packaging tool updated to PowerShell-based VMware.PowerCLI, while older versions used ESXiCustomizer which may have upstream defects in functionality such as EFI support.The following steps are detailed in https://docs.microsoft.com/en-us/powershell/gallery/installing-psget Specific instructions are provided.
Online Installation
1. Install PowerShellGet
List with this module:
- Windows 10 or newer
- Windows Server 2016 or newer
- Windows Management Framework (WMF) 5.0 or newer
- PowerShell 6
I use Windows 10 myself, so I don't need to reinstall it.
2. Get the latest version of PowerShell Gallery (PowerShell Library)
> Install-PackageProvider Nuget -Force > Exit
In addition, the updated command is
> Update-Module -Name PowerShellGet > Exit
3. Install VMware.PowerCLI
> Install-Module -Name VMware.PowerCLI
At the PowerShell prompt, check to see if there is a corresponding module:
> Find-Module -Name VMware.PowerCLI
Offline Installation
1. Prepare VMware.PowerCLI
Method 1: Download the appropriate module to the C:\PowerCLI directory (user specified directory name)
> Save-Module -Name VMware.PowerCLI -Path C:\PowerCLI
Method 2: Download directly from the official website at https://code.vmware.com/tool/vmware-powercli
2. Copy files to module directory
Execute the following command to view the PowerShell directory
> $ENV:PSModulePath
Copy the downloaded file to the directory of the results of the above command.
Restart and check at the PowerShell prompt for modules:
> Find-Module -Name VMware.PowerCLI
Packaging driver
The driver and offline bundle VMware vSphere Hypervisor (ESXi) Offline Bundle need to be prepared before packaging the driver.Below are my own drivers and the ESXis offline bundles, which are described here.
VMware vSphere Hypervisor (ESXi) Offline Bundle:
update-from-esxi6.7-6.7_update02.zip
Driver is:
VMW-ESX-6.7.0-lsi_mr3-7.705.09.00-offline_bundle-8586101.zip
Start PowerShell and check
Administrator starts Windows PowerShell to execute
> Get-ExecutionPolicy
Check to see if "RemoteSigned" is executed
> Set-ExecutionPolicy RemoteSigned
Add offline bundles and drivers
Use the Add-ESXSoftwareDepot commandlet to add both the ESXi offline bundles and drivers as libraries.
> Add-EsxSoftwareDepot D:\VMW-ESX-6.7.0-lsi_mr3-7.705.09.00-offline_bundle-8586101.zip D:\update-from-esxi6.7-6.7_update02.zip
Verify that asynchronous drivers are now available as packages
> Get-EsxSoftwarePackage
Where "" is an added third-party driver
List available image profiles
> Get-EsxImageProfile
Add Asynchronous Driver to New Image Profile
> New-EsxImageProfile -CloneProfile ESXi-6.7.0-20181002001-standard -name VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64-Inspur_Customized-A000 -Vendor Inspur
Modify permissions for new build profiles
Set-EsxImageProfile -Name VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64-Inspur_Customized-A000 -AcceptanceLevel CommunitySupported
In the ImageProfile prompt, type: VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64-Inspur_Customized-A000
Add Asynchronous Driver to New Image Profile
Add-EsxSoftwarePackage -ImageProfile VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64-Inspur_Customized-A000 -SoftwarePackage lsi_mr3
Export image configuration file to ISO file
Export-EsxImageProfile -ImageProfile VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64-Inspur_Customized-A000 -ExportToISO -filepath E:\VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64-Inspur_Customized-A000.iso