How to Install VirtualBox on Fedora 35 – Holhol24
VirtualBox is a well known open-source virtualization tool that allows you to run a couple of visitor working techniques (digital machines) on a unmarried host system.
It helps the visitor digital machines operating Windows, Linux, BSD, OS/2, Solaris, Haiku, and OSx86 working techniques.
Here, we will be able to see how one can set up VirtualBox on Fedora 35.
Add VirtualBox Repository
Switch to the basis consumer.
sudo su -
Install kernel-headers and DKMS.
dnf set up -y kernel-devel-$(uname -r) kernel-headers
Download Oracle public key.
rpm --import https://www.virtualbox.org/obtain/oracle_vbox.asc
Add the next content material to it.
cat /and many others/yum.repos.d/virtualbox.repo [virtualbox] title=Fedora $releasever - $basearch - VirtualBox baseurl=http://obtain.virtualbox.org/virtualbox/rpm/fedora/34/x86_64/ enabled=1 gpgcheck=1 gpgkey=https://www.virtualbox.org/obtain/oracle_vbox.asc EOF
Install VirtualBox on Fedora 35
BIOS System
First, set up VirtualBox the use of the dnf
command.
dnf set up -y VirtualBox-6.1
Then, upload your consumer account to the vboxuser
team.
usermod -aG vboxusers raj
EFI System
First, set up VirtualBox the use of the dnf
command.
dnf set up -y VirtualBox-6.1
Then, upload your consumer account to the vboxuser
team.
usermod -aG vboxusers raj
On EFI protected boot techniques, you wish to have to signal VirtualBox modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) prior to you’ll load them. So, to signal the modules, it is very important have a system proprietor key this is relied on via EFI firmware.
Follow the under steps to signal the entire VirtualBox modules.
First, generate the MOK (Machine Owner Key).
mkdir /root/module-signing cd /root/module-signing openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=MSI/" chmod 600 MOK.priv
Then, import the generated key to the machine. This command will steered you to set the password, which you’ll later whilst enrolling the important thing.
mokutil --import /root/module-signing/MOK.der
Reboot the machine after which press any key to start out the MOK control software
1. Choose Enroll MOK
2. Choose View Key 0 to test the Machine Owner Key. If the hot button is OK, press input after which make a selection Continue
3. Choose Yes to sign up the important thing(s) after which input the password you equipped all over the import
4. Finally, make a choice Reboot to reboot the machine
Create a script referred to as /root/module-signing/sign-vbox-modules
to signal the entire VirtualBox modules the use of the generated MOK key.
#!/bin/bash for modfile in $(dirname $(modinfo -n vboxdrv))/*.ko; do echo "Signing $modfile" /usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /root/module-signing/MOK.priv /root/module-signing/MOK.der "$modfile" performed
Then, alternate the possession of the script and run it. You can run this script every time you replace the machine.
chmod 700 sign-vbox-modules /root/module-signing/sign-vbox-modules
Finally, get started the VirtualBox Linux kernel module provider.
systemctl get started vboxdrv
Launch VirtualBox
After the set up, you’ll release VirtualBox via going to Activities >> Search for VirtualBox or operating the virtualbox
command within the terminal.
Conclusion
That’s All. I am hoping you will have discovered how one can set up VirtualBox on Fedora 35.