Dell OptiPlex台式机安装ESXI 6.7

东大网管 / 2023-05-10 / 原文

原文:

https://www.ngui.cc/el/988518.html?action=onClick

Dell 台式机安装ESXI 6.7

DELL商用台式机OptiPlex 3060安装vmware vsphere esxi 6.7遇到的问题及处理方法。

网卡驱动问题

使用vmware 官方ESXI ISO安装提示No network adapters were detected,详细信息如下:

No network adapters were detected. Either no network adapters are physically connected to the system, or a suitable driver could not be located. A third party driver may be required.
Ensure that there is at least one network adapter physically connected to the system before attempting installation. If the problem persists, consult the VMware Knowledge Base.

在这里插入图片描述
这是由于vmware 官方ESXI ISO缺少网卡驱动导致的,Dell官网发布有服务器定制版本的ESXI ISO,但是主要用于Dell ECM服务器,并不适用办公台式机,使用该镜像同样提示找不到网卡。

镜像地址:
https://www.dell.com/support/home/zh-cn/drivers/driversdetails?driverid=j75ny

所以需要基于vmware官方ESXI ISO手动导入网卡驱动包,导入流程如下:

1、下载网卡驱动包

首先要确定该机器网卡型号,这里在windows设备管理器看到Realtek PCIe GbE Family Controller信息,另一台centos机器在安装系统时可以查看到详细的网卡型号:
在这里插入图片描述
所以这里选择net55-r8168进行下载,进入下载页面,在最底部选择VIB File of version 8.045a进行下载。

https://vibsdepot.v-front.de/wiki/index.php

2、下载esxi-customizer-ps脚本

https://www.v-front.de/p/esxi-customizer-ps.html

https://github.com/VFrontDe/ESXi-Customizer-PS/blob/master/ESXi-Customizer-PS.ps1

3、下载vmware esxi patch,基于该patch包重新离线生成ESXI ISO:

https://my.vmware.com/group/vmware/patch#search

https://docs.vmware.com/en/VMware-vSphere/6.7/rn/esxi670-201906002.html

以下所有操作在windwos10的powershell中执行:

安装vmware-powercli

PS C:\Users\zwpos\Desktop\define-iso> Install-Module -Name VMware.PowerCLI

ESXi-Customizer-PS.ps1脚本命令帮助

PS C:\Users\zwpos\Desktop\define-iso> .\ESXi-Customizer-PS.ps1 -helpThis is ESXi-Customizer-PS Version 2.8.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)Usage:ESXi-Customizer-PS [-help] |  [-izip <bundle> [-update]] [-sip] [-v70|-v67|-v65|-v60|-v55|-v51|-v50][-ozip] [-pkgDir <dir>] [-outDir <dir>] [-vft] [-dpt depot1[,...]][-load vib1[,...]] [-remove vib1[,...]] [-log <file>] [-ipname <name>][-ipdesc <desc>] [-ipvendor <vendor>] [-nsc] [-test]Optional parameters:-help              : display this help-izip <bundle>     : use the VMware Offline bundle <bundle> as input instead of the Online depot-update            : only with -izip, updates a local bundle with an ESXi patch from the VMware Online depot,combine this with the matching ESXi version selection switch-pzip              : use an Offline patch bundle instead of the Online depot with -update.-pkgDir <dir>      : local directory of Offline bundles and/or VIB files to add (if any, no default)-ozip              : output an Offline bundle instead of an installation ISO-outDir <dir>      : directory to store the customized ISO or Offline bundle (the default is thescript directory. If specified the log file will also be moved here.)-vft               : connect the V-Front Online depot-dpt depot1[,...]  : connect additional Online depots by URL or local Offline bundles by file name-load vib1[,...]   : load additional packages from connected depots or Offline bundles-remove vib1[,...] : remove named VIB packages from the custom Imageprofile-sip               : select an Imageprofile from the current list(default = auto-select latest available standard profile)-v70 |-v67 | -v65 | -v60 |-v55 | -v51 | -v50 : Use only ESXi 7.0/6.7/6.5/6.0/5.5/5.1/5.0 Imageprofiles as input, ignore other versions-nsc               : use -NoSignatureCheck with export-log <file>        : Use custom log file <file>-ipname <name>-ipdesc <desc>-ipvendor <vendor> : provide a name, description and/or vendor for the customizedImageprofile (the default is derived from the cloned input Imageprofile)-test              : skip package download and image build (for testing)PS C:\Users\zwpos\Desktop\define-iso>

确认已经准备好以下文件放在同一个目录下即可,vib目录下是网卡驱动文件:

$ ls
ESXi-Customizer-PS.ps1  update-from-esxi6.7-6.7_update03.zip  vib/$ ls vib/
net55-r8168-8.045a-napi.x86_64.vib

执行以下命令导入驱动文件并生成新的esxi iso

.\ESXi-Customizer-PS.ps1 -izip .\update-from-esxi6.7-6.7_update03.zip -pkgDir .\vib

执行过程:

PS C:\Users\zwpos\Desktop\define-iso> .\ESXi-Customizer-PS.ps1 -izip .\update-from-esxi6.7-6.7_update03.zip -pkgDir .\vibThis is ESXi-Customizer-PS Version 2.8.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
(Call with -help for instructions)Logging to C:\Users\zwpos\AppData\Local\Temp\ESXi-Customizer-PS-18680.log ...
警告: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a better product. You can join using thefollowing command:Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $trueVMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to improve its products and services, to fixproblems, and to advise you on how best to deploy and use our products.  As part of the CEIP, VMware collects technical information about your
organization抯 use of VMware products and services on a regular basis in association with your organization抯 VMware license key(s).  This information doesnot personally identify any individual.For more details: type "help about_ceip" to see the related help article.To disable this warning and set your preference use the following command and restart PowerShell:
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false.Running with PowerShell version 5.1 and VMware PowerCLI version .. buildAdding base Offline bundle .\update-from-esxi6.7-6.7_update03.zip ... [OK]Getting Imageprofiles, please wait ... [OK]Using Imageprofile ESXi-6.7.0-20190802001-standard ...
(Dated 08/08/2019 09:57:28, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20190802001-standard)Loading Offline bundles and VIB files from .\vib ...Loading C:\Users\zwpos\Desktop\define-iso\vib\net55-r8168-8.045a-napi.x86_64.vib ... [OK]Add VIB net55-r8168 8.045a-napi [New AcceptanceLevel: CommunitySupported] [OK, added]Exporting the Imageprofile to 'C:\Users\zwpos\Desktop\define-iso\ESXi-6.7.0-20190802001-standard-customized.iso'. Please be patient ...All done.

查看生成的iso

$ ls
ESXi-6.7.0-20190802001-standard-customized.iso
ESXi-Customizer-PS.ps1
update-from-esxi6.7-6.7_update03.zip
vib/

BIOS UEFI启动项问题

使用加入网卡驱动的ISO安装时不再提示找不到网卡,但是出现另外一个问题:

Failed to Validate Acceptance Levels: Failed to Check Acceptance Levels: None

在这里插入图片描述
网上搜索反馈是大部分电脑默认启动项为UEFI,ESXI不支持这种启动方式,需要在bios中修改为 legacy mode,但是打开bios发现该机型legacy mode只支持使用sd card、usb、外部存储设备启动,所有未修改启动模式,只关闭了Secure Boot设置,以上问题解除。

固态磁盘无法识别问题

继续执行安装,遇到无法识别.m2 nvme固态硬盘问题,esxi 6.7 update3对驱动做了精简和改动,需要对nvme驱动降级处理。

需要去dell官网下载驱动程序包

https://www.dell.com/support/home/zh-cn/drivers/driversdetails?driverid=gv3pd

解压VMware-VMvisor-Installer-6.7.0-8169922.x86_64-DellEMC_Customized-A01.zip

从以下目录复制出nvme以及vmware-esx-esxcli-nvme-plugin两个目录下的vib文件,放到vib目录下

VMware-VMvisor-Installer-6.7.0-8169922.x86_64-DellEMC_Customized-A01\vib20

导入2个驱动及网卡驱动重新生成ISO

.\ESXi-Customizer-PS.ps1 -izip .\update-from-esxi6.7-6.7_update03.zip -pkgDir .\vib

执行过程

PS C:\Users\zwpos\Desktop\define-iso> .\ESXi-Customizer-PS.ps1 -izip .\update-from-esxi6.7-6.7_update03.zip -pkgDir .\downgrade-vibThis is ESXi-Customizer-PS Version 2.8.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
(Call with -help for instructions)Logging to C:\Users\zwpos\AppData\Local\Temp\ESXi-Customizer-PS-13152.log ...Running with PowerShell version 5.1 and VMware PowerCLI version .. buildAdding base Offline bundle .\update-from-esxi6.7-6.7_update03.zip ... [OK]Getting Imageprofiles, please wait ... [OK]Using Imageprofile ESXi-6.7.0-20190802001-standard ...
(Dated 08/08/2019 09:57:28, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20190802001-standard)Loading Offline bundles and VIB files from .\downgrade-vib ...Loading C:\Users\zwpos\Desktop\define-iso\downgrade-vib\net55-r8168-8.045a-napi.x86_64.vib ... [OK]Add VIB net55-r8168 8.045a-napi [New AcceptanceLevel: CommunitySupported] [OK, added]Loading C:\Users\zwpos\Desktop\define-iso\downgrade-vib\VMware_bootbank_vmware-esx-esxcli-nvme-plugin_1.2.0.32-0.0.8169922.vib ... [OK]Add VIB vmware-esx-esxcli-nvme-plugin 1.2.0.32-0.0.8169922 [OK, replaced 1.2.0.36-2.48.13006603]Loading C:\Users\zwpos\Desktop\define-iso\downgrade-vib\VMW_bootbank_nvme_1.2.1.34-1vmw.670.0.0.8169922.vib ... [OK]Add VIB nvme 1.2.1.34-1vmw.670.0.0.8169922 [OK, replaced 1.2.2.28-1vmw.670.3.73.14320388]Exporting the Imageprofile to 'C:\Users\zwpos\Desktop\define-iso\ESXi-6.7.0-20190802001-standard-customized.iso'. Please be patient ...All done.

然后使用该ISO继续安装即可识别磁盘。
在这里插入图片描述