Issues with new installation of VirtualBox 5.2/5.1 on centos 7

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mgrosen
Posts: 2
Joined: 9. Aug 2018, 07:55

Issues with new installation of VirtualBox 5.2/5.1 on centos 7

Post by mgrosen »

I am unable to build the kernel modules for virtualbox.

This is the error i get when i try to start the setup:
/usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
grep: Unmatched ) or \)
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.


And these are the contents of the log:
cat /var/log/vbox-setup.log
Building the main VirtualBox module.
Error building the module:


The kernel version i am running is:
uname -r
3.10.0-862.9.1.el7.x86_64


I was unable to find any info about this specific issue.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Issues with new installation of VirtualBox 5.2/5.1 on centos 7

Post by socratis »

Where did you get your VirtualBox from? I hope you got it from the official VirtualBox website https://www.virtualbox.org/wiki/Linux_Downloads and not from the CentOS store/repository. If you did, that's a forked version of VirtualBox. You can either ask in their forums for help, or completely remove/uninstall/delete/purge their version and install the official one.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mgrosen
Posts: 2
Joined: 9. Aug 2018, 07:55

Re: Issues with new installation of VirtualBox 5.2/5.1 on centos 7

Post by mgrosen »

I installed it from the virtualbox repository mentioned in the link you provided.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Issues with new installation of VirtualBox 5.2/5.1 on centos 7

Post by socratis »

mgrosen wrote:/usr/lib/virtualbox/vboxdrv.sh setup
Then why are you doing that? You shouldn't have to do that, unless something went wrong and you were instructed to do that.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply