在遷移虛擬機的時候提示遷移失敗,報錯內容如截圖java
查看vcenter日誌
在KB中查找報錯信息https://kb.vmware.com/s/article/2126282?lang=zh_CN
分析問題緣由爲JVM內存堆問題
(注意:JVM內存堆爲vcenter系統內部管理內存,與虛擬機的內存無關)服務器
installation_directory\VMware\Infrastructure\Inventory Service\conf\wrapper.conf
# Maximum Java Heap Size (in MB)<br/>wrapper.java.maxmemory=heap_size<br/>
installation_directory\VMware\Infrastructure\Inventory Service\conf\wrapper.confapp
堆大小參數:ide
wrapper.java.maxmemory=heap_size日誌
• vSphere Profile-Driven Storagecode
配置文件位置:blog
installation_directory\VMware\Infrastructure\Profile-Driven Storage\conf\wrapper.conf
內存
堆大小參數:get
#Maximum Java Heap Size (in MB)wrapper.java.maxmemory=heap_size
虛擬機
2.在vcenter的系統服務中重啓以管理員身份登陸到運行 vCenter Server 的服務器。單擊開始 > 運行。鍵入 services.msc。按 Enter 鍵。從服務列表中右鍵單擊要啓動的服務。 例如,VMware VirtualCenter Server 或 VMware vCenter Server、vmware Inventory Service、 vmware Profile-Driven Storage等相關服務完成以上操做後虛擬機遷移恢復正常