-1

Suppose I go through the GUI-guided steps to create a VirtualBox VM.

I want to determine the command-line equivalents of all the steps I just went through, so that I can put them in a script.

Is there a way to generate this information from the (just-created) VM?

kjo
  • 115
  • 5

1 Answers1

1

I suggest using the OVF export function (for a VM called my_vm):

VBoxManage export my_vm --output my_vm.ovf
VBoxManage import -n my_vm.ovf

The last command offers a preview + options to customize, like this:

VBoxManage import my_vm.ovf --vsys 0 --vmname my_vm_copy

Sources:

kjo
  • 115
  • 5
fuero
  • 9,591
  • 1
  • 35
  • 40