In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Install patches for ESXi hosts using the command esxcli
Step1.
First make sure the ESXi host has SSH enabled, which can be done in two ways.
Using ESXi Shell
By default, ESXi Shell (formerly known as Technical Support Mode or TSM) on ESXi is disabled. Local or remote access to the shell can be enabled if necessary.
Enable ESXi Shell for troubleshooting only. ESXi Shell can be enabled and disabled regardless of whether the host is running in lockdown mode.
ESXi Shell
Enable this service for local access to ESXi Shell.
SSH
Enable this service to remotely access ESXi Shell using SSH.
Method 1: Set up on console of ESXi host
Customize System/View Logs
Login root
Select Troubleshooting Options
Enable ESXi Shell and SSH
Method 2: Configure from the vShpere Client administration interface
Select Configuration-> Security Profiles-> Services-> Properties
Check the service properties, ESXi Shell and SSH are turned on. Modifications can be made via the option buttons.
Step2.
Upload Patches
From vSphere Client, select Storage-> Right Select Browse Datastore
Select Upload
Wait for the file to finish uploading
Step3.
upgrade patch
Right-click the ESXi host to enter maintenance mode, which should ensure that all virtual machines have been shut down.
Next, enter the command line interface and connect to EXSi through SecureCRT.
Verify that the host is in maintenance status again by querying the status of the EXSi host with the command.
~ # vim-cmd /hostsvc/hostsummary|grep Maintenance
inMaintenanceMode = true,
Check the current version
~ # vmware -v
VMware ESXi 5.5.0 build-3568722
~ # esxcli system version get
Product: VMware ESXi
Version: 5.5.0
Build: Releasebuild-3568722
Update: 3
Use the command to list the currently installed software
esxcli software vib list
Go to the directory where the uploaded patch is located
Use the following command to install the patch
esxcli software vib update -d "/vmfs/volumes/datastore1/ESXi550-201703001.zip"
After installing the patch, reboot the ESX host:
# reboot
Reconnect to the ESXi host via SSH after reboot.
Check upgraded version of host
vmware -v
Turn off maintenance mode of the host
~ # vim-cmd /hostsvc/maintenance_mode_exit
'vim.Task:haTask-ha-host-vim.HostSystem.exitMaintenanceMode-109447963'
Check after closing
~ # vim-cmd /hostsvc/hostsummary |grep inMaintenanceMode
inMaintenanceMode = false,
References:
esxcli software vib command installs patches for ESXi 5.x/6.x hosts (2008939)
https://kb.vmware.com/s/article/2008939? lang=zh_CN
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.