* https://askubuntu.com/questions/914997/install-virtualbox-while-keeping-secure-boot
* https://stegard.net/2016/10/virtualbox-secure-boot-ubuntu-fail/
* Assuming you disable secure boot due to a package installation, even when you re-enable secure boot in your system configuration, you may still see [https://askubuntu.com/questions/726052/ubuntu-booting-in-insecure-mode-with-secureboot-enabled “Booting Booting in insecure mode” mode with SecureBoot enabled]
You'll always find a newer version of VirtualBox [https://www.virtualbox.org/wiki/Linux_Downloads using the Oracle ppa], so use that rather than the packaged version that comes with your distro. Warning: if you've already got VirtualBox installed from packages, you should remove it (but not 'completely' meaning don't destroy your existing images). Also, under packaged Ubuntu, you can simply <code>apt-get install virtualbox-guest-additions-iso</code>; however with the PPA, you'll need to download it yourself.
=== VBoxManage ===
Besides the GUI interface for VirtualBox, you can manage your VirtualBox machines with the <code>[[VBoxManage]]</code> command line tool.
=== Important Settings ===
Be sure to [https://www.virtualbox.org/manual/ch03.html#settings-processor enable PAE/NX] in the System -> Processor tab for your Ubuntu guests
== Vagrant Guest Additions ==If you have problems with installing Guest Additions, see https://www.virtualbox.org/wiki/LinuxAdditionsDebug which describes what the drivers are, what they do, and how to install them manually.
"Vagrant is a tool for building and distributing virtualized development environments. By providing automated creation and provisioning of virtual machines using Oracle<code>lsmod | grep vbox</code> will give you some info on what's VirtualBox (ed.: as well as other virtualization engines), Vagrant provides installed; which will be different for the tools to create host and configure lightweight, reproducible, and portable virtual environmentsthe guest."
http:<code>modinfo vboxdrv<//wwwcode> will give you info about the specific driver; especially the filename and version.vagrantup.com/ The MediaWiki project uses vagrant and provides instructions as well as version of the driver should match the configuration itself so version of VirtualBox that you can setup a development instance in a snap're running. See [[MediaWiki-Vagrant]]
== Extensions ==
You may need/want to install the "'''Extension Pack'''" for VirtualBox. That's because it provides USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, and NVMe. First download the file (it's a tarball with a .vbox-extpack extension), and then use VBoxManage to install it.
<source lang="bash">
VBoxManage list extpacks
VBoxManage extpack --help
VBoxManage extpack install --replace ~/Downloads/Oracle_VM_VirtualBox_Extension_Pack-5.2.13-122773.vbox-extpack
</source>
== Shared Folders ==
Once you create a shared folder in the VirtualBox UI, you may need to mount that folder from the guest.
Configuring shared folders in virtualbox E.g. for Quickstart developmentmeza, <source lang="bash"># Power down the Quickstart virtual machine.cd ~/src/mezavagrant ssh # On the host computer, start to get onto the Virtualbox management UI.guest# rightsudo mount -click Quickstart t vboxsf -> settings o uid=$UID,gid=$(id -> shared folders -> click g) opt_meza /opt/meza# now the /home/greg/src/meza folder with the green plus on the right# Set host is available to the "Folder Path" to a path vagrant user on the host computer. Give full readguest at /opt/write access.meza# Set the "Folder Name" to "shared". no caps. no vbox-# Ok -> Ok -</source> start Quickstart vm and this file should disappear.# Test by moving a file in the host computer into the host shared folder.
== Disk Images ==Learn more about VDI - Virtual Disk Images. All about how VirtualBox stores a 'snapshot' of a guest computer into a file on the host.
http://forums.virtualbox.org/viewtopic.php?t=8046
== Other Projects using VirtualBox ==
* See [[Drupal/virtualization]]* VirtualBox is the default 'provider' (virtualization system) used by HashiCorp's [[Vagrant]] * The MediaWiki project uses vagrant so that you can setup a development instance in a snap. See [[MediaWiki-Vagrant]]
[[Category:Virtualization]]
[[Category:Development]]
[[Category:DevOps]]