improved formatting

This commit is contained in:
2026-03-07 16:13:59 -06:00
parent c6c9310c72
commit 111a7a716c

View File

@@ -1,21 +1,21 @@
# VirtualBox
## Alternative
# Alternative
If the situation doesn't specifically require VirtualBox and you can use any Hypervisior, I strongly suggest using [Virtual Machine Manager](VirtualMachineManager.md) (virt-manager); as it uses KVM, which has support built into the kernel, which means a much simpler install for some distributions and less potential for issues.
## Install
# Install
Note: After install a reboot may be required.
Most distributions package it in their repositories and can be installed as such:
### Arch-based
## Arch-based
```sh
sudo pacman -S virtualbox
```
### Debian
## Debian
Debian doesn't package virtualbox in the offical repositories, so we need to add VirtualBox's repository. Source: https://www.virtualbox.org/wiki/Linux_Downloads
Replace `<mydist>` in the first command with `trixie` or the current version of Debian if you are on a newer **stable** version.
@@ -30,11 +30,11 @@ sudo apt install virtualbox-7.2
```
Note: For the last command you can type up to `sudo apt install virtualbox-` and triple tap TAB to see what version options there are.
### Fedora
## Fedora
Fedora doesn't package virtualbox in the offical repositories, so we need to add the RPMFusion repository which packages additional software, including virtualbox.
RPMFusion is a long-standing repo operated by some of the same contributors as the main Fedora repos; it just contains things that Redhat cannot legally distribute.
#### Install VirtualBox
### Install VirtualBox
```sh
# Import the RPMFusion repository
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
@@ -48,7 +48,7 @@ RPM Fusion free repository for Fedora (2020) <rpmfusion-buildsys@lists.rpmfusion
```
If you don't use secure boot, you can simply reboot and skip to the Check functionality stage
#### Sign VirtualBox modules
### Sign VirtualBox modules
Now, assuming you are using secure boot, we will need to allow the kernel modules used by virtualbox. We will do this using akmods
```sh
# enable akmods if it not already
@@ -64,14 +64,14 @@ That last command will prompt you for a password, it can be whatever, just be su
3. Select `Enroll MOK` and follow the prompts to enroll the key
4. Enter the password you chose when prompted
#### Check functionality
### Check functionality
Once booted you can now ensure the VirtualBox module is working with
```sh
systemctl status vboxdrv
```
And ensure it it started.
### Ubuntu/Mint
## Ubuntu/Mint
```sh
sudo apt install virtualbox