一个80后
程序员的笔记

VMware ESXi 升级

1、上传更新包到服务器磁盘中,并查看磁盘地址例如:/vmfs/volumes/59841fa2-653ee9b7-e66f-d4ae52b7f5d8/

2、打开esxi服务器的ssh,并登陆:

3、查看当前版本:

[root@esxi-05:~] esxcli system version get
   Product: VMware ESXi
   Version: 6.7.0
   Build: Releasebuild-15160138
   Update: 3
   Patch: 89

4、进入维护模式:

[root@esxi-05:~]  vim-cmd /hostsvc/maintenance_mode_enter

5、查看配置文件名:

[root@esxi-05:~] esxcli software sources profile list -d /vmfs/volumes/59841fa2-653ee9b7-e66f-d4ae52b7f5d8/VMware-ESXi-7.0U2a-17867351-depot.zip
Name                           Vendor        Acceptance Level  Creation Time        Modification Time
-----------------------------  ------------  ----------------  -------------------  -------------------
ESXi-7.0U2a-17867351-standard  VMware, Inc.  PartnerSupported  2021-04-29T00:00:00  2021-04-29T00:00:00
ESXi-7.0U2a-17867351-no-tools  VMware, Inc.  PartnerSupported  2021-04-29T00:00:00  2021-04-09T05:56:10

6、升级

#这里可以先用--dry-run检查一下升级
#esxcli software profile update -d /vmfs/volumes/59841fa2-653ee9b7-e66f-d4ae52b7f5d8/VMware-ESXi-7.0U2a-17867351-depot.zip -p ESXi-7.0U2a-17867351-standard --dry-run
[root@esxi-05:~] esxcli software profile update -d /vmfs/volumes/59841fa2-653ee9b7-e66f-d4ae52b7f5d8/VMware-ESXi-7.0U2a-17867351-depot.zip -p ESXi-7.0U2a-17867351-standard
Update Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
………………

7、重启

8、退出维护模式

[root@esxi-05:~] vim-cmd /hostsvc/maintenance_mode_exit
赞(19) 打赏
未经允许不得转载:笨笨天地 » VMware ESXi 升级
分享到: 更多 (0)

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏