How to Clone a Virtual Machine on VirtualBox via Command-Line

Posted on July 24, 2019 at 5:22 pm

First you need to list the available VMs:

VBoxManage list vms

Option 1: Clone the VM (Faster)

To clone a VM just type this command:

VBoxManage clonevm Win7-64bit-VM1 --name Win7-64bit-VM2 --register

Now try to list again your VMs:

VBoxManage list vms

You should see your cloned VM.

Reference:

VBoxManage clonevm
https://gist.github.com/mikhailov/740fbfc58767fc495fe2

Option 2: Export a VM as OVA file (Slower)

You can export your VM Win7-64bit-VM1 as Win7-64bit-VM2:

VBoxManage export Win7-64bit-VM1 --output Win7-64bit-VM2/Win7-64bit-VM2.ova

Then you can import the new VM named Win7-64bit-VM2:

VBoxManage import Win7-64bit-VM2/Win7-64bit-VM2.ova

Now try to list again your VMs:

VBoxManage list vms

You should see your cloned VM.

Receive updates via email

Other Posts

Updated Posts