1、備份虛擬機
最好備份,我沒備份但沒出問題,僅供參考
2、升級esxi5.5
ssh 登錄vmware esxi5.5控制台
// 確認版本
vmware -v
// 進入維護模式
vim-cmd /hostsvc/maintenance_mode_enter
// 查看是否處於維護模式
vim-cmd /hostsvc/hostsummary | grep inMaintenanceMode
// 退出維護模式(僅記錄,不需執行)
vim-cmd /hostsvc/maintenance_mode_exit
//上傳下載的 ESXi670-202011002.zip 文件到指定硬盤
// 開始升級,發現報錯
esxcli software profile update -d=/vmfs/volumes/57176246-031f4933-8517-44a8423ad8d9/ESXi670-202011002.zip -p=ESXi-6.7.0-20201101001s-standard --no-sig-check
[DependencyError] VIB LSI_bootbank_scsi-mpt3sas_04.00.00.00.1vmw-1OEM.500.0.0.472560 requires com.vmware.driverAPI-9.2.0.0, but the requirement cannot be satisfied within the ImageProfile. VIB LSI_bootbank_scsi-mpt3sas_04.00.00.00.1vmw-1OEM.500.0.0.472560 requires vmkapi_2_0_0_0, but the requirement cannot be satisfied within the ImageProfile. Please refer to the log file for more details.
// 查找出錯版本
esxcli software vib list | grep scsi-mpt3sas
// 移除出錯版本
esxcli software vib remove -n scsi-mpt3sas
// 提示移除成功
Removal Result Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective. Reboot Required: true VIBs Installed: VIBs Removed: LSI_bootbank_scsi-mpt3sas_04.00.00.00.1vmw-1OEM.500.0.0.472560 VIBs Skipped:
// 重啟
reboot
// 再次升級
esxcli software profile update -d=/vmfs/volumes/57176246-031f4933-8517-44a8423ad8d9/ESXi670-202011002.zip -p=ESXi-6.7.0-20201101001s-standard --no-sig-check
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective. Reboot Required: true VIBs Installed: 一堆軟件 VIBs Skipped: 一堆軟件
// 重啟(似乎會自動重啟兩次,時間較久)
reboot
// ssh登錄並確認版本
vmware -v
VMware ESXi 6.7.0 build-17167699
3、配置
// 升級到6.7不再支持 vSphere Client 軟件,直接從網頁操作
// 為了安全起見,關閉ssh和維護模式
// 許可證需要重新分配
4、啟動虛擬機提示出錯
無法打開虛擬機 dev2019 的電源。傳輸 (VMDB) 錯誤 -45: Failed to connect to peer process。 單擊此處了解更多詳細信息
是黑蘋果unlocker惹的禍,/bin/vmx、vmx-debug、vmx-stats三個文件都被軟鏈到/scratch/osx/目錄下,和這位情況一樣(https://community.spiceworks.com/topic/2123779-after-esx-5-5-upgrade-to-6-5-i-cannot-start-any-vm-s)
找相同配置的機器拷回去提示空間不足,啟動虛擬機服務器直接重啟,重啟后/bin/目錄下的所有改動全部自動恢復。
找打unlocker程序,看到有個remove的-u選項
[root@localhost:/vmfs/volumes/55f45560-9cdfa635-e696-44a8423ad8d9/osx] ./Unlocker.ESXi -h Usage: ./Unlocker.ESXi [-h] [-u] [target_directory] -h: print help -u: remove the patch target_directory: customize location of vmx executable
執行完后沒任何起色,和以前一模一樣。
[root@localhost:/vmfs/volumes/55f45560-9cdfa635-e696-44a8423ad8d9/osx] ./Unlocker.ESXi -u Removing patches and restoring original form Patching /bin/vmx File mapped @0x1168b5010 length 23958440 Patching /bin/vmx-debug File mapped @0x1168b5010 length 30551792 Patching /bin/vmx-stats File mapped @0xd6897740 length 27113584 Patching vmwarebase is not supported on this platform
5、物理重裝
重裝倒是沒啥,插上U盤,走到選擇升級還是覆蓋的時候選第二個選項:
三個選擇項功能解釋
(1.升級ESXI操作系統,保存VMFS數據存儲
(2.安裝ESXI操作系統,保存VMFS數據存儲
(3.安裝ESXI操作系統,覆蓋安裝VMFS,數據不保留(請謹慎選擇此項,因為會導致數據丟失)
6、重裝完后的配置
// 固定IP
// 加載已有虛擬機,登錄網頁后沒有虛擬機,添加虛擬機,然后選擇:注冊現有虛擬機 一步一步操作即可。
7、打補丁
esxcli software vib install -d=/vmfs/volumes/57176246-031f4933-8517-44a8423ad8d9/ESXi670-202011002.zip
參考:
https://blog.csdn.net/avatar_2009/article/details/108863069
https://www.cnblogs.com/lsp123/p/13429981.html
https://blog.csdn.net/zzcmyssy/article/details/111114094
http://guanjianfeng.com/archives/1161284
https://communities.vmware.com/t5/ESXi-Discussions/upgrade-esxi-from-6-0-to-6-5-VM-can-t-power-on/m-p/1815521#2633451
https://blog.csdn.net/weixin_42330208/article/details/114727318