如何将 ESXi 6.5 升级到 ESXi 6.7

VMware 不久前发布了 ESXi 6.7,但直到最近我才开始在我的家庭和工作实验室环境中部署它。以下是使用命令行或使用 VMware ESXi 脱机捆绑包轻松将 ESXi 6.5 主机升级到 ESXi 6.7 的两种方法。

注意:截至撰写本文时(8 年 24 月 2018 日),没有受支持的从 ESXi 6.5 U2 到 ESXi 6.7 的升级路径。

如何通过命令行将 ESXi 6.5 更新到 6.7

  1. 将要升级的主机置于维护模式。
  2. 现在使用 PuTTY(或任何其他 SSH 客户端/终端)通过 SSH 连接到主机。
  3. 键入以下命令以打开传出 HTTP 请求的防火墙:
    esxcli network firewall ruleset set -e true -r httpClient
  4. 键入以下命令以升级到最新的 ESXi 6.7 内部版本9484548(截至撰写本文时最新)
    esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20180804001-standard
  5. 更新完成后,通过键入以下内容禁用 HTTP 防火墙规则:
    esxcli network firewall ruleset set -e false -r httpClient
  6. 最后,重新引导 ESXi 主机以完成升级。
    reboot

Once the host comes back online, remove it from Maintenance mode and you’re good to go. It also wouldn’t hurt to also disable SSH when you’re done, for security purposes.

Tip: To view a list of all available ESXi profiles type the following in your SSH session:

esxcli software sources profile list --depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

How to upgrade VMware ESXi 6.5 to ESXi 6.7 using an Offline Bundle

Using the offline bundle works similar in the way of the command line but saves you from having to re-download the upgrade file for each VMware ESXi host. This is nice when you have more than just a couple hosts or limited bandwidth.

  1. 首先下载 ESXi 6.7 脱机捆绑包 zip 文件。

  2. 将 VMware-ESXi-6.7.0-8169922-depot.zip 文件上载到所有主机均可访问的数据存储。

  3. 接下来,将计划升级到维护模式的主机。
  4. 使用 PuTTY(或其他客户端/终端)通过 SSH 连接到您的主机。
  5. 键入以下命令,将“数据存储”替换为将 VMware-ESXi-6.7.0-8169922-depot.zip 文件上载到的数据存储的名称。
    esxcli software vib update -d /vmfs/volumes/DATASTORE/VMware-ESXi-6.7.0-8169922-depot.zip
  6. 完成上述操作后,通过键入以下内容重新启动主机:
    reboot

重新引导主机后,将其退出维护模式并转到下一个主机。就是这样!

猜你喜欢

转载自blog.csdn.net/allway2/article/details/131487709