How to Clone Machine on VirtualBox

How to do that?

1. Copy the original hardisk to the new one
2. Create new machine via GUI, then choose the new hardisk that we had copied before..
3. Thats it..

Lets begin..

Login as root/super user on terminal, then go to your VirtualBox hardisks directory:

root@spydeeyk-r00m:~# cd ~/.VirtualBox/HardDisks/

Then clone the machine thats you want..

vboxmanage clonevdi [source] [destination]

e.g:

root@spydeeyk-r00m:~/.VirtualBox/HardDisks# vboxmanage clonevdi C2.vdi /home/spydeeyk/.VirtualBox/HardDisks/C1.vdi

The new file that we had from cloning is root file, and root group.. we need to change it to user file.. (spydeeyk).

In my case:

root@spydeeyk-r00m:~/.VirtualBox/HardDisks# chown spydeeyk C1.vdi

root@spydeeyk-r00m:~/.VirtualBox/HardDisks# chgrp spydeeyk C1.vdi

We need to do that.. coz, we can’t choose the hardisk on GUI if the .vdi file is root’s file..

After chaging the owner and group of our new file.. then create new machine via GUI VirtualBox using hardisk (C1) that we made before..

Thats all..