LinuxCommandLibrary

vboxmanage-import

Import a previously exported virtual machine (VM).

TLDR

Import a VM from an OVF or OVA file

$ VBoxManage import [path/to/file.ovf]
copy


Set the name of the imported VM
$ VBoxManage import [path/to/file.ovf] --name [vm_name]
copy


Indicate the folder where the configuration of the imported VM will be stored
$ VBoxManage import [path/to/file.ovf] --basefolder [path/to/directory]
copy


Register the imported VM in VirtualBox
$ VBoxManage import [path/to/file.ovf] --register
copy


Perform a dry run to check the import without actually importing
$ VBoxManage import [path/to/file.ovf] --dry-run
copy


Set the guest OS type (one of VBoxManage list ostypes) for the imported VM
$ VBoxManage import [path/to/file.ovf] --ostype=[ostype]
copy


Set the memory (in megabytes) for the imported VM
$ VBoxManage import [path/to/file.ovf] --memory=[1]
copy


Set the number of CPUs for the imported VM
$ VBoxManage import [path/to/file.ovf] --cpus=[1]
copy

Copied to clipboard