Skip to content

Instantly share code, notes, and snippets.

@cho2
Last active June 10, 2023 00:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cho2/5afd0fdc3d3d601e9a02bee973bd8917 to your computer and use it in GitHub Desktop.
Save cho2/5afd0fdc3d3d601e9a02bee973bd8917 to your computer and use it in GitHub Desktop.
Virtualbox on Team Silverblue
  • Install virtualbox repo

    cd /etc/yum.repos.d/
    wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
    
  • Edit virtualbox repo

    nano /etc/yum.repos.d/virtualbox.repo
    

    Change line baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch with baseurl=http://download.virtualbox.org/virtualbox/rpm/fedora/28/$basearch

  • Install dependency packages

    rpm-ostree install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
    
  • Install virtualbox

    rpm-ostree install VirtualBox-5.2
    

PS: Tested with Team Silverblue Rawhide, last error:

error: Could not depsolve transaction; 1 problem detected:
0. nothing provides libvpx.so.4()(64bit) needed by VirtualBox-5.2-5.2.0_118431_fedora26-1.x86_64
@claudio-walser
Copy link

claudio-walser commented Sep 20, 2019

Thank you very much, with the following commands it works well and without erros in Fedora 30 Silverblue
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
rpm-ostree install VirtualBox

@kcallis
Copy link

kcallis commented Feb 25, 2021

Any pointers to install the Virtualbox extension as well? I have VB working nicely, but without the 2.0/3.0 drivers from the extension, this is not overly useful.

@peter15p
Copy link

If you download the .rpm from https://download.virtualbox.org/virtualbox/rpm/fedora/
...then you can install it with "rpm-ostree install VirtualBox-6.1-6.1.32_149290_fedora33-1.x86_64.rpm" (change filename to suit)
I also had to run "sudo vboxconfig"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment