2019年10月27日 星期日

Virtualbox 移動vdi以及snapshot問題

這幾天遇到一個問題是當想要移動virtualbox系統的vdi以及snapshot時,snapshot與vdi分離後parent UUID出錯。問題是出在存放裝置應該要選擇snapshot的vdi而不是原始的vdi檔案。如果不幸已經出錯可以照下面的命令修復snapshot vdi的parent UUID。視情況也會需要修復.vbox檔案

The parent UUID (00000000-0000-0000-0000-000000000000) isn’t set correctly. Set it to its parent disk:

CODE: SELECT ALL   EXPAND VIEW
D:\>VBoxManage.exe internalcommands sethdparentuuid "c:\Users\UserName\VirtualBox VMs\VMName\Snapshots\{fdb2b61d-2212-45cc-8d29-b9f598d06f39}.vhd" {b76d8026-e222-470a-9c83-bc91351bb307}
UUID changed to: b76d8026-e222-470a-9c83-bc91351bb307


參考資料
parent UUID
https://forums.virtualbox.org/viewtopic.php?f=6&t=79896
merge snapshot
https://superuser.com/questions/590968/quickest-way-to-merge-snapshots-in-virtualbox