最近 ESXi 在升級時,搬移幾個特定的 VM 會出現 “發生一般系統錯誤:VM not found” 的錯誤訊息,試著直接到 datastore 把 .vmx 檔按右鍵登錄到目標 ESXi Server 也是出現登錄錯誤的訊息。
![](https://it-help.tips/wp/wp-content/uploads/2021/04/20210406a1.png)
後來在檢視 datastore 的目錄時,有留意到目錄的名稱包含中括號 [ ],印象幾年前在做 P2V 時,曾遇過因為 VM 名稱包含中括號而出現失敗的情形 (vCenter Converter P2V出現 ”The object has already been deleted or has not been completely created”),因此便懷疑這次也是因為資料夾名稱包含中括號,而導致在做 vMotion 時,發生 VM not found 的錯誤。
![](https://it-help.tips/wp/wp-content/uploads/2021/04/20210406a2.png)
在對 VM 按右鍵,選擇「從詳細目錄中移除」後,便可直接在 datastore 修改資料夾名稱,改完再對 .vmx 檔按右鍵登錄到 ESXi Server,便可正常搬移了。
![](https://it-help.tips/wp/wp-content/uploads/2021/04/20210406a3.png)