近日,看到了VMware發布的vCenter 6.7 Update 1b的更新消息。其中有一條比較震撼。有誤刪所有VM的概率,這種BUG誰也承受不起。
Removing a virtual machine folder from the inventory by using the vSphere Client might delete all virtual machines
In the vSphere Client, if you right-click on a folder and select Remove from Inventory from the drop-down menu, the action might delete all virtual machines in that folder from the disk and underlying datastore, and cause data loss.
This issue is resolved in this release.
https://docs.vmware.com/en/VMware-vSphere/6.7/rn/vsphere-vcenter-server-67u1b-release-notes.html
所以,趕快升級vCenter。我的VC是基於Windows 2016和SQL server 2017的6.7.0 10244807。其實也是非常新的版本了。
更新的時候只需要下載最新的文件VMware-VIM-all-6.7.0-11726888.iso。然后直接安裝其中的vCenter就會自動升級的。
升級的時候遇到一個錯誤。
Installation of component VCSServiceManager failed with error code '1603'. Check the logs for more details.
然后開始回滾。這個錯誤網上找了幾個方法,說要裝.net framework 3.5來解決的。其實不用,根本不是這個原因。
還有說當前用戶需是vcdb數據庫的所有者,這個是官方KB,但是檢查了,設置沒有問題。感覺這個有點沾邊了。
https://kb.vmware.com/s/article/2119768
看了很多文章和檢查日志后。通過以下2個設置並重啟服務器解決了問題。
1.將administrator@vsphere.local加入DCAdmin組
點擊Home-Administration-Users and Groups-DCAdmins,點擊下方的添加用戶。把administrator@vsphere.local 加進來。
2.啟用SQL server的 Name pipes和TCP/IP
在開始菜單中找到SQL server configuration manager,打開SQL Server網絡配置-MSSQLSERVER的協議 啟用Named Pipes和TCP/IP。這步需要重啟SQL服務生效。
再次安裝vCenter,成功。版本更新到了11727065。