{"id":7607,"date":"2021-01-13T03:13:56","date_gmt":"2021-01-13T00:13:56","guid":{"rendered":"https:\/\/kifarunix.com\/?p=7607"},"modified":"2024-03-19T20:58:14","modified_gmt":"2024-03-19T17:58:14","slug":"install-virtualbox-6-1-on-fedora","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-virtualbox-6-1-on-fedora\/","title":{"rendered":"Install VirtualBox 6.1 on Fedora 33"},"content":{"rendered":"\n
In this tutorial, you will learn how to install VirtualBox 6.1 on Fedora 33. VirtualBox 6.1 is available for installation in most Linux platforms package repositories.<\/p>\n\n\n\n
To begin with, download VirtualBox 6.1 for Fedora 32 from their official site<\/a>;<\/p>\n\n\n\n If you try to install, you will get an error as shown below;<\/p>\n\n\n\n As the error denotes, Python3.8 is tied to this rpm package (=3.8) and it can’t be found on the system.<\/p>\n\n\n\n You can check the available Python version as follows;<\/p>\n\n\n\n The latest version is Python 3.9. Downgrading to Python 3.8 would affect other packages relying on version 3.9.<\/p>\n\n\n\n You therefore need to rebuild the package to use Python 3.9 and above.<\/p>\n\n\n\n Install the following packages required in the next steps;<\/p>\n\n\n\n Now you can use rpmrebuild edit Python 3.8 requirement. Navigate to where you downloaded the rpm file, in my case is the current working directory;<\/p>\n\n\n\n and run the following command;<\/p>\n\n\n\n The command will run for some few minutes. When it completes, you will see the last line similar to the following;<\/p>\n\n\n\n The new rpm is found in the directory shown by the above line.<\/p>\n\n\n\n The installation will progress to completion.<\/p>\n\n\n\n You also need to rebuild kernel modules for this new package;<\/p>\n\n\n\n The final step is to add the current user to vboxusers group;<\/p>\n\n\n\n VirtualBox 6.1 is now successfully installed on Fedora 33. You can launch from desktop application or run the following command in terminal;<\/p>\n\n\n\n That marks the end of our tutorial on how to install VirtualBox 6.1 in Fedora 33.<\/p>\n\n\n\n Install VirtualBox Guest Additions on Kali Linux 2020.3<\/a><\/p>\n\n\n\n Install Kali Linux 2020.3 on VirtualBox<\/a><\/p>\n\n\n\n How to Automate Virtual Machine Installation on VirtualBox<\/a><\/p>\n\n\n\nwget https:\/\/download.virtualbox.org\/virtualbox\/6.1.16\/VirtualBox-6.1-6.1.16_140961_fedora32-1.x86_64.rpm<\/code><\/pre>\n\n\n\n
Last metadata expiration check: 0:19:24 ago on Tue 12 Jan 2021 10:41:01 PM GMT.\nError: \n Problem: conflicting requests\n - nothing provides python(abi) = 3.8 needed by VirtualBox-6.1-6.1.16_140961_fedora32-1.x86_64\n(try to add '--skip-broken' to skip uninstallable packages)<\/code><\/pre>\n\n\n\n
ls \/usr\/bin\/python*<\/code><\/pre>\n\n\n\n
\/usr\/bin\/python\n \/usr\/bin\/python2\n \/usr\/bin\/python2.7\n \/usr\/bin\/python2.7-config\n \/usr\/bin\/python2-config\n \/usr\/bin\/python3\n \/usr\/bin\/python3.9\n \/usr\/bin\/python-argcomplete-check-easy-install-script\n \/usr\/bin\/python-argcomplete-tcsh<\/code><\/pre>\n\n\n\n
Install Required Build packages<\/h3>\n\n\n\n
sudo dnf -y install rpmrebuild binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms qt5-qtx11extras libxkbcommon<\/code><\/code><\/pre>\n\n\n\n
Rebuild VirtualBox<\/h3>\n\n\n\n
ls<\/code><\/pre>\n\n\n\n
VirtualBox-6.1-6.1.16_140961_fedora32-1.x86_64.rpm<\/code><\/pre>\n\n\n\n
sudo rpmrebuild --change-spec-preamble='sed -e \"s\/32\/33\/\"' --change-spec-requires='sed -e \"s\/python(abi) = 3.8\/python(abi) >= 3.8\/\"' --package VirtualBox-6.1-6.1.16_140961_fedora32-1.x86_64.rpm<\/code><\/code><\/pre>\n\n\n\n
result: \/root\/rpmbuild\/RPMS\/x86_64\/VirtualBox-6.1-6.1.16_140961_fedora33-1.x86_64.rpm<\/code><\/code><\/pre>\n\n\n\n
Install VirtualBox 6.1<\/h3>\n\n\n\n
cd ~\/rpmbuild\/RPMS\/x86_64\/<\/code><\/pre>\n\n\n\n
sudo dnf -y install .\/VirtualBox-6.1-6.1.16_140961_fedora33-1.x86_64.rpm<\/code><\/pre>\n\n\n\n
sudo \/usr\/lib\/virtualbox\/vboxdrv.sh setup<\/code><\/pre>\n\n\n\n
Add Users to vboxusers Group<\/h3>\n\n\n\n
sudo usermod -aG vboxusers $USER<\/code><\/pre>\n\n\n\n
Running VirtualBox 6.1 on Fedora 33<\/h2>\n\n\n\n
VirtualBox<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
Other Related Tutorials<\/h3>\n\n\n\n