VirtualBox: Difference between revisions
revert edits to fix search where character encoding was a problem |
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight" |
||
| Line 22: | Line 22: | ||
=== Getting it === | === Getting it === | ||
< | <syntaxhighlight lang="bash"> | ||
# prep | # prep | ||
# Stop any virtual machines | # Stop any virtual machines | ||
| Line 30: | Line 30: | ||
wget http://download.virtualbox.org/virtualbox/5.0.26/virtualbox-5.0_5.0.26-108824-Ubuntu-trusty_i386.deb | wget http://download.virtualbox.org/virtualbox/5.0.26/virtualbox-5.0_5.0.26-108824-Ubuntu-trusty_i386.deb | ||
sudo dpkg -i ~/Downloads/virtualbox-5.0_5.0.26-108824-Ubuntu-trusty_i386.deb | sudo dpkg -i ~/Downloads/virtualbox-5.0_5.0.26-108824-Ubuntu-trusty_i386.deb | ||
</ | </syntaxhighlight> | ||
If you get a 'conflict with virtualbox' error, remove the existing package and re-try the previous install command | If you get a 'conflict with virtualbox' error, remove the existing package and re-try the previous install command | ||
<code>sudo dpkg --remove virtualbox-4.3</code> | <code>sudo dpkg --remove virtualbox-4.3</code> | ||
You may also need to upgrade vagrant E.g. VirtualBox GUI runs fine, but 'vagrant up' does not. This happened to me when my installed version of vagrant 1.7.1 only supported VirtualBox <= 4.3. Upgrading to vagrant 1.8.5 added support for VirtualBox 5.x | You may also need to upgrade vagrant E.g. VirtualBox GUI runs fine, but 'vagrant up' does not. This happened to me when my installed version of vagrant 1.7.1 only supported VirtualBox <= 4.3. Upgrading to vagrant 1.8.5 added support for VirtualBox 5.x | ||
< | <syntaxhighlight lang="bash"> | ||
sudo dpkg -i /home/greg/Downloads/vagrant_1.8.5_i686.deb | sudo dpkg -i /home/greg/Downloads/vagrant_1.8.5_i686.deb | ||
</ | </syntaxhighlight> | ||
=== VBoxManage === | === VBoxManage === | ||
| Line 54: | Line 54: | ||
== Extensions == | == 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. | 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. | ||
< | <syntaxhighlight lang="bash"> | ||
VBoxManage list extpacks | VBoxManage list extpacks | ||
VBoxManage extpack --help | VBoxManage extpack --help | ||
VBoxManage extpack install --replace ~/Downloads/Oracle_VM_VirtualBox_Extension_Pack-5.2.13-122773.vbox-extpack | VBoxManage extpack install --replace ~/Downloads/Oracle_VM_VirtualBox_Extension_Pack-5.2.13-122773.vbox-extpack | ||
</ | </syntaxhighlight> | ||
== Shared Folders == | == Shared Folders == | ||
| Line 64: | Line 64: | ||
E.g. for meza, | E.g. for meza, | ||
< | <syntaxhighlight lang="bash"> | ||
cd ~/src/meza | cd ~/src/meza | ||
vagrant ssh # to get onto the guest | vagrant ssh # to get onto the guest | ||
sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) opt_meza /opt/meza | sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) opt_meza /opt/meza | ||
# now the /home/greg/src/meza folder on the host is available to the vagrant user on the guest at /opt/meza | # now the /home/greg/src/meza folder on the host is available to the vagrant user on the guest at /opt/meza | ||
</ | </syntaxhighlight> | ||
== Disk Images == | == Disk Images == | ||