Ask Your Question
0

Unable to Compile Virtual Box Fedora 25

asked 2017-04-25 12:46:07 -0500

fsmart gravatar image

I followed the guide and got all the way to the compiling phase when I got the following error:

sudo /sbin/vboxconfig

Returns:

Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /usr/lib/systemd/system/vboxdrv.service. Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /usr/lib/systemd/system/vboxballoonctrl-service.service. Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /usr/lib/systemd/system/vboxautostart-service.service. Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /usr/lib/systemd/system/vboxweb-service.service. vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. This system is not currently set up to build kernel modules (system extensions). Running the following commands should set the system up correctly:

yum install kernel-core-devel-4.10.10-200.fc25.x86_64 (The last command may fail if your system is not fully updated.) yum install kernel-core-devel vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong. This system is not currently set up to build kernel modules (system extensions). Running the following commands should set the system up correctly:

yum install kernel-core-devel-4.10.10-200.fc25.x86_64 (The last command may fail if your system is not fully updated.) yum install kernel-core-devel

There were problems setting up VirtualBox. To re-start the set-up process, run /sbin/vboxconfig as root.

I tried:

sudo /sbin/vboxconfig

No package kernel-core-devel-4.10.10-200.fc25.x86_64 available.

And:

sudo yum install kernel-core-devel

No package kernel-core-devel available.

edit retag flag offensive close merge delete

Comments

florian gravatar imageflorian ( 2017-04-25 13:49:08 -0500 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2017-04-25 13:48:31 -0500

florian gravatar image

updated 2017-04-25 13:50:04 -0500

The package you need is kernel-devel. (Since yum has been replaced,) your command is: sudo dnf install kernel-devel

Also, make sure you have dkms installed (before you install VirtualBox)

edit flag offensive delete link more

Comments

Since version 5.1 VirtualBox does not rely on dkms anymore. See also: https://www.virtualbox.org/wiki/Chang... "Linux installers: no longer rely on DKMS for module rebuilding"

Axel Sommerfeldt gravatar imageAxel Sommerfeldt ( 2017-04-25 15:41:56 -0500 )edit

How did they solve it then?

florian gravatar imageflorian ( 2017-04-25 23:59:05 -0500 )edit

@florian It simply tries to build the vboxdrv kernel module if no module fitting the current kernel was found. (So after a kernel update the vboxdrv kernel module will not be build until VirtualBox is actually used.) See also: https://www.virtualbox.org/manual/ch0...

For this reason the new mechanism fails when using VirtualBox 5.1 under Wayland: When starting a VM VirtualBox tries to get root privileges first, so it could build the kernel module afterwards. But this fails. (Same problem as with GParted.) See also: https://bugzilla.redhat.com/show_bug....

Axel Sommerfeldt gravatar imageAxel Sommerfeldt ( 2017-04-26 05:08:28 -0500 )edit

Gave me the same error.

fsmart gravatar imagefsmart ( 2017-04-26 13:40:12 -0500 )edit

kernel-devel must match the running kernel. So update your kernel (or simply everything with "dnf update") and reboot, afterwards "sudo /sbin/vboxconfig" should run fine.

Axel Sommerfeldt gravatar imageAxel Sommerfeldt ( 2017-04-27 05:10:28 -0500 )edit
1

answered 2017-04-26 13:40:17 -0500

fsmart gravatar image

I ended up just using gnome boxes. Seems to be working.

edit flag offensive delete link more

Comments

That's the right choice!

florian gravatar imageflorian ( 2017-04-26 14:21:18 -0500 )edit
0

answered 2017-04-25 13:26:09 -0500

sergiomb gravatar image

You also have the RPMFusion alternative : https://rpmfusion.org/Howto/VirtualBox

edit flag offensive delete link more

Comments

didn't work for me

fsmart gravatar imagefsmart ( 2017-04-26 13:40:02 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-04-25 12:46:07 -0500

Seen: 1,305 times

Last updated: Apr 25 '17