VirtualBox: Export virtual machine as OVA from the command line

Export virtual machines to the OVA format with the command line tool “VBoxManage”.

Export virtual machines to the OVA format (Open Virtual Appliance), this can be done either directly in the user interface of VirtualBox or also with the command line tool “VBoxManage”.

This is located in the program folder of VirtualBox.

Listing the virtual machines

We can get a list of virtual machines with the following command:

vboxmange list vms

This will give us a list of virtual machines.

Export virtual machine as OVA file

With the following command, we can export the virtual machine:

vboxmanage export LinuxMint -o c:\temp\LinuxMint.ova

We specify the name of the VM, plus the “-o” parameter and the destination. The folder must exist, otherwise there will be an error message.

Depending on the size of the virtual machine, the process takes some time, the progress is displayed, but progresses slowly. When finished, the exported VM is located in the specified directory.

Leave a Reply

Your email address will not be published.