{"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

Install VirtualBox 6.x on Fedora 33<\/h2>\n\n\n\n

Download VirtualBox 6.1 RPM<\/h3>\n\n\n\n

To begin with, download VirtualBox 6.1 for Fedora 32 from their official site<\/a>;<\/p>\n\n\n\n

wget 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

If you try to install, you will get an error as shown below;<\/p>\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

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

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

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 Required Build packages<\/h3>\n\n\n\n

Install the following packages required in the next steps;<\/p>\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

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

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

and run the following command;<\/p>\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

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

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

The new rpm is found in the directory shown by the above line.<\/p>\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

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

sudo \/usr\/lib\/virtualbox\/vboxdrv.sh setup<\/code><\/pre>\n\n\n\n

Add Users to vboxusers Group<\/h3>\n\n\n\n

The final step is to add the current user to vboxusers group;<\/p>\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 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

VirtualBox<\/code><\/pre>\n\n\n\n
\"<\/figure>\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

Other Related Tutorials<\/h3>\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\n

AutoStart VirtualBox VMs on System Boot on Linux<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

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<\/p>\n","protected":false},"author":4,"featured_media":7644,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,237,46,36],"tags":[1953,3005,3009,3007,3008,3006,24,1233,3010],"class_list":["post-7607","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","category-rhel","category-virtualbox","category-virtualization","tag-fedora-32","tag-fedora-33","tag-install-virtualbox-6-1-on-fedora-33","tag-python3-8","tag-rhel","tag-rpmrebuild","tag-virtualbox","tag-virtualbox-6-1","tag-virtualbox-6-1-on-fedora-33","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7607"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=7607"}],"version-history":[{"count":31,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7607\/revisions"}],"predecessor-version":[{"id":21973,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7607\/revisions\/21973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/7644"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=7607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=7607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=7607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}