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
-
Then install the kernel headers/source? What can you not understand? – Bib Oct 09 '21 at 12:24
-
How do I install kernel headers/source? – Chayim Oct 09 '21 at 12:27
-
`su -`, then pop in the root password, then run `yast2 sw_single`, then search for `kernel` and install what is required. – Bib Oct 09 '21 at 12:29
-
It's `yast2 sw_single`, not `yast2 sw-single`. Underscore, not dash. – Bib Oct 09 '21 at 12:34
-
After doing so it still gives the same 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 Oct 09 '21 at 12:47
-
Here's a screenshot https://drive.google.com/file/d/1pt__NLdshrn-Wk4j2Xb0wlsPsG2zkFmT/view?usp=sharing – Chayim Oct 09 '21 at 13:00
-
Post the output of `rpm -qa | grep ^kernel`. Post the output of `/etc/os-release`. Edit your question to show both of these. – Bib Oct 09 '21 at 14:11
-
How do I insert this command "/etc/os-release"? – Chayim Oct 09 '21 at 14:47
-
`cat /etc/os-release`. It's a text file. – Bib Oct 09 '21 at 14:48
-
You have to get a grip on what you are doing. Don't post images. The ouput of the rpm command is just text. Add it to your question. And do not restrict it to the last few lines. – Bib Oct 09 '21 at 14:50
-
https://drive.google.com/file/d/12E_dKMjzktYG59pVGQdMNxkryTXxtCXf/view?usp=sharing https://drive.google.com/file/d/11a9y8DEeEQ9dftO0LelobZ7iIO2f1Llb/view?usp=sharing – Chayim Oct 09 '21 at 14:50
-
Will you please stop posting images. It's text, so please add the output to your question. – Bib Oct 09 '21 at 14:51
-
Guest Additions is not installed so I cannot copy all the text – Chayim Oct 09 '21 at 14:54
-
https://drive.google.com/file/d/1WgQqqzrS1mkEZ1iBvwsT-41qirJPJSqK/view?usp=sharing – Chayim Oct 09 '21 at 14:54
-
`Guest Additions is not installed so I cannot copy all the text` is the wrong answer. You can direct it to a file then scp it to your host. And here is some advice. Since your knowledge of Linux appears minimal, do not use tumbleweed. Instead install the 15.3 release. If you looked at the output, you'll see a discrepancy between 5.014.8-1 & 5.14.8-1.1. – Bib Oct 09 '21 at 15:00
-
I cannot copy anything to the host without Guest Additions – Chayim Oct 09 '21 at 15:03
-
From your host run `scp` to your guest. It does not require guest additions to be installed. If you do not have scp on your host, then install putty. – Bib Oct 09 '21 at 15:12
-
How do I work with putty? can you give detailed steps? – Chayim Oct 09 '21 at 15:18
-
Forget tumbleweed and install 15.3. – Bib Oct 09 '21 at 15:28
-
My question now is how to install kernel header – Chayim Oct 09 '21 at 16:20
-
And I see that a lot of users have this problem – Chayim Oct 09 '21 at 16:21
-
I told you earlier. – Bib Oct 09 '21 at 16:23
-
I did what you told earlier did not help – Chayim Oct 09 '21 at 17:39
-
Have you installed opensuse 15.3? – Bib Oct 09 '21 at 17:40
-
When I use command zypper dup it gives me 4 problems and when I cose option 1 to solve it runs the update and asks to reboot and after rebooting and I run zypper dup again the same 4 problems occur again, seemingly that it does not update. this is the output: – Chayim Oct 10 '21 at 17:48
-
This is the 4 problems: 4 Problems: Problem: problem with the installed libtracker-common-2_0-2.3.6-21.2.x86_64 Problem: problem with the installed libtracker-control-2_0-0-2.3.6-21.2.x86_64 Problem: problem with the installed libtracker-sparql-2_0-0-2.3.6-21.2.x86_64 Problem: problem with the installed tracker2-2.3.6-21.2.x86_64 Problem: problem with the installed libtracker-common-2_0-2.3.6-21.2.x86_64 Solution 1: install libtracker-common-2_0-2.3.6-4.1.x86_64 from vendor openSUSE replacing libtracker-common-2_0-2.3.6-21.2.x86_64 from vendor obs://build.opensuse.org/GNOME S – Chayim Oct 10 '21 at 17:49
-
Solution 2: keep obsolete libtracker-common-2_0-2.3.6-21.2.x86_64 Choose from above solutions by number or skip, retry or cancel [1/2/s/r/c/d/?] (c): – Chayim Oct 10 '21 at 17:51
-
Delete every libtracker. – Bib Oct 10 '21 at 18:08
-
I purged them and the 4 problems disappeared, but after rebooting and doing the zyper dup command again they all reappeared – Chayim Oct 10 '21 at 18:36
-
Why are you continually doing an upgrade? Have you installed 15.3? – Bib Oct 10 '21 at 19:00
-
Downloading it now – Chayim Oct 10 '21 at 19:03
-
Installed 15.3 and the same error displays, I also installed ZorinOS 16, and there was no errors – Chayim Oct 11 '21 at 19:36
-
After all updates OpenSUSE 15.3 Guest Additions is working but Tumbleweed remains with errors. – Chayim Oct 13 '21 at 17:07
1 Answers
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.
- 965
- 5
- 11