os:esxi:update
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
os:esxi:update [2015-07-25 11:42] – created root | os:esxi:update [2019-04-19 17:33] (current) – root | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ESXi - Update ====== | + | ====== ESXi - Update |
+ | |||
+ | This page describes the update procedure of a standalone ESXi host on command line. The commands can be performed over SSH or on the ESXi Shell. | ||
+ | |||
+ | ===== Check current Version ===== | ||
+ | |||
+ | Get the version and build information about the host just to know what you are working on. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli system version get | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===== Configure firewall for outgoing HTTP connections ===== | ||
+ | |||
+ | To update your host with VIB's from the internet you have to allow httpClient in the firewall. You can check if the connections are alowed with the following command. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli network firewall ruleset | ||
+ | Name Enabled | ||
+ | ---------- | ||
+ | httpClient | ||
+ | </ | ||
+ | |||
+ | If the command returns //false// you can allow it with the following command. | ||
+ | < | ||
+ | ~ # esxcli network firewall ruleset set -r httpClient -e true | ||
+ | </ | ||
+ | |||
+ | ===== Get the latest profile name ===== | ||
+ | |||
+ | Now you have to determine the profile you want to update to. | ||
+ | |||
+ | You can perform this action on command line. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli software sources profile list -d https:// | ||
+ | ESXi-6.0.0-20150404001-standard | ||
+ | ESXi-6.0.0-20150704001-standard | ||
+ | ESXi-6.0.0-20150704001-no-tools | ||
+ | ESXi-6.0.0-20150404001-no-tools | ||
+ | ESXi-6.0.0-2494585-standard | ||
+ | ESXi-6.0.0-20150504001-no-tools | ||
+ | ESXi-6.0.0-20150701001s-no-tools | ||
+ | ESXi-6.0.0-20150701001s-standard | ||
+ | ESXi-6.0.0-20150504001-standard | ||
+ | ESXi-6.0.0-2494585-no-tools | ||
+ | </ | ||
+ | |||
+ | There is a web page with detailed information about the updates, including VIB names with link, short description, | ||
+ | |||
+ | ===== Stop running VM's ===== | ||
+ | |||
+ | To update the host, you have to enter the maintenance mode which requires no running machines. So let's stop the running machines. | ||
+ | |||
+ | Show which VM's are running: | ||
+ | |||
+ | < | ||
+ | ~ # esxcli vm process list | ||
+ | my_vm_x | ||
+ | World ID: 35930 | ||
+ | | ||
+ | VMX Cartel ID: 35699 | ||
+ | UUID: 56 4d 67 bf 2c 52 e1 e0-33 1b 57 42 02 d8 d8 3b | ||
+ | | ||
+ | | ||
+ | |||
+ | my_vm_y | ||
+ | World ID: 36398 | ||
+ | | ||
+ | VMX Cartel ID: 36397 | ||
+ | UUID: 56 4d f9 f5 10 4e fa e0-42 e8 80 17 a2 bf b5 93 | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Now get the Vmid's of this VM' | ||
+ | |||
+ | < | ||
+ | ~ # vim-cmd vmsvc/ | ||
+ | Vmid Name | ||
+ | 1 | ||
+ | 11 my_vm_z | ||
+ | 13 my_vm_y | ||
+ | </ | ||
+ | |||
+ | Repeat the following command with every Vmid of your running VM' | ||
+ | < | ||
+ | ~ # vim-cmd vmsvc/ | ||
+ | </ | ||
+ | |||
+ | I use the following one-liner to shutdown all my running vm's. Use it at your own risk. | ||
+ | < | ||
+ | ~ # for vmid in $(vim-cmd vmsvc/ | ||
+ | </ | ||
+ | |||
+ | ===== Set host to maintenance mode ===== | ||
+ | |||
+ | Now set the host to maintenance mode: | ||
+ | |||
+ | < | ||
+ | ~ # esxcli system maintenanceMode set -e true | ||
+ | </ | ||
+ | |||
+ | If the command won't return, there are some problems entering maintenance mode. Probably some VM's are still running. Check and shutdown them on another SSH session or with VMware vSphere Client. | ||
+ | |||
+ | If the command returns you can check the current mode with the following command. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli system maintenanceMode get | ||
+ | Enabled | ||
+ | </ | ||
+ | |||
+ | ===== Start upgrade process ===== | ||
+ | |||
+ | Now you are ready to upgrade. Replace the profile name of the following command (ESXi-6.0.0-20150704001-standard) with your prefered profile name to upgrade to. It takes some minutes until the **Update Result** is displayed. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli software profile update -d https:// | ||
+ | |||
+ | Update Result | ||
+ | | ||
+ | | ||
+ | VIBs Installed: VMware_bootbank_esx-base_6.0.0-0.11.2809209, | ||
+ | VIBs Removed: Hewlett-Packard_bootbank_scsi-hpsa_5.5.0.106-1OEM.550.0.0.1331820, | ||
+ | VIBs Skipped: VMWARE_bootbank_mtip32xx-native_3.8.5-1vmw.600.0.0.2494585, | ||
+ | </ | ||
+ | |||
+ | ==== Upgrade HP software and drivers ==== | ||
+ | |||
+ | If you are using an HPE Server, you may want to upgrade all HP VIB's too. | ||
+ | |||
+ | The simplest way to do this, is to directly fetch the HP VIB repo data. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli software vib update -d https:// | ||
+ | | ||
+ | Could not download from depot at https:// | ||
+ | url = https:// | ||
+ | | ||
+ | </ | ||
+ | |||
+ | But I bet it won't work for you, too. HP and VMware seemes to share their website developers and hosters, because the availability and performance of both sites is really bad. | ||
+ | |||
+ | Another way to upgrade is to download the depot and do an offline installation. | ||
+ | |||
+ | Download the depot ZIP file on [[https:// | ||
+ | |||
+ | Update the HP VIB's with the local depot. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli software vib update --depot=file:/// | ||
+ | Installation Result | ||
+ | | ||
+ | | ||
+ | VIBs Installed: BRCM_bootbank_net-tg3_3.137l.v60.1-1OEM.600.0.0.2494585, | ||
+ | VIBs Removed: Broadcom_bootbank_misc-cnic-register_1.710.70.v55.1-1OEM.550.0.0.1331820, | ||
+ | VIBs Skipped: Hewlett-Packard_bootbank_char-hpcru_6.0.6.14-1OEM.600.0.0.2159203, | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Exit maintenance mode ===== | ||
+ | |||
+ | You may want to exit the maintenance mode so your VM's will start automatically after reboot. This can be especially useful if your management machine is on this ESXi host and you update to another major version because it can occur that SSH is disabled after reboot. | ||
+ | |||
+ | Exit maintenance mode: | ||
+ | < | ||
+ | ~ # esxcli system maintenanceMode set -e false | ||
+ | </ | ||
+ | |||
+ | Check status: | ||
+ | < | ||
+ | ~ # esxcli system maintenanceMode get | ||
+ | Disabled | ||
+ | </ | ||
+ | |||
+ | ===== Reboot host ==== | ||
+ | |||
+ | Reboot your host. You will loose your SSH connection to it. | ||
+ | |||
+ | < | ||
+ | ~ # reboot | ||
+ | ~ # Connection to my_host closed by remote host. | ||
+ | Shared connection to my_host closed. | ||
+ | </ | ||
+ | |||
+ | ===== Reconnect to host ===== | ||
+ | |||
+ | Restart your SSH connection to your host if it is back. | ||
+ | |||
+ | < | ||
+ | manu@automatix: | ||
+ | The time and date of this login have been sent to the system logs. | ||
+ | |||
+ | VMware offers supported, powerful system administration tools. | ||
+ | see www.VMware.com/ | ||
+ | |||
+ | The ESXi Shell can be disabled by an administrative user. See the | ||
+ | vSphere Security documentation for more information. | ||
+ | ~ # | ||
+ | </ | ||
+ | |||
+ | ===== Check running version ===== | ||
+ | |||
+ | Now check again your current ESXi host version. The output should differ from the last execution. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli system version get | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ===== Credits ===== | ||
+ | |||
+ | * William Lam [[http:// | ||
+ | * Andreas Peetz [[https:// | ||
+ | |||
+ | |||
+ | ====== Update ESXi 6.0 HPE Custom Image to 6.5 ====== | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | * ESXi 6.0 installed | ||
+ | * HPE Custom ESXi 6.5 Image downloaded and extracted to / | ||
+ | * Host is in Maintenance Mode | ||
+ | |||
+ | ===== Update Process ===== | ||
+ | |||
+ | ==== Get Image Profile ==== | ||
+ | |||
+ | Get the name of the image profile in the downloaded depot (in this example: HPE-ESXi-6.5.0-OS-Release-650.9.6.0.28). | ||
+ | |||
+ | < | ||
+ | ~ # esxcli software sources profile list --depot=file:/// | ||
+ | Name Vendor | ||
+ | -------------------------------------- | ||
+ | HPE-ESXi-6.5.0-OS-Release-650.9.6.0.28 | ||
+ | </ | ||
+ | |||
+ | ==== Start Update ==== | ||
+ | |||
+ | Execute the update command and replace the string after **-p** with the image profile name. | ||
+ | |||
+ | < | ||
+ | ~ # esxcli software profile update --depot=file:/// | ||
+ | Update Result | ||
+ | | ||
+ | | ||
+ | VIBs Installed: ELX_bootbank_elx-esx-libelxima.so_11.1.216.0-03, | ||
+ | VIBs Removed: EMU_bootbank_elxnet_11.1.145.0-1OEM.600.0.0.2768847, | ||
+ | VIBs Skipped: Avago_bootbank_scsi-mpt2sas_15.10.06.00-1OEM.550.0.0.1331820, | ||
+ | </ | ||
+ | |||
+ | ==== Reboot the Host ==== | ||
+ | |||
+ | < | ||
+ | ~ # reboot | ||
+ | </ | ||
+ | |||
+ | ====== Update HPE Tools & Drivers - May 2017 ====== | ||
+ | |||
+ | < | ||
+ | ~ # esxcli software vib update -d http:// | ||
+ | Installation Result | ||
+ | | ||
+ | | ||
+ | VIBs Installed: HPE_bootbank_hpe-ilo_650.10.0.2-2.4240417 | ||
+ | VIBs Removed: HPE_bootbank_hpe-ilo_650.10.0.1-24.4240417 | ||
+ | VIBs Skipped: HPE_bootbank_amshelper_650.10.6.0-24.4240417, | ||
+ | </ | ||
+ | |||
+ | ====== Update to ESXi 6.5.0 U1 and HPE Drivers - InstallationError: | ||
+ | |||
+ | The installation of version 6.5.0 update 1 stopped with the error "No space left on device" | ||
+ | |||
+ | < | ||
+ | [root@mfr-vx00: | ||
+ | | ||
+ | | ||
+ | vibs = VMware_locker_tools-light_6.5.0-0.23.5969300 | ||
+ | | ||
+ | </ | ||
+ | |||
+ | Download the VMware-Tools VIB file and copy it to a datastore which can be accessed by the esx host. | ||
+ | < | ||
+ | [root@my-client: | ||
+ | [root@my-client:/ | ||
+ | </ | ||
+ | |||
+ | Install the downloaded VIB file. | ||
+ | < | ||
+ | [root@my-host: | ||
+ | Installation Result | ||
+ | | ||
+ | | ||
+ | VIBs Installed: VMware_locker_tools-light_6.5.0-0.23.5969300 | ||
+ | VIBs Removed: | ||
+ | VIBs Skipped: | ||
+ | </ | ||
+ | |||
+ | Retry the installation. It should work now. | ||
+ | < | ||
+ | [root@my-host: | ||
+ | Update Result | ||
+ | | ||
+ | | ||
+ | VIBs Installed: VMW_bootbank_i40en_1.3.1-5vmw.650.1.26.5969303, | ||
+ | VIBs Removed: QLogic_bootbank_qlnativefc_2.1.50.0-1OEM.600.0.0.2768847, | ||
+ | VIBs Skipped: VMW_bootbank_ata-libata-92_3.00.9.2-16vmw.650.0.0.4564106, | ||
+ | </ | ||
+ | |||
+ | Update the HPE tools and drivers. | ||
+ | < | ||
+ | [root@my-host: | ||
+ | Installation Result | ||
+ | | ||
+ | | ||
+ | VIBs Installed: HPE_bootbank_amsd_650.11.1.0-24.4240417, | ||
+ | VIBs Removed: HPE_bootbank_amshelper_650.10.6.0-24.4240417, | ||
+ | VIBs Skipped: | ||
+ | </ | ||
+ | |||
+ | Reboot the host. | ||
+ | < | ||
+ | [root@my-host: | ||
+ | </ | ||
+ | |||
+ | ====== Update form ESXi 6.7U1 to 6.7U2 with the offline bundle ====== | ||
+ | |||
+ | The offline bundle was downloaded and extracted to myDatastore/ | ||
+ | |||
+ | < | ||
+ | [root@my-host: | ||
+ | </ | ||
- | * [[http:// | ||
- | * [[https:// |
os/esxi/update.1437817348.txt.gz · Last modified: 2015-07-25 11:42 by root