原有的ESXI升级(6.0-6.0update02)
1.首先将主机置于维护模式,将数据迁移到其他主机。
2.升级esxi主机方式比较灵活,可以通过载入官方镜像文件进行升级,但由于可能对VIB进行检查,所以建议大家使用命令进行升级。首先将升级程序升级包,比如update-from-esxi6.0-6.0_update02.zip上传至esxi主机的本地磁盘
3.将esxi主机的ssh和shell功能打开
4.通过ssh连接工具,连接至esxi主机,输入如下命令进行升级。
[root@vmHost:~] esxcli software vib install -d /vmfs/volumes/systems/update-from-esxi6.0-6.0_update02.zip
5.升级完成后,通过vcenter重新启动esxi主机
给原有系统安装独立的vib驱动包(6.7.0update3)
1.到vmware,在vsphere下载栏目中的Driver CDs中找到硬件对应的驱动
或者https://vibsdepot.v-front.de/wiki/index.php/List_of_currently_available_ESXi_packages下载对应的驱动
realtek相关网卡驱动: https://vibsdepot.v-front.de/depot/bundles/net55-r8168-8.045a-napi-offline_bundle.zip
2.下载下来的是一个zip文件,解压之后,里面还有一个zip文件和一个vib文件,vib文件就是我们需要的驱动文件了
3.将这个VIB文件用CRT或其它SSH工具上传至esxi的/tmp目录;
4.使用esxcli命令安装驱动,例:esxcli software vib install -v /tmp/net55-r8168-8.045a-napi.x86_64.vib
如果出现: VIB Realtek_bootbank_net55-r8168_8.045a-napi’s acceptance level is community, which is not compliant with the ImageProfile acceptance level partner
To change the host acceptance level, use the ‘esxcli software acceptance set’ command.
Please refer to the log file for more details.
esxcli software acceptance set –level=CommunitySupported
5.安装完后重启esxi主机,设备就能正常识别了。
利用ESXi Offline Bundle制作包括缺失补丁包的安装包(6.7.0update3)
1.下载打包基本文件到d:\esxi\update-from-esxi6.7-6.7_update03.zip
可以通过vmware官方搜索ESXi Offline Bundle获取
1.下载所有的补丁包到d:\esxi\pkg\
驱动包,可以访问网站https://vibsdepot.v-front.de/
https://vibsdepot.v-front.de/depot/bundles/net55-r8168-8.045a-napi-offline_bundle.zip
2.安装VMware vSphere PowerCLI 6.5,并且以管理员身份运行
若要在本地计算机上运行您编写的未签名脚本和来自其他用户的签名脚本,请使用以下命令将计算机上的
执行策略更改为 Bypass:
set-executionpolicy bypass
3.获取基础包,如果1步骤已经取得,这里省略
.\ESXi-Customizer-PS-v2.6.0.ps1 -v67 -ozip -outDir .\iso
选项的简单说明
-v67:仅使用 ESXi 6.7 版本,忽略其它版本
ozip:输出一个离线 bundle 而不是安装用的 ISO
outDir:用于存储自定义 ISO 或离线 bundle 的目录(默认为脚本目录。如果指定,则日志文件也将在结束后移动到此处。)4.
4.利用拉回的基础包进行驱动增加并且输出ISO
.\ESXi-Customizer-PS-v2.6.0.ps1 -iZip .\update-from-esxi6.7-6.7_update03.zip -pkgDir D:\esxi\pkg -outDir .\iso
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)
Temporarily logging to C:\Users\zeno\AppData\Local\Temp\ESXi-Customizer-PS-10788.log …
Running with PowerShell version 5.1 and VMware PowerCLI version 6.5.0.2604913
Adding 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 D:\esxi\pkg …
Loading D:\esxi\pkg\net55-r8168-8.045a-napi-offline_bundle.zip … [OK]
Add VIB net55-r8168 8.045a-napi [New AcceptanceLevel: CommunitySupported] [OK, added]
Exporting the Imageprofile to ‘.\iso\ESXi-6.7.0-20190802001-standard-customized.iso’. Please be patient …
All done.
(Log file moved to .\iso\ESXi-6.7.0-20190802001-standard-customized-202011071602.log)