Virtualbox fails to run.. kernel driver not loaded

Discussions related to using VirtualBox on Mac OS X hosts.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

try this in the Mac Terminal...

Code: Select all

sudo rmdir /tmp
sudo ln -s private/tmp /tmp
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

Removing and linking the /tmp doesn't work though.

Tried the following, same result.

- Uninstall using the uninstall tool
- Repair permissions
- Reboot
- Installation -> Fail

- Uninstall
- Repair permissions
- Reboot
- Login as different user
- Installation -> Fail

Attached is the latest logfile from VB installer. Still fails at the end of the installation.

Oh, and did a

Code: Select all

$ ls -la /private/etc/sudoers
which resulted in

Code: Select all

-r--r-----  1 root  wheel  1275 10 Feb 18:42 /private/etc/sudoers
Is that alright?

Also permissions for some of the mentioned folders:

Code: Select all

$ ls -lad / /private /private/etc
drwxr-xr-x   38 root  wheel  1360 10 Feb 18:23 /
drwxr-xr-x@   6 root  wheel   204 20 Okt 09:34 /private
drwxr-xr-x  103 root  wheel  3502 10 Feb 18:43 /private/etc
Everything else works pretty fine on my computer.
Attachments
install.log.txt.zip
(3.09 KiB) Downloaded 22 times
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

Even changed the group of / to "admin"... According to one of the threads. No success.

Code: Select all

ls -lad / /private /private/etc
drwxrwxr-t   38 root  admin  1360 10 Feb 18:23 /
drwxr-xr-x@   6 root  wheel   204 20 Okt 09:34 /private
drwxr-xr-x  103 root  wheel  3502 10 Feb 18:43 /private/etc
socratis
Site Moderator
Posts: 27330
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: Virtualbox fails to run.. kernel driver not loaded

Post by socratis »

AndersD wrote:Even changed the group of / to "admin"... According to one of the threads.
If you read that in a thread, it's the wrong advice. Do not start messing with your system's permissions or you'll create more problems. One thing that I'm looking at as we speak is the following line from your installation log:

Code: Select all

./postflight: /Library/Application Support/VirtualBox/VBoxDrv.kext failed to load - (libkern/kext) dependency resolution failure; check the system/kernel logs for errors or try kextutil(8).
As I said, I'm looking at it, I just wanted to post and stop you from randomly messing with your existing permissions.
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.
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

Yeah, that's what I thought. I reset it to what it was before :)

I hope you find anything, VirtualBox used to work flawlessly until this happened.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

I suspect for the kinds of errors that are reported in this thread, they are caused either by third-party add-ons, permission errors, corrupt plist files, a corrupt OSX install or a combination of those kinds of problems. Since there are millions of combinations of those it would be very difficult to track down. I also expect if the user did a clean install of OSX on a second partition or an external drive they would no longer have a problem installing VirtualBox. Just my two cents.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

I haven't noticed anything else on my computer (except for the odd Yosemite bugs here and there) and everything else works fine. It's only Virtualbox that's bugging this way. Ok, if there's a corrupted OSX install, why is everything else working fine? Something has to break first though if there are to be such problems however. Just a shame that would be VB and not iTunes, Microsoft Office or any other bloated junk. Virtualbox worked fine one day and not the next. I don't think I have installed anything weird during that time.

Oh, I won't reinstall OSX. That's not happening. It would probably solve this and some other Apple bugs, but I don't have the time and energy to do a complete reinstall :)
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

Just downloaded and tried Parallels, didn't work either. Okay, so more things are bugging (of course). I blame Apple... It all worked fine, then Steve died... :(
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

I always find it interesting when things work perfectly for the large majority (such as myself), and the few who have a problem want to blame Apple. :D

I've been running VirtualBox on OSX 10.10 for example since the first Yosemite developer preview without a problem up to 10.10.3. I have it installed on 3 different Macs.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
AndersD
Posts: 9
Joined: 10. Feb 2015, 11:20

Re: Virtualbox fails to run.. kernel driver not loaded

Post by AndersD »

Yay!

I had success! I tried the "Reinstall OSX" without wiping the entire disk. After that I could get both VirtualBox and Parallels installed and all seems to work! It seems there was some error with OSX and/or permissions. My developer IDE however still doesn't work. But that's another issue. Thanks for all the encouraging help :)
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

AndersD wrote:Yay!

I had success! I tried the "Reinstall OSX" without wiping the entire disk. After that I could get both VirtualBox and Parallels installed and all seems to work! It seems there was some error with OSX and/or permissions. My developer IDE however still doesn't work. But that's another issue. Thanks for all the encouraging help :)
It's always the last place you look. :)

glad it's working for you.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
janpeter
Posts: 110
Joined: 27. Apr 2009, 11:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows 10, Ubuntu 20.04

Re: Virtualbox fails to run.. kernel driver not loaded

Post by janpeter »

Hi

I just upgraded from Mountain Lion to Maverick on an older Mac mini running VBox 4.3.26 and
got the problem:

"Failed to open a session for the virtual machine 'Windows 7 - XF'.
The virtual machine 'Windows 7 - XF' has terminated unexpectedly during
startup with exit code 1 (0x1)"

"Kernel driver not installed (rc=>1908).
Make sure the kernel module has been loaded successfully"

which I understand this thread is all about, if I am not wrong.

Actually I made an upgrade to Maverick 2014 January on my MBP that was then on VBox 4.3.6 and then I had
no problem with VBox.

So I just thought the problem with VBox and Maverick has come in the VBox upgrades from v 4.3.6 and later,
if that might help fixing VBox to be more stable towards Apples OS X upgrades.

Also I want to say that I have lived with VBox since 2009 through many upgrades of both VBox and OS X and never
encountered much problems. Thus I am very surprised to find a problem now.

Appreciate some comment - and I will try to understand the suggested remedy in this thread.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

The first thing I would try is Disk Utility>Repair Disk Permissions.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
janpeter
Posts: 110
Joined: 27. Apr 2009, 11:51
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows 10, Ubuntu 20.04

Re: Virtualbox fails to run.. kernel driver not loaded

Post by janpeter »

I have done both verify disk and repaired permissions from two different accounts
that both run VBox, but no look.

Do you think it is worthwhile to re-install VBox while keeping the VMs or it is rather
a re-installation of Mac OS X that is needed?
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Virtualbox fails to run.. kernel driver not loaded

Post by loukingjr »

janpeter wrote:I have done both verify disk and repaired permissions from two different accounts
that both run VBox, but no look.

Do you think it is worthwhile to re-install VBox while keeping the VMs or it is rather
a re-installation of Mac OS X that is needed?
It's much easier and faster to reinstall VirtualBox. Make sure to Uninstall it using the VirtualBox_Uninstall.tool first. If that doesn't work it would be time to think about re-instally OSX or doing a clean install of OSX.

It's really hard to say because very few people have the error and different things worked for them that fixed it.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply