首页 > 系统相关 >Adding Drivers into VMWare ESXi Installation Image

Adding Drivers into VMWare ESXi Installation Image

时间:2024-05-12 23:41:00浏览次数:28  
标签:Adding Installation ESXi image driver ISO Customizer drivers

The standard ESXi ISO image doesn’t support most desktop NIC adapters. To install ESXi on such a computer, you will need to inject the drivers for your network adapter into your ESXi installation image

Let’s see how to add the driver to the VMware ESXi 6.x and 7.0 installation ISO. In this example, we’ll show how to integrate the driver for the Realtek network adapter into an ESXi image.

VMware recommends using the official vSphere ESXi Image Builder to customize ESXi images. But it requires vCenter Server Appliance (vCSA). Instead, most system administrators use the third-party ESXi-Customizer tool.

[contents h2]

How to Download Drivers for VMWare ESXi?

First, you must find and download ESXi drivers for your hardware. They can be found:

Please note that you need the driver in one of the following formats: .vib, .tgz or .zip (offline bundle).

download ESXi vib driver net55-r8168 for Realtek network adapter

You can also find the drivers by device VID. Boot your computer using Linux LiveCD and see VID and PID of your device, by running this command:

# lspci -nn

 

 

Using these IDs, you can search .vib drivers on the Web.

Adding Drivers to ESXi ISO Image with ESXi-Customizer-PS

The ESXi-Customizer-PS PowerShell script (https://www.v-front.de/p/esxi-customizer-ps.html) can be used to integrate drivers and updates into the ESXi 5.x, 6.x, and 7.0 installation images. To use this script, you must have VMware PowerCLI module installed on your computer.

Download the current version (2.8.2) of the ESXi-Customizer-PS.ps1 file from GitHub (https://github.com/VFrontDe/ESXi-Customizer-PS/releases), unblock the PS1 file downloaded from the Internet (by checking Unblock in its properties), and open the PowerShell console:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

You can display help on the script parameters as follows:

.\ESXi-Customizer-PS.ps1 –help

esxi-customizer powershell script

 

 

When running the script, an error may appear:

 

An unexpected error occured:The VMware.ImageBuilder module is not currently supported on the Core edition of PowerShell.

This means that you are trying to run a PS1 script from a new version of PowerShell Core (pwsh.exe), which is not supported by the ESXi-Customizer-PS. Use the Windows PowerShell console instead (powershell.exe).

List available ESXi images:

.\ESXi-Customizer-PS.ps1 –sip

list available esxi images with powershell

To download the latest ESXi 6.7 ISO image with updates from the VMware Online Depot website, run this command:

.\ESXi-Customizer-PS.ps1 -v67

In the same way you can download other ESXi image versions ( -v70 | -v67 | -v65 | -v60 | -v55 | -v51 | -v50).

 

 

 

The script allows you to use one of three modes:

  • Create an ISO or Offline Bundle installation image directly from the VMware Online depot (default);
  • Create an ISO installation image from the local Offline Bundle file(-izip);
  • Update local ESXi Offline Bundle from VMware Online depot (-izip -update).

 

In order to generate an ESXi ISO and immediately inject all offline bundles and VIB driver packages from C:\distr\esxi\driver, use this command:

.\ESXi-Customizer-PS.ps1 -v67 -pkgDir C:\distr\esxi\driver

ESXi-Customizer-PS add vib drivers to the esxi image

The installation ESXi ISO image will appear in the target directory in 15-20 minutes.

If you want to download the Offline bundle image instead of the installation ISO image, use the option -ozip.

You can modify the offline bundle (this is a ZIP archive with ESXi installation files) by adding all VIB drivers from the specified directory to it:

.\ESXi-Customizer-PS.ps1 -izip .\VMware-ESXi-6.7.0-HPE-Gen9plus.zip -pkgDir C:\distr\esxi\driver

Using the following command, you can create an ESXi ISO from your offline bundle:

.\ESXi-Customizer-PS.ps1 -izip .\VMware-ESXi-6.7.0-HPE-Gen9plus.zip

The V-Front online repository has a rather large library of vib drivers. You can integrate specific drivers from this repository into an ESXi image like this:

.\ESXi-Customizer-PS.ps1 -v67 -vft -load sata-xahci,net55-r8168,net-e1000e,esx-ui

In this example, we’ll integrate the following drivers into the ESXi distribution:

  • net-e1000e – a network driver for Intel I21782579LM/82574L;
  • net51-r8169 – Realtek 8168/8111/8411/8118 NIC driver (it has been removed from ESXi 5.1 and newer);
  • esx-ui — ESXi Embedded Host Client, a convenient host web interface (used by default from esxi 5.5);
  • sata-xahci — map driver to correctly identify some SATA controllers.

As a rule, for most desktop devices it is enough to add the following drivers to the ESXi image:

-v60 -sip -vft -load net-e1000e,net51-r8169,net55-r8168,esx-ui,sata-xahci,net51-sky2,esxcli-shell

To update the Offline bundle with the latest patches from the VMware repository:

.\ESXi-Customizer-PS.ps1 -v67 -izip .\VMware-ESXi-6.7.0-HPE-Gen9plus.zip -update

If you receive: An unexpected error occured: Could not find trusted signer while exporting the image, disable driver signature verification with the -nsc (-noSignatureCheck) option. Also, try this option if an error occurs:

[WinError 10054] An existing connection was forcibly closed by the remote host.

Inject Custom Drivers to ESXi Image with ESXi-Customizer GUI

ESXi-Customizer (GUI) is a small graphical tool with a simple interface that allows you to automate the process of integrating drivers and .vib files into an ESXi ISO image.

The ESXi-Customizer has not been updated since 2016. The developer reports that only ESXi versions 4.1, 5.0, 5.1, and 5.5 are supported. However, below is a small trick that allows you to use the ESXi-Customize GUI even for new ESXi versions (6.5, 6.7, and 7.0).

Download ESXi-Customizer-v2.7.2.exe (https://www.v-front.de/p/esxi-customizer.html), extract the archive, and run the tool (ESXi-Customizer.cmd). ESXi-Customizer doesn’t officially support modern Windows versions, so when started in Windows 10 or 11, an error appears:

---------------------------
ESXi-Customizer v2.7.2 - Message
---------------------------
FATAL ERROR: Unsupported Windows Version: 10.0. At least Windows XP is required!

ESXi-Customizer FATAL ERROR: Unsupported Windows Version: 10.0

To fix it, edit the ESXi-Customizer.cmd file and comment out the following line (add REM in the beginning):

if "!WinVer!" LSS "5.1" call :earlyFatal Unsupported Windows Version: !WinVer!. At least Windows XP is required & exit /b 1

edit ESXi-Customizer.cmd in windows 10

Save ESXi-Customizer.cmd file and run it. In the next window, specify the path to the source ESXi ISO image, the driver file (VIB file or TGZ archive with drivers), and the folder, to which the resulting image with the integrated driver must be saved. Uncheck the automatic update option.

ESXi-Customizer GUI Tool

Click the Run button and n a few minutes a new ESXi ISO image will appear in the target directory. You can use this image to install ESXi on your hardware.

If you are trying to add drivers into an ISO image with ESXi 6.7 or 7.0, an error will appear:

FATAL ERROR:
Error un-taring IMGDB.tar!

esxi-customizer gui fatal error: imgdb.tar Error un-taring

In order to fix this fatal error, you need to manually modify the ESXi image:

  1. Extract your VMware ESXi installation ISO to a directory on disk;
  2. Install the 7zip archiver on your computer (you can quickly install apps on your computer using the winget package manager: winget install 7zip.7zip );
  3. Open the file IMGDB.TGZ with 7ZIP and rename the file inside to IMGDB.tar;imgdb.tgz rename file in esxi
  4. Now you need to build the ISO image. You can use the free IsoCreator (download IsoCreator.msi, open the file with 7ZIP, and run IsoCreator.exe);
  5. Specify the directory with the ESXi installation files and the name of the ISO file;build esxi iso image from folder
  6. Now you can use this custom ISO image in ESXi-Customizer GUI.inject drivers to esxi install image via gui

Now you can use your ISO image to deploy ESXi on your target host.

Use vCenter Image Builder to Add Drivers to ESXi Custom Image

In vCenter Server, you can use the built-in Image Builder to modify your ESXi installation images. This service is disabled by default. Enable it via vCenter -> Auto Deploy -> Enable Image Builder.

vmware vcenter: enable image builder

Now you need to create a new Software Depot and import your ISO image, vib (zip) driver files, and the necessary ESXi updates into it.

vcenter: import esxi image and drivers

Now clone your image. When cloning, you can choose which packages (drivers) to add to this ESXi depot.

add driver packages to esxi image builder

After that, click the Export button and download your ESXi installation ISO image with integrated third-party drivers.

 

标签:Adding,Installation,ESXi,image,driver,ISO,Customizer,drivers
From: https://www.cnblogs.com/bintrees/p/18188422

相关文章

  • esxi服务器进图形化界面配置
    1、先进入网络配置2、选择ip43、选择第三个设置静态网络同时记住ipv4地址:192.168.8.112然后确定4、 选仅主机模式5、6、在物理机直接访问刚才的ipv4地址登录 ......
  • esxi8部署朵拉云
    随着数字化办公的普及,云桌面作为一种高效、灵活的工作方式,受到了越来越多企业的青睐。利用ESXi虚拟化平台快速部署朵拉云桌面,不仅可以提高工作效率,还可以降低成本,提升管理和维护的便捷性。优势和特点:1.灵活的资源分配:朵拉云平台允许根据实际需求动态分配计算资源,从而灵活应对不......
  • VMware ESXi 8.0U2b macOS Unlocker HP (惠普) HPE (慧与) OEM 定制版自定义镜像
    VMwareESXi8.0U2bmacOSUnlockerHP(惠普)HPE(慧与)OEM定制版自定义镜像ESXi8.0U2标准版,Dell(戴尔)、HPE(慧与)、Lenovo(联想)、Inspur(浪潮)、Cisco(思科)、Hitachi(日立)、Fujitsu(富士通)、NEC(日电)OEM定制版请访问原文链接:VMwareESXi8.0U2bmacOSUn......
  • VMware ESXi 8.0U2b macOS Unlocker Dell (戴尔) OEM 定制版自定义镜像 A06
    VMwareESXi8.0U2bmacOSUnlockerDell(戴尔)OEM定制版自定义镜像A06ESXi8.0U2标准版,Dell(戴尔)、HPE(慧与)、Lenovo(联想)、Inspur(浪潮)、Cisco(思科)、Hitachi(日立)、Fujitsu(富士通)、NEC(日电)OEM定制版请访问原文链接:VMwareESXi8.0U2bmacOSUnlocke......
  • VMware ESXi 7.0U3p macOS Unlocker HP (惠普) HPE (慧与) OEM 定制版自定义镜像
    VMwareESXi7.0U3pmacOSUnlockerHP(惠普)HPE(慧与)OEM定制版自定义镜像ESXi7.0U3标准版,Dell(戴尔)、HPE(慧与)、Lenovo(联想)、Inspur(浪潮)、Cisco(思科)、Hitachi(日立)、Fujitsu(富士通)、NEC(日电)OEM定制版请访问原文链接:VMwareESXi7.0U3pmacOSUn......
  • VMware ESXi 7.0U3p macOS Unlocker Dell (戴尔) OEM 定制版自定义镜像 A20
    VMwareESXi7.0U3pmacOSUnlockerDell(戴尔)OEM定制版自定义镜像A20ESXi7.0U3标准版,Dell(戴尔)、HPE(慧与)、Lenovo(联想)、Inspur(浪潮)、Cisco(思科)、Hitachi(日立)、Fujitsu(富士通)、NEC(日电)OEM定制版请访问原文链接:VMwareESXi7.0U3pmacOSUnlocke......
  • Apache Shiro 721反序列化漏洞Padding Oracle Attack
    目录漏洞原理复现修复方式漏洞原理Shiro的RememberMeCookie使用的是AES-128-CBC模式加密。其中128表示密钥长度为128位,CBC代表CipherBlockChaining,这种AES算法模式的主要特点是将明文分成固定长度的块,然后利用前一个块的密文对当前块的明文进行加密处理。这种模式的加......
  • esxi内虚拟机开机卡死-解决方案
    查看正在运行的虚拟机esxclivmprocesslist获取所有注册的虚拟机vim-cmdvmsvc/getallvms重启,可以移除掉卡死的任务/etc/init.d/hostdrestart杀死虚拟机进程esxclivmprocesskill--type=[soft,hard,force]--world-id=WorldNumbersoft:执行正常关机,调用vmwaretools......
  • ESXI上安装和使用MegaCli
    一、下载安装包目前官网找不到安装包了,这里提供一个MegaCli-8.04.07:https://www.lanzoub.com/iUzBn1tyhdxi二、将安装包解压上传到esxi可以通过sftp或者其他工具上传到esxi中,不太建议在esxi上直接下载,我提供的是rar压缩包。这里我使用WinSCP工具上传到esxi中,下载地址:https://ww......
  • ESXi虚拟机的 %steal 时间 与 CPU 就绪的关系
    ESXi虚拟机的%steal时间与CPU就绪的关系概念解释%steal在top输出中,steal时间表示虚拟CPU等待真实CPU的时间。这通常发生在虚拟化环境中,当虚拟机尝试在其物理主机上运行CPU密集型任务时,可能会出现steal时间增加的情况。这表示虚拟机无法立即获得所需的CPU资源,需要等......