VirtualBox: Difference between revisions

From Dev Wiki
Jump to navigation Jump to search
(Update installation information)
(Add troubleshooting step)
Line 1: Line 1:
[https://www.virtualbox.org/ VirtualBox] is a free means to create and manage VirtualMachines.<br>
[https://www.virtualbox.org/ VirtualBox] is a free means to create and manage VirtualMachines.<br>
It's compatible with Windows, Linux, and Mac systems.
It's compatible with Windows, Linux, and Mac systems.


== Installing VirtualBox ==
== Installing VirtualBox ==
Line 15: Line 16:
* <code>sudo apt update && sudo apt install virtualbox-<version></code>
* <code>sudo apt update && sudo apt install virtualbox-<version></code>
** Where '''<version>''' is the latest version of VirtualBox available. You should be able to just tab complete in the terminal to see versions available.
** Where '''<version>''' is the latest version of VirtualBox available. You should be able to just tab complete in the terminal to see versions available.


== Using VirtualBox ==
== Using VirtualBox ==
Line 32: Line 34:
* Add the logged in user to the VirtualBox group:
* Add the logged in user to the VirtualBox group:
** <code>sudo usermod -a -G vboxsf <user_name></code>
** <code>sudo usermod -a -G vboxsf <user_name></code>
== Possible Errors ==
=== Updated Ubuntu and Now it's Giving Nonsensical "Wrong Kernel" Errors ===
Try the steps at https://askubuntu.com/a/1131716

Revision as of 21:58, 11 September 2020

VirtualBox is a free means to create and manage VirtualMachines.
It's compatible with Windows, Linux, and Mac systems.


Installing VirtualBox

Windows

Follow the steps on the VirtualBox Downloads page.

Ubuntu

Ubuntu comes with a repository of VirtualBox included, but the version it pulls is generally fairly outdated. It can be installed with:

  • sudo apt install virtualbox virtualbox-ext-pack

To use a repository that uses current versions of VirtualBox, run the commands:


Using VirtualBox

  • Download the iso for your desired operating system.
  • Setup a new VM and run through the standard OS setup process.
  • Remember to proper memory, processors, and vram, otherwise it may run poorly/incorrectly.
    • For example, VMs running Ubuntu18 may black screen if only allocated the default 16 MB vram.
  • Once installed, launch the VM and:
    • Install the Guest Editions CD through the menu with Devices > Insert Guest Editions CD Image...
    • Run normal system updates on your VM.
  • Finally, restart the VM to be ready for normal use.

Ubuntu Quirks

To make use of Guest Editions in ubuntu a few additional steps might be needed.

  • Install additional apt dependencies on the VM:
    • sudo apt install build-essential dkms
  • Add the logged in user to the VirtualBox group:
    • sudo usermod -a -G vboxsf <user_name>


Possible Errors

Updated Ubuntu and Now it's Giving Nonsensical "Wrong Kernel" Errors

Try the steps at https://askubuntu.com/a/1131716