How to clone a vbox virtual machine

If running, stop the virtual machine:

$ vboxmanage controlvm <vmname> poweroff

then clone it:

$ vboxmanage clonevm <vmname> –name <new_vmname> –register

When you start the new vm, remember to change the IP address, because it is the same (cloned) from the original vm.

Other useful commands:

$ vboxmanage list vms

$ vboxmanage list runningvms

$ vboxmanage showvm <vmname>
$ vboxmanage showvminfo <vmname>
$ vboxmanage modifyvm <vmname> –memory 2048
$ vboxmanage startvm <vmname> –type headless