当前位置: 首页 > news >正文

VMware vSphere ESXI 6.7 U3封装RTL8125B网卡驱动

之前的教程VMware vSphere ESXI 6.7 U3最新版本封装网卡驱动补丁可参考,本文为此文章的又一次实践

准备工作

1、ESXi-Customizer-PS-v2.6.0.ps1 (官网下载,Github下载)
2、ESXi670-202210001.zip (VMware vSphere Hypervisor (ESXi) Offline Bundle,官网的离线版本官网下载)
3、Realtek_bootbank_net-r8125_9.007.01-1.vib(Github下载)
4、Win10 系统,PowerShell 可以正常使用

操作步骤

1、以管理员身份运行 Windows PowerShell,然后执行命令 Install-Module -Name VMware.PowerCLI,这个命令可能需要比较长时间,请耐心等待。中间出现确认提示的时候,输入 A 即可(或者Y)。

2、第1步执行结束且未出现错误后,执行命令Set-ExecutionPolicy Unrestricted修改 PowerShell 默认的执行策略(确认提示时,输入 A 或者 Y 后回车确认),否则 ESXi-Customizer-PS-v2.6.0.ps1 可能无法运行。

3、参照下面目录树放置文件,esxi是根目录,vib是驱动目录

esxi
│  ESXi-Customizer-PS-v2.6.0.ps1
│  ESXi670-202210001.zip
│
└─vibRealtek_bootbank_net-r8125_9.007.01-1.vib

4、执行命令封装驱动

# 先 cd 进入根目录,然后执行命令生成 iso 文件
PS C:\Windows\system32> cd C:\Users\hongwei\Desktop\esxi
PS C:\Users\hongwei\Desktop\esxi> .\ESXi-Customizer-PS-v2.6.0.ps1 .\ESXi670-202210001.zip -pkgDir .\vib\

下面是完整版的例子

PS C:\Windows\system32> cd C:\Users\hongwei\Desktop\esxi
PS C:\Users\hongwei\Desktop\esxi> Install-Module -Name VMware.PowerCLI不受信任的存储库
你正在从不受信任的存储库安装模块。如果你信任该存储库,请通过运行 Set-PSRepository cmdlet 更改其 InstallationPolicy
值。是否确实要从“PSGallery”安装模块?
[Y](Y)  [A] 全是(A)  [N](N)  [L] 全否(L)  [S] 暂停(S)  [?] 帮助 (默认值为“N”): Y
警告: 已在“C:\Program
Files\WindowsPowerShell\Modules\VMware.PowerCLI\12.1.0.17009493”上安装“12.1.0.17009493”版本的模块“VMware.PowerCLI”
。若要安装版本“13.1.0.21624340”,请运行 Install-Module 并添加 -Force
参数。此命令将同时安装版本“12.1.0.17009493”和版本“13.1.0.21624340”。
PS C:\Users\hongwei\Desktop\esxi> Set-ExecutionPolicy Unrestricted执行策略更改
执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险,如 https:/go.microsoft.com/fwlink/?LinkID=135170
中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
[Y](Y)  [A] 全是(A)  [N](N)  [L] 全否(L)  [S] 暂停(S)  [?] 帮助 (默认值为“N”): Y
PS C:\Users\hongwei\Desktop\esxi> .\ESXi-Customizer-PS-v2.6.0.ps1 .\ESXi670-202210001.zip -pkgDir .\vib\This is ESXi-Customizer-PS Version 2.6.0 (visit https://ESXi-Customizer-PS.v-front.de for more information!)
(Call with -help for instructions)Logging to C:\Users\hongwei\AppData\Local\Temp\ESXi-Customizer-PS-24088.log ...
警告: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a
better product. You can join using the following 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 fix problems, 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 does not personallyidentify 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 12.1.0.16997984Adding base Offline bundle .\ESXi670-202210001.zip ... [OK]Getting Imageprofiles, please wait ... [OK]Using Imageprofile ESXi-6.7.0-20221004001-standard ...
(dated 09/21/2022 13:36:44, AcceptanceLevel: PartnerSupported,
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20221004001-standard)Loading Offline bundles and VIB files from .\vib\ ...Loading C:\Users\hongwei\Desktop\esxi\vib\Realtek_bootbank_net-r8125_9.007.01-1.vib ... [OK]Add VIB net-r8125 9.007.01-1 [New AcceptanceLevel: CommunitySupported] [OK, added]Exporting the Imageprofile to 'C:\Users\hongwei\Desktop\esxi\ESXi-6.7.0-20221004001-standard-customized.iso'. Please be patient ...All done.

5、如果一切正常,结尾是 All done 表示成功,会成功在配置的目录中生成一个文件 ESXi-6.7.0-20221004001-standard-customized.iso

问题

1、如果需要python环境请参考这里,安装python和指定包
2、示例中使用的是VMware.PowerCLI是老版本,不影响操作

http://www.lryc.cn/news/179908.html

相关文章:

  • 黑马JVM总结(二十五)
  • 基础数据结构之——【顺序表】(上)
  • Apollo自动驾驶系统概述(文末参与活动赠送百度周边)
  • Java 21 新特性:Unnamed Classes and Instance Main Methods
  • Tomcat启动后的日志输出为乱码
  • CSP-J第二轮试题-2021年-4题
  • 10.1 今日任务:select实现服务器并发
  • P1540 [NOIP2010 提高组] 机器翻译(模拟)
  • 生信教程:ABBA-BABA分析之滑动窗口
  • 二分答案(求最大值的最小值||求最小值的最大值)
  • 思维模型 周期
  • 从 0 到 1 ,手把手教你编写《消息队列》项目(Java实现) —— 介绍项目/ 需求分析
  • Python学习之索引与切片
  • 编程每日一练(多语言实现)基础篇:满足abcd=(ab+cd)^2的数 (增加Go语言实现)
  • LeetCode 热题 HOT 100:回溯专题
  • 喝健康白酒 有益生心健康
  • 动态规划:两个数组的dp问题(C++)
  • BASH shell脚本篇2——条件命令
  • 【图论C++】Floyd算法(多源最短路径长 及 完整路径)
  • 小谈设计模式(11)—模板方法模式
  • C#程序中很多ntdll.dll、clr.dll的线程
  • 低代码工作流程管理系统:提升企业运营效率的利器
  • HIVE SQL regexp_extract和regexp_replace配合使用正则提取多个符合条件的值
  • debian 安装matlab2022b报错解决方法与问题解决思路
  • Jenkins集成AppScan实现
  • 10.1 File类
  • [论文笔记]UNILM
  • LLM之Colossal-LLaMA-2:Colossal-LLaMA-2的简介、安装、使用方法之详细攻略
  • 国庆作业2
  • fork仓库的代码如何同步主仓库代码