• 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
    │
    └─vib
            Realtek_bootbank_net-r8125_9.007.01-1.vib
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

    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\
    
    • 1
    • 2
    • 3

    下面是完整版的例子

    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 $true
    
    VMware'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 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 12.1.0.16997984
    
    Adding 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.
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58

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

    问题

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

  • 相关阅读:
    excel补充操作技能3
    Netty核心源码剖析(四)
    Pytorch获取特征图
    mybatis-plus下_databaseId的使用
    JavaFx-报错WindowsNativeRunloopThread
    Solidity vs. Vyper:不同的智能合约语言的优缺点
    SystemVerilog Assertions应用指南 第一章
    C 语言 math.h 库介绍
    JavaScript作用域的用法
    MVC、MVP、MVVM三种架构对比
  • 原文地址:https://blog.csdn.net/z_johnny/article/details/133421205