為了要玩雲端,一次要搞四台 VM,看網路上的文章,使用 VBoxManage.exe clonevdi 這個指令來進行 HardDisk 複製,因為 VDI 檔是帶有 UDDI 的。
因為我要在 Ubuntu 10.04 下使用。一開始,因為找不到 VBoxManage 這個指令,就用 cp 複製囉!但要透過 VirtualBox 的虛擬媒體管理員加入硬碟時,會出現錯誤訊息。

還真是一個頭兩個大耶!又沒有 vboxmanage 這個指令,到底要怎麼搞呀?只好再上網找解決之道囉!
哈!原來我的指令打錯了,大小寫是有差的,VBoxManage 這個指令才存在啦!Orz
不過,既然我都已經複製了,總不能浪費這個 vdi 檔吧!幸好找到了篇文章,執行了下列指令來改變 UUID,就 OK 啦!
$ VBoxManage internalcommands setvdiuuid hdp1.vdi
Oracle VM VirtualBox Command Line Management Interface Version 3.2.10
(C) 2005-2010 Oracle Corporation
All rights reserved.
UUID changed to: 302a4a36-ee6f-47d6-ac28-45fa06beca95
那複製 vdi 檔的指令,當然也要記錄一下囉!
$ VBoxManage clonevdi hdp0.vdi hdp2.vdi
Oracle VM VirtualBox Command Line Management Interface Version 3.2.10
(C) 2005-2010 Oracle Corporation
All rights reserved.
0%...10%...20%...30%....40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 3704dd76-0bf1-4f0e-a201-ba3f70a05eb6
Help 檔沒找到這兩個參數,可能是版本的關係吧?但還是可以執行。