Installing Virtualbox with an updated kernel

I’m currently using a kernel 4.14 from http://download.opensuse.org/repositories/Kernel:/HEAD/standard/ I use this kernel to fix important sound issues, so going back to the default one is not an option.

Now, I want to install virtualbox. But yast advises me to make important changes in the kernel version, and I’m afraid I can end up breaking the system, and I NEED the computer so I do not want to break it and spend one day to reinstall everything again. These are the suggested changes:

https://preview.ibb.co/jSDHqG/Captura_de_pantalla_de_2017_11_30_18_28_09.png](https://ibb.co/mjOvcw)

What do you think I should do? More generally, do you know of a proper tutorial to install Virtualbox and run it with non-default kernels?

Try this Repo for Head:
http://ftp.halifax.rwth-aachen.de/opensuse/repositories/Kernel:/HEAD:/KMP/standard/

Try this one for Kernel:stable
http://ftp.halifax.rwth-aachen.de/opensuse/repositories/Kernel:/stable:/KMP/standard/

Thanks for the fast reply!

By the way, let me ask a side question, as it is related to this but I could not find an answer with Google. What’s the difference, advantages, etc between the kernel head and kernel stable repositories? I have currently both repositories installed. Would you advice to keep just one to avoid risk of mixing package versions?

and I NEED the computer so I do not want to break it

Than my question is:
Why an kernel-Repo???
And not the kernel shipped with Leap?

Because with the kernel shipped with leap the sound does not work :expressionless:

https://forums.opensuse.org/showthread.php/527308-No-sound-in-Dell-XPS-15

Kernel:/stable is tested to work on Tumbleweed and usually has no problems also with Leap. Kernel:/head is meant for developers and advanced testers so might have still glitches from time to time, not recommended for everyday use unless you have a compelling reason to use such a bleeding edge kernel. By the way you often find ReleaseCandidate kernels on Kernel:/head while you only find released kernels on Kernel:/stable.

Re VirtualBox, the upstream version 5.2.2 available here Linux_Downloads – Oracle VM VirtualBox works with the 4.14 stable kernel, without YaST complaining about incompatible KMPs. You need kernel-devel and kernel-default-devel packages matching the version of your running kernel though.

Virtualbox from the openSUSE repos have pre-compiled kernel modules which are likely specific to the kernel in that repo.
If you’ve installed a special kernel of some kind, you’ll likely need to install Virtualbox from the Oracle website, which will build kernel modules on the fly during install for whatever kernel is running.

TSU

Thanks for the hints. I have now Virtualbox running. First, I switched to an updated kernel (4.14.3) but from the stable repo. Then, I added the repo http://ftp.halifax.rwth-aachen.de/opensuse/repositories/Kernel:/stable:/KMP/standard/ and installed Virtualbox with all suggested dependencies. After the installation, it gave an error regarding modules, kernel sources, etc, so I had to install the kernel sources and to manually run vboxconfig to recompile some modules. It was easier than it sounds.
Anyway, it works nicely now, although I can not boot Windows on it. But I guess that’s a matter of another threat :wink:

I have also added stable kernel repo (for Ryzen), but nothing else for VirtualBox and it’s running fine