In the command line, you can use the --accept-license
parameter to perform an unattended installation.
sudo VBoxManage extpack install <package> --accept-license=<uuid>
How to obtain the UUID for the --accept-license
?
The --accept-license
requires an UUID that you must obtain accepting the license manually.
You must run the installer manually first. For the 5.2.0 version,
wget http://download.virtualbox.org/virtualbox/5.2.0/Oracle_VM_VirtualBox_Extension_Pack-5.2.0.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.2.0.vbox-extpack
The installer will show you a license text that you must accept
VirtualBox Extension Pack Personal Use and Evaluation License (PUEL)
License version 10, 20 July 2017
PLEASE READ THE FOLLOWING ORACLE VM VIRTUALBOX EXTENSION PACK PERSONAL
:
Do you agree to these license terms and conditions (y/n)? y
After you accept, the installer will show you the UUID for the accept license.
License accepted. For batch installaltion add
--accept-license=b674970f720eb020ad18926a9268607089cc1703908696d24a04aa870f34c8e8
to the VBoxManage command line.
How to use the --accept-license
?
Once you have the UUID, you can use the command line to perform an unattended installation. For the 5.2.0 version,
sudo VBoxManage extpack install $HOME/installers/Oracle_VM_VirtualBox_Extension_Pack-5.2.0.vbox-extpack \
--accept-license=b674970f720eb020ad18926a9268607089cc1703908696d24a04aa870f34c8e8