Monday, October 12, 2009

[Level 2] How to clone VirtualBox vdi

The most easy way to clone a virtual box vdi file is by using the command "VBoxManage" by user root.
ex.
# pfexec VBoxManage clonehd ./source.vdi ./target.vdi
# sUser=`whoami`
# sGroup=`groups $sUser|cut -d' ' -f1`
# chown $sUser:$sGroup ./target.vdi



Wish this helps.

regards,
Stanley Huang