參考http://blog.tenyi.com/2009/12/convert-from-vmdkvhd-to-vdi-format.html
用VirtualBox附的VBoxManage就可以轉換虛擬硬碟的格式。
把vmdk或vhd轉成vdi的指令:
VBoxManage clonehd source.vmdk target.vdi --format VDI
--format
是指target (目標檔案)格式,source的格式似乎會自動判斷
Your are no longer needed to use vditool, the tool "VBoxManage" comes with recent revision VirtualBox.
Just type the command:
VBoxManage clonehd source.vmdk target.vdi --format VDI
- format
refers to the target format, source format seems to be automatically determined.
VirtualBox Command Line Management Interface Version 3.1.0 (C) 2005-2009 Sun Microsystems, Inc. All rights reserved. Usage: VBoxManage clonehd <uuid>|<filename> <outputfile> [--format VDI|VMDK|VHD|RAW|<other>] [--variant Standard,Fixed,Split2G,Stream,ESX] [--type normal|writethrough|immutable] [--remember] [--existing]</other></outputfile></filename></uuid>