這是技術貼,多餘的廢話不多說,主要記錄如何快速升級Esxi server. 為了安全,記得停下所有vm 及把主機轉到 Maintenance mode 打開防火墻允許server 外連http
~ # esxcli network firewall ruleset set -e true -r httpClient
下載Profile list ,找尋想更新到的profile
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml Name Vendor Acceptance Level -------------------------------- ------------ ---------------- ESXi-5.0.0-20120704001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20121202001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120904001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20111204001-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20121004001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20121201001s-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120404001-standard VMware, Inc. PartnerSupported ESXi-5.1.0-20121201001s-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20130301001s-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120302001-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20130401001s-standard VMware, Inc. PartnerSupported ESXi-5.1.0-799733-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20121201001s-standard VMware, Inc. PartnerSupported ESXi-5.1.0-20130504001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120404001-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20130304001-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20121204001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20110904001-notools VMware, Inc. PartnerSupported ESXi-5.0.0-20110904001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20111104001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-469512-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120301001s-standard VMware, Inc. PartnerSupported ESXi-5.1.0-20121201001s-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120504001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20130504001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120904001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20121202001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20111204001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120302001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120701001s-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120704001-standard VMware, Inc. PartnerSupported ESXi-5.1.0-20121004001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120901001s-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120701001s-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20130504001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120901001s-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20130304001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20130301001s-standard VMware, Inc. PartnerSupported ESXi-5.0.0-469512-standard VMware, Inc. PartnerSupported ESXi-5.1.0-799733-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120301001s-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20130402001-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20130402001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20111104001-no-tools VMware, Inc. PartnerSupported ESXi-5.0.0-20120604001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120604001-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20130401001s-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20130504001-no-tools VMware, Inc. PartnerSupported ESXi-5.1.0-20130304001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20120504001-standard VMware, Inc. PartnerSupported ESXi-5.1.0-20121204001-standard VMware, Inc. PartnerSupported ESXi-5.0.0-20130304001-no-tools VMware, Inc. PartnerSupported
請記下Profile 的名,下個步驟會用到,例如本次想更新到ESXi-5.1.0-20130402001-standard
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.1.0-20130402001-standard
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.1.0-20130402001-standard Update Result Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective. Reboot Required: true VIBs Installed: VMware_bootbank_esx-base_5.1.0-1.12.1065491, VMware_bootbank_esx-xserver_5.1.0-0.11.1063671, VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.510.1.12.1065491, VMware_bootbank_misc-drivers_5.1.0-1.12.1065491, VMware_bootbank_net-e1000e_1.1.2-3vmw.510.1.12.1065491, VMware_bootbank_net-ixgbe_3.7.13.6iov-10vmw.510.1.12.1065491, VMware_bootbank_net-tg3_3.123b.v50.1-1vmw.510.1.12.1065491, VMware_bootbank_scsi-megaraid-sas_5.34-4vmw.510.1.12.1065491, VMware_locker_tools-light_5.1.0-1.12.1065491 VIBs Removed: Broadcom_bootbank_net-tg3_3.123b.v50.1-1OEM.500.0.0.472560, VMware_bootbank_esx-base_5.1.0-0.0.799733, VMware_bootbank_esx-xserver_5.1.0-0.0.799733, VMware_bootbank_ipmi-ipmi-si-drv_39.1-4vmw.510.0.0.799733, VMware_bootbank_misc-drivers_5.1.0-0.0.799733, VMware_bootbank_net-e1000e_1.1.2-3vmw.510.0.0.799733, VMware_bootbank_net-ixgbe_3.7.13.6iov-10vmw.510.0.0.799733, VMware_bootbank_scsi-megaraid-sas_5.34-4vmw.510.0.0.799733, VMware_locker_tools-light_5.1.0-0.0.799733 VIBs Skipped: VMware_bootbank_ata-pata-amd_0.3.10-3vmw.510.0.0.799733, VMware_bootbank_ata-pata-atiixp_0.4.6-4vmw.510.0.0.799733, VMware_bootbank_ata-pata-cmd64x_0.2.5-3vmw.510.0.0.799733, VMware_bootbank_ata-pata-hpt3x2n_0.3.4-3vmw.510.0.0.799733, VMware_bootbank_ata-pata-pdc2027x_1.0-3vmw.510.0.0.799733, VMware_bootbank_ata-pata-serverworks_0.4.3-3vmw.510.0.0.799733, VMware_bootbank_ata-pata-sil680_0.4.8-3vmw.510.0.0.799733, VMware_bootbank_ata-pata-via_0.3.3-2vmw.510.0.0.799733, VMware_bootbank_block-cciss_3.6.14-10vmw.510.0.0.799733, VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.510.0.0.799733, VMware_bootbank_esx-dvfilter-generic-fastpath_5.1.0-0.0.799733, VMware_bootbank_esx-tboot_5.1.0-0.0.799733, VMware_bootbank_esx-xlibs_5.1.0-0.0.799733, VMware_bootbank_ima-qla4xxx_2.01.31-1vmw.510.0.0.799733, VMware_bootbank_ipmi-ipmi-devintf_39.1-4vmw.510.0.0.799733, VMware_bootbank_ipmi-ipmi-msghandler_39.1-4vmw.510.0.0.799733, VMware_bootbank_misc-cnic-register_1.1-1vmw.510.0.0.799733, VMware_bootbank_net-be2net_4.1.255.11-1vmw.510.0.0.799733, VMware_bootbank_net-bnx2_2.0.15g.v50.11-7vmw.510.1.12.1065491, VMware_bootbank_net-bnx2x_1.61.15.v50.3-1vmw.510.0.11.1063671, VMware_bootbank_net-cnic_1.10.2j.v50.7-3vmw.510.0.0.799733, VMware_bootbank_net-e1000_8.0.3.1-2vmw.510.0.0.799733, VMware_bootbank_net-enic_1.4.2.15a-1vmw.510.0.0.799733, VMware_bootbank_net-forcedeth_0.61-2vmw.510.0.0.799733, VMware_bootbank_net-igb_2.1.11.1-3vmw.510.1.12.1065491, VMware_bootbank_net-nx-nic_4.0.558-3vmw.510.0.0.799733, VMware_bootbank_net-r8168_8.013.00-3vmw.510.0.0.799733, VMware_bootbank_net-r8169_6.011.00-2vmw.510.0.0.799733, VMware_bootbank_net-s2io_2.1.4.13427-3vmw.510.0.0.799733, VMware_bootbank_net-sky2_1.20-2vmw.510.0.0.799733, VMware_bootbank_net-vmxnet3_1.1.3.0-3vmw.510.0.0.799733, VMware_bootbank_ohci-usb-ohci_1.0-3vmw.510.0.0.799733, VMware_bootbank_sata-ahci_3.0-13vmw.510.0.0.799733, VMware_bootbank_sata-ata-piix_2.12-6vmw.510.0.0.799733, VMware_bootbank_sata-sata-nv_3.5-4vmw.510.0.0.799733, VMware_bootbank_sata-sata-promise_2.12-3vmw.510.0.0.799733, VMware_bootbank_sata-sata-sil24_1.1-1vmw.510.0.0.799733, VMware_bootbank_sata-sata-sil_2.3-4vmw.510.0.0.799733, VMware_bootbank_sata-sata-svw_2.3-3vmw.510.0.0.799733, VMware_bootbank_scsi-aacraid_1.1.5.1-9vmw.510.0.0.799733, VMware_bootbank_scsi-adp94xx_1.0.8.12-6vmw.510.0.0.799733, VMware_bootbank_scsi-aic79xx_3.1-5vmw.510.0.0.799733, VMware_bootbank_scsi-bnx2i_1.9.1d.v50.1-5vmw.510.0.0.799733, VMware_bootbank_scsi-fnic_1.5.0.3-1vmw.510.0.0.799733, VMware_bootbank_scsi-hpsa_5.0.0-21vmw.510.0.0.799733, VMware_bootbank_scsi-ips_7.12.05-4vmw.510.0.0.799733, VMware_bootbank_scsi-lpfc820_8.2.3.1-127vmw.510.0.0.799733, VMware_bootbank_scsi-megaraid-mbox_2.20.5.1-6vmw.510.0.0.799733, VMware_bootbank_scsi-megaraid2_2.00.4-9vmw.510.0.0.799733, VMware_bootbank_scsi-mpt2sas_10.00.00.00-5vmw.510.0.0.799733, VMware_bootbank_scsi-mptsas_4.23.01.00-6vmw.510.0.0.799733, VMware_bootbank_scsi-mptspi_4.23.01.00-6vmw.510.0.0.799733, VMware_bootbank_scsi-qla2xxx_902.k1.1-9vmw.510.0.0.799733, VMware_bootbank_scsi-qla4xxx_5.01.03.2-4vmw.510.0.0.799733, VMware_bootbank_scsi-rste_2.0.2.0088-1vmw.510.0.0.799733, VMware_bootbank_uhci-usb-uhci_1.0-3vmw.510.0.0.799733
The update completed successfully, but the system needs to be rebooted for the changes to be effective.
完成更新,重新啟動你的SERVER了