Yesterday i have moved from Ubuntu 14.04 to Fedora 21. I have installed all software needed including VirtualBox (for Windows 7).
When I was trying to start
service vboxdrv setup
I have got this error
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 3.19.7-200.fc21.x86_64 cannot be found at
/lib/modules/3.19.7-200.fc21.x86_64/build or /lib/modules/3.19.7-200.fc21.x86_64/source.
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
The solution for that was to install kernel-devel which solved the problem.