The clonehd command copy the VDI file and assigns a new UUID into it.
VBoxManage clonehd /opt/tools/vm/vm1-rhel.vdi /opt/tools/vm/vm2-rhel.vdi
Once the copy is done, you can now register this new VDI in your VirtualBox environment and create a new virtual machine.
Note: I am running VirtualBox on MacOS X, and I needed to put complete path to VDI files, if not the command id not working
Alternative approach
Initially I had issue with the clonehd command since I was not using full path. So what you can do is:
cp vm1-rhel.vdi vm2-rhel.vdi VBoxManage internalcommands sethduuid vm2-rhel.vdi
You can now add the new VDI to your VirtualBox environment.
No comments:
Post a Comment