{{Header}} {{hide_all_banners}} {{Title|title= VirtualBox Installer for Linux }} {{#seo: |description=The VirtualBox Linux Installer offers a user-friendly method to install VirtualBox on Linux systems. It supports Debian, Fedora, and their derivatives such as Ubuntu (starting from version: Ubuntu Jammy (22.04) (LTS)), Linux Mint, RedHat, and Kicksecure. |image=Virtualbox-installer.png }}
virtualbox.org
).
}}
{{mbox
| type = notice
| image = [[File:Ambox_notice.png|40px|alt=Info]]
| text = '''Choose Your Installation:'''
Opt for either '''A)''' or '''B)'''.
* '''A)''' '''VirtualBox Only''': The virtualbox-installer
on this page installs only VirtualBox. It does not include the installation of {{project_name_short}}.
* '''B)''' '''VirtualBox with Kicksecure''': To install both VirtualBox and the {{project_name_short}} VMs, visit the [[Linux|{{project_name_short}} Linux Installer]] wiki page.
}}
{{Linux_Installer_Download
|scriptname=virtualbox-installer
}} {{Linux_Installer_Verify
|scriptname=virtualbox-installer
}}
'''More About the VirtualBox Linux Installer:'''
{{IntroLike|
The VirtualBox Linux Installer is designed to simplify the installation of VirtualBox. Let's explore its features:
}}
{{linux_installer_features}}
'''Intended User Groups:'''
VirtualBox Installer for Linux only automates things which could, in principle, be done manually by the user. Advanced users will not see many advantages.
If the user can manage to install VirtualBox according to the instructions of their operating system, following Oracle's instructions on [https://www.virtualbox.org/wiki/Linux_Downloads virtualbox.org/wiki/Linux_Downloads], using prebuilt packages for their operating system, Oracle's virtualbox.org provided packages, or even compiling VirtualBox from source code, there is little additional benefit to using this installer. The main benefit of the installer is that it resolves many usability issues users might experience during the installation of VirtualBox, which are as follows:
* Following provided instructions requires skills that many laymen users do not possess, such as:
** Locating the installation instructions
** Knowing what to download (whether to download prebuilt packages directly or add a package repository)
** Understanding the requirements for dependency installations, such as kernel headers (which have different names depending on the distribution)
** Knowing about packages like apt-transport-https
and ca-certificates
when using Debian and TLS
** Installation of undocumented dependencies:
*** [https://www.virtualbox.org/ticket/21804 (udev
)]
*** kernel-devel
(Fedora)
*** dkms
(Fedora)
** Editing files with root permissions, such as /etc/apt/sources.list
** Recognizing the codename of their distribution and replacing
with it. Example: deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian contrib
** Avoiding the simple copying and pasting of outdated commands, like sudo apt-get install virtualbox-6.1
, and replacing virtualbox-6.1
with virtualbox-7.1
** Being aware of the existence of Debian backports or fasttrack
** Adding a Linux user account to the Linux user group [https://www.virtualbox.org/manual/ch02.html#install-linux-vboxusersarchive.or vboxusers
] (otherwise, using USB devices from VirtualBox VMs won't work)
* As of September 2023, when Debian 12 ("bookworm
") was released as Debian stable, virtualbox.org does not provide packages or instructions on how to install VirtualBox on Debian testing, Debian unstable ("sid
"), or Linux Mint.
** Installing VirtualBox on Debian unstable is relatively straightforward since VirtualBox is available in Debian unstable. However, it's not in the main
component but only in the contrib
component.
** Installing VirtualBox on Debian testing is not as straightforward. However, it can be done using APT pinning to download only VirtualBox from Debian sid and not install any other packages from sid. Only relatively advanced users are typically aware of APT pinning. The author of this text couldn't even find third-party instructions on search engines on how to achieve this.
* Users often encounter numerous package manager unmet dependency issues. For a demonstration, try the following search engine query: site:https://unix.stackexchange.com/ virtualbox unmet dependencies
* After Debian 12 ("bookworm
") was released as Debian stable, [https://www.virtualbox.org/ticket/21524 VirtualBox was unavailable as prebuilt packages] for approximately 6 months. (The ticket was created on Feb 27, 2023, and closed on Aug 16, 2023.)
** Simultaneously, [https://salsa.debian.org/fasttrack-team/support/-/issues/51 Debian did not provide prebuilt packages] for roughly 3 months. However, this installer managed to install VirtualBox during that period. This was achieved by Kicksecure maintainers downloading VirtualBox from Debian testing, uploading it to the Kicksecure (Debian-based) stable repository, and the installer then installed VirtualBox from the Kicksecure repository.
* Sometimes, prebuilt packages from virtualbox.org fail to install. For reference, see this [https://www.virtualbox.org/ticket/21796 VirtualBox on Fedora bug report] which also [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050096 affected Debian].
** This installer did not face this issue since it prioritizes packages from the user's distribution (like Debian) over prebuilt packages from virtualbox.org.
* Using distribution packages offers the added advantage of allowing users to install VirtualBox guest additions from the same source. This ensures version compatibility and increases the likelihood that features such as virtual screen size adjustment and seamless VM copy/paste will function as expected.
** [https://www.virtualbox.org/ticket/734 VirtualBox Guest Additions Debian Packages are not available from the Oracle Repository]. Oracle provides only an installer, not distribution packages.
* A VirtualBox guest additions installer is not yet provided by {{project_name_short}} developers, but it might be in the future.
* Installing VirtualBox on Debian is complex because [[Dev/VirtualBox#VirtualBox_Unavailable_in_Debian_stable_and_backports_due_to_Debian_Stable_Security_Maintenance_Issues|VirtualBox is unavailable from both the Debian stable and backports (repository)]] and [[Dev/VirtualBox#VirtualBox_Unavailable_in_Debian_main_due_to_Licensing_Issues|it's also unavailable from the Debian main
(component)]].
** It's preferable to avoid adding foreign sources (extra package repositories) from third parties if possible. In the case of Debian and VirtualBox, this is achievable by using Debian's lesser-known fasttrack repository.
* The installer verifies if virtualization support is present. If not, it warns the user and displays a clear message, including a link to detailed documentation.
** ([[VirtualBox/Troubleshooting#Enable_VT-x|VT-x issues]]) This approach is more user-friendly than the [[:File:VirtualBox_VERR_VMX_MSR_LOCKED_OR_DISABLED.png|cryptic error message displayed by VirtualBox]].
* While VirtualBox is nice, it has some usability issues. The author of this wiki page wishes that there wasn't a need for a VirtualBox installer and hopes these issues will be addressed by Oracle.
** For instance, if Oracle addressed the [[Dev/VirtualBox#VirtualBox_Unavailable_in_Debian_main_due_to_Licensing_Issues|compilation toolchain software freedom issue]] and [https://bugs.debian.org/794466 provided stable security support], then installing VirtualBox would be as simple as installing any other software package from distribution repositories. This would make distributions like Debian more inclined to host VirtualBox in their stable repository (and main
component instead of contrib
).
* As a theoretic alternative would be for users to possess enhanced technical skills, negating the need for assistance. However, in practice, laymen users often struggle even with comparatively simpler tasks. Refer, for instance, to this usability research, [https://www.petsymposium.org/2012/papers/hotpets12-1-usability.pdf "Eliminating Stop-Points in the Installation and Use of Anonymity Systems: a Usability Evaluation of the Tor Browser Bundle"], or to this [https://forums.whonix.org/t/usability-compilation-of-materials/6507 "small usability research compilation"].
* For technical reasons why the installer was implemented the way has been, see [[Dev/Linux_Installer#Design|Dev/Linux_Installer, Design]].
'''Related Tools:'''
* [[VirtualBox/Guest_Additions#vbox-guest-installer|vbox-guest-installer
]] (A utility that enhances usability by facilitating the installation of VirtualBox guest additions from Debian's (packages.debian.org) package virtualbox-guest-additions-iso
.)
'''Disclaimer:'''
The VirtualBox Installer for Linux is a product of the {{Kicksecure}} developers. It is not associated with VirtualBox.org
or Oracle
.
[[Category:Documentation]]
{{Footer}}