Fedora 24 (with KDE) clean installation - guest additions do not install?

Discussions about using Linux guests in VirtualBox.
Post Reply
janpeter
Posts: 112
Joined: 27. Apr 2009, 11:51
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10, Ubuntu 20.04

Fedora 24 (with KDE) clean installation - guest additions do not install?

Post by janpeter »

Hi

I have just made a clean install of Fedora 24 (Scientific Spin using KDE) and seems to work.
However, guest-additions seems not to install in a correct way. I follows some Youtube- guide
and used terminal to install guest additions (as root user) using command /VBoxLinuxAddtions.run
and get attached error message that point to a log-file and that log-file also attached.
Loggfile indicating source of error
Loggfile indicating source of error
Skärmavbild 2016-08-30 kl. 11.54.39.png (49.7 KiB) Viewed 2994 times
I have used VBox for many years with little problems, but I am new to use Fedora.
Host machine is Mac OS X 10.11.6 and VBox 5.0.26.

Find some similar posts here but not similar enough for me to solve the problem.

Appreciate some input!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Fedora 24 (with KDE) clean installation - guest additions do not install?

Post by Perryg »

The error indicates you do not have the kernel headers and kernel devel installed that matches your running kernel. Correct that and it should install and work properly.
janpeter
Posts: 112
Joined: 27. Apr 2009, 11:51
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10, Ubuntu 20.04

Re: Fedora 24 (with KDE) clean installation - guest additions do not install?

Post by janpeter »

Thanks. Actually I needed to do the following commands

su
yum install kernel-devel-4.5.5-300.fc24.x86_64
sudo dnf install kernel-revel kernel-headers
cd /run/media/janpeter ./VBoxLinuxAdditions

shut down VM
remove GuestAddtions.iso from the /Storage/Controller:IDE
start again

Now guest addition works, except shared folders, where I get problems with permissions.
I looked in VirtualBox manual section 4.2.2.1 about Installing the Linux Guest Additions.
I am not totally convinced that what I have described above corresponds to what is referred to here
and to page 37 for host installation that should be follows. Let me know!

But I did the check
su
rcvboxadd setup

Got OK for different items, and then recommended re-start of VM.
The problem with guest additions remained

PS. I think this thread belongs to Linux Guests (and not Hosts).
I thought I actually did post it under Linux Guests, but could have done a misstake.
Good if someone could move the thread to the more appropriate place.
I also suspect that all people installing Fedora 24 as guest need to go through this exercise.
janpeter
Posts: 112
Joined: 27. Apr 2009, 11:51
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10, Ubuntu 20.04

Re: Fedora 24 (with KDE) clean installation - guest additions do not install?

Post by janpeter »

Hi

I found out that the problem with the shared folder is about permissions
and the following command in the Fedora guest worked:

$ sudo usermod -a -G vboxsf username
(and username should be the actual username in the guest)

Then a restart of the Fedora-guest to make the command to take action.

This time I made before a clean installation of Fedora 25 (with Gnome 3.22 this time) following the guide on
this youtube video:

https://linux-video-tutorials.blogspot. ... albox.html

Now I think everyone can install Fedora 25 in Virtual Box !

Jan Peter
Post Reply