0

How to install Guest Additions in VrtualBox OpenSuse? tapping "Insert Guest Additions" in Devices does not install, the installation process ends with errors "kernel headers not found for target kernel 5.014.8-1-default. Please install them and execute /sbin/rcvboxadd setup. Running kernel modules will not be replaced until the system is restarted

Chayim
  • 1

1 Answers1

0

The Virtualbox manual has a chapter dedicated to the Guest Additions. 4.2.2 Guest Additions for Linux is where we can find more information on your question. Under header 4.2.2.1 we can read the following on installing guest additions under linux

Before installing the Guest Additions, you prepare your guest system for building external kernel modules.

And it even points us to another chapter in the manual, namely The Oracle VM Virtualbox Kernel Modules. This tells us the big prerequisit is usually the following

GNU compiler (GCC)

GNU Make (make)

Kernel header files

So now we know why you are getting errors, how do we go about installing the guest additions specificly for OpenSuse. Unfortunately, i'm more of a Debian guy, so i set out to do a google search and found How to Install VirtualBox Guest Additions on openSUSE, which kindly shows us which commands to run specificly under opensuse

$ sudo zypper refresh

$ sudo zypper update

$ sudo zypper in kernel-devel gcc make

Now run the installer again and you should be good. Reboot the system and enable the guest addition features you would like to use.

Silbee
  • 1,549
  • 8
  • 12