VirtualBox COM server is not running
重裝系統后,沒有安裝 VirtualBox,但是,想利用它的虛擬磁盤格式轉換功能,就直接從 C:Windows.old 下復制 VirtualBox 到 C:Program FilesOracleVirtualBox。
VBoxManage.exe clonehd “D:VHDVirtual MachinesDCdc⑵.vmdk” “d:dc⑵.vhd” --format vhd
出錯:
VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code REGDB_E_CLASSNOTREG (0x80040154) - Class not registered (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.
需要注冊 VBoxSVC 組件:
VBoxSVC /ReRegServer
regsvr32 VBoxC.dll
再運行,就行了。
另外,在用戶目錄下,有1個 .VirtualBox 目錄,其中有1個 VirtualBox.xml 文件,千萬不能丟了。
由于其中記載了父盤的信息,丟了就很難重建了。