If Not True Then False

VirtualBox Guest Additions on Fedora 27/26, CentOS/RHEL 7.4/6.9/5.11 - Comment Page: 10

This is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 27/26/25/24/23/22/21/20/19/18/17/16, CentOS 7.4/6.9/5.11, Red Hat (RHEL) 7.4/6.9/5.11. VirtualBox Guest Additions is special software that can be installed inside Linux virtual machines to improve performance and make integration much more seamless. Among the...
Categories:

251 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.
help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.

hillct

A few quick updates – Contrary to the item in the content regarding downgrading the kernel for Centos 6 and 7, you can now acquire the bleeding edge virtualbox guest additions, packaged separately from the virtualbox application package. As of this writing, the latest is here: https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_5.2.1-118868.iso published on October 30 2017.

It’s also worth pointing out that while not many people have need of the i386 architecture release of Centos 7, there is currently and there are no plans for an EPEL 7 repository for i386, which makes it very tedious to build the virtualbox additions, as you’ll need to install and in some cases build each dependency independently. For those interested in going this route, the epel package builds exist absent the repository metadata, here https://buildlogs.centos.org/c7-epel/ as discussed here https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/thread/OJVTY5MWCZXPLKACU6MPRRRHJCUN5JE4/

reply Reply
Joe

I’m having the kernel not being installed, I’ve looked on how to fix this issue but none to my avail. I’m running Fedora 27 (up-to-date) 64bit, looking for a way to fix this problem thanks. This is what I’ve done so far, please correct me if i’m wrong.

[root@localhost ~]# ‘/sbin/vboxconfig’
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
[root@localhost ~]# /var/log/vbox-install.log
bash: /var/log/vbox-install.log: Permission denied

reply Reply
JR

Hi Joe,

What you try to do? Are you installing VirtualBox Guest Additions or VirtualBox? If you follow this guide to install VirtualBox Guest Additions on Fedora 27, then I’m not sure why you try to run /sbin/vboxconfig? And if you want to see/read your vbox-install.log, then you have to use example less, like less /var/log/vbox-install.log

reply Reply
Joe

[root@localhost]# ‘/sbin/vboxconfig’
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use ‘dmesg’ to find out why.

There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
I’ve been trying to “install” the guest additions to start Virtual Box but a message appears that the kernel driver isn’t installed although the file exists. Any help would be appreciated.

reply Reply
JR

Hi Joe,

If you really are installing guest additions, please follow this guide and run ./VBoxLinuxAdditions.run and post output here?

reply Reply
Eamonn

Just did this on Fedora 27 this morning. Needed to set:

KERN_DIR=/usr/src/kernels/`uname -r`/build

(Note the addition of /build at the end) in order for it to work.

Thanks for the help, wouldn’t have been able to figure it out without you.

reply Reply
ben79

How do I get the VBox guest additions kernel modules to load automatically? I thought ‘modprobe vboxguest’ and ‘modprobe vboxsf’ would do it but it didn’t.

reply Reply
ben79

Um… I was trying to do this on a host with VBox 5.1.30. I graded that to 5.2.4 and now the kernel modules do load automatically. You just have to have the right virgin.

reply Reply
Marcel

Great Post! Thanks for this. Struggled with the setup of the guest additions.

Greetings from Germany
~ Marcel

reply Reply