How to upgrade from ESXi 5.x to ESXi 6.0 via CLI
来源:互联网 发布:反美颜的软件 编辑:程序博客网 时间:2024/05/21 15:51
How to upgrade from ESXi 5.x to ESXi 6.0 via CLI
Abstract
The post explains how to upgrade from ESXi5.0/5.5 to ESXi 6.0U2 with new esxcli command “esxcli software update profile”.
1. Introduction
It’s finally here! VMware ESXi-6.0U2 released on March16th, 2016 and is available for download. With it comes many new features and of course bug fixes(Release Notes). Of all these new features,ESXi Embedded Host Client is included, this is a big deal, the arrival of HTML5 UI client that is used to connect to and manage single ESXi hosts. It can be used to perform administrative tasks to manage host resources, such as virtual machines, networking, and storage.
Once the upgrade is done and host rebooted,just point your browser to this URL:
https://<esxi-host-ip>/ui
You can get a web-based management console.
Figure1 VMware Host Client
2. esxi command to upgrade
Traditionally the command to upgrade ESXi host is:
#esxcli software vib update –d /vmfs/volumes/<your_volume>/VMware-ESXi-xxx-depot.zip
Or:
#esxcli software vib install –d /vmfs/volumes/<your_volume>/VMware-ESXi-xxx-depot.zip
VMware now recommends using “esxcli software update profile” command instead, for UPGRADES. As with this command you have a possibility to specify the image profile within the upgrade package.
The “esxcli software update profile” command allows to pick an image profile within the upgrade package (usually there is 4 of them), but adds a bit of complexity.
The software profile update command updates existing VIBS with the corresponding VIBs from the specified profile, but does not affect other VIBs installed on the target server. The software profile install command installs the VIBs present in the depot image profile, and removes any other VIBS installed on the target server.
3. how to upgrade
Before you begin, you'll first need to carefully review WilliamLam's warning:
Disclaimer: This method assumes you can install the default ESXi Image Profile with no additional drivers or packages, else you may have connectivity issue after the upgrade. If you still need to customize the ESXi Image Profile before installation, you will still need to use something like Image Builder and then upload that to your online depot.
...and Andreas Peetzwarning:
Important note: Before doing this please check whether you rely on one of the NIC drivers (e.g. Realtek) that were blacklisted in ESXi 6.0. You then need to carry out an additional step before doing the upgrade - see my earlier post(section 2) for details.
Following example shows how to update standalone ESXi-5.5 to ESXi-6.0U2 server through three steps.
1) Download the file called " update-from-esxi6.0-6.0_update02.zip", upload this file to the datastore within ESXi host.
2) Put your system into maintenance mode,or ensure you've set your ESXi host to automatically gracefully shutdown all VMs upon host reboot
3) Login in to the ESXi host via SSH client, then enter commands as:
# esxcli software sources profile list -d /vmfs/volumes/<your_volume>/update-from-esxi6.0-6.0_update02.zip
Name Vendor Acceptance Level
----------------------------- ---------- ----------------
ESXi-6.0.0-20160301001s-no-tools VMware, Inc. PartnerSupported
ESXi-6.0.0-20160302001-standard VMware, Inc. PartnerSupported
ESXi-6.0.0-20160301001s-standard VMware, Inc. PartnerSupported
ESXi-6.0.0-20160302001-no-tools VMware, Inc. PartnerSupported
# esxcli softwareprofile update -d /vmfs/volumes/datastore1/update-from-esxi6.0-6.0_update02.zip- p ESXi-6.0.0-20160302001-standard
Output messages would look like:
Update Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
......
4) Reboot your ESXi host. When the reboot is complete, you'll see for yourself that you now have the latest ESXi running.
4. Conclusion
Compared to traditional upgrade command, “esxcli software update profile” command is more reliable and efficient.
- How to upgrade from ESXi 5.x to ESXi 6.0 via CLI
- How to Clone VMs in ESXi
- How to Upgrade Node.js via NPM
- how to setup razor in ubuntu 14.04 to deploy esxi 6.0
- How to collect ilom snapshot via CLI
- How to remove orphan virtual switch on ESXi host
- Importing a VM from VM Workstation to ESX / ESXi
- How to Transfer Audio Output from Mac OS X to Ubuntu via a Network?
- How To Upgrade ASM from 10.2 to 11.1 (RAC)
- How To Upgrade ASM from 10.2 to 11.1 (RAC)
- How to Clear Fault from ilom CLI
- ESXi 5.x 命令行操作
- How to Upgrade vQmod
- How to upgrade git?
- How to upgrade nodejs
- esxi
- esxi
- esxi
- 软件开发文档范例
- java socket 进阶话题一: socket 客户端连接管理
- Python3-while循环语句
- 委托的清空
- ios开发--OS X 和 iOS 的测绘框架 - Core Plot 入门教程
- How to upgrade from ESXi 5.x to ESXi 6.0 via CLI
- 页面布局-水平居中,垂直居中
- 怎么在页面里引入bootstrap的css和js文件呢?
- Android快速开发系列 10个常用工具类
- PostgreSQL 常用命令笔记
- systemctl 命令完全指南
- 欢迎使用CSDN-markdown编辑器
- Golang 实现Bit数组
- Mac 安装pip