Kernel driver not installed (rc=-1908) Mac High Sierra 10.13 - macos

I'm currently running vargant version 2.1.5 on my mac high sierra 10.13.6
So after completing the vagrant init and vagrant up command I'm suppose to have a fully running virtual machine in virtualbox. But after running vagrant up I get this instead.
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "3574f45d-aade-4053-af8b-0c88330e855f", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'saltstates_default_1539870640620_6152' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
Any idea what this is about?

So if you have mac high sierra or higher, mac security and system preferences allow applications to make system changes with in a 30 mins of installation of the application. So I had to uninstall virtual box then reinstall it. Then I went to system preferences and allow kernel driver changes.

It's not necessary to reinstall VirtualBox in order to resolve this problem. As described in the VirtualBox forum for macOS hosts, you can do the following instead:
Restart your machine and enter Recovery Mode (Press and hold ⌘-R on reboot.)
Open the Terminal.
Type the following: spctl kext-consent add VB5E2TV963
Press Enter.
Restart your machine.

When you install application, on Mac OS, you have to accept permission.
Follow the step.
After:

Related

Kernel driver not installed (rc=-1908) Getting Errors in macOS Big Sur 11.0.1

I just want to work with VirtualBox but now I am getting this type of error.
I could not find a proper solution.
Kernel driver not installed (rc=-1908)
Make sure the kernel module has been loaded successfully.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
MAC with BIG SUR -- Kernel driver not installed (rc=-1908)
Make sure the kernel module has been loaded successfully.
where the error is:
suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
Download and install the latest VirtualBox 6.1.18 or higher. And then follow the below steps to resolve.
Step 1 - run:
sudo kextload -b org.virtualbox.kext.VBoxDrv
Step 2: Go into System Preferences->Security & Privacy
Step 3: Unlock the security center
Step 4: Approve the software by Oracle
Step 5:
sudo kextload -b org.virtualbox.kext.VBoxNetFlt
sudo kextload -b org.virtualbox.kext.VBoxNetAdp
sudo kextload -b org.virtualbox.kext.VBoxUSB
Step 6: Reboot
Registering the .kext directly via terminal solved this issue for me.
sudo kmutil load -p '/Library/Application Support/VirtualBox/VBoxDrv.kext'
There should be a prompt in System Preferences to allow the kernel, which will require a reboot.
Reboot and run command cd ˜/Homestead && vagrant up
On MacOS Monterey 12.4, I just installed the latest version and opened VirtualBox (version 6.1.34 r150636 (Qt5.6.3)). Then:
Step 1: Went into System Preferences->Security & Privacy.
Step 2: Unlocked the security center.
Step 3: Approved the software by Oracle.
I haven't uninstalled my old virtualBox or restarted the machine or typed any code.
Big Sur disables the VirtualBox kernel extensions as part of the installation process. You can verify this by running:
kextstat | grep -v com.apple
If the kernel extensions are installed, you will see something like this:
Executing: /usr/bin/kmutil showloaded
No variant specified, falling back to release
Index Refs Address Size Wired Name (Version) UUID <Linked Against>
184 3 0xffffff7fa232d000 0xb2000 0xb2000 org.virtualbox.kext.VBoxDrv (6.1.18) 9C1C33DF-8061-30A2-9266-C9284816A6A2 <8 6 5 3 1>
187 0 0xffffff7fa240a000 0x5000 0x5000 org.virtualbox.kext.VBoxUSB (6.1.18) 51E577B4-43B6-359F-B817-9C63A69E7943 <186 184 62 8 6 5 3 1>
188 0 0xffffff7fa2405000 0x4000 0x4000 org.virtualbox.kext.VBoxNetFlt (6.1.18) 96E530DE-E34D-3447-89A5-FCF6646AE47E <184 8 6 5 3 1>
189 0 0xffffff7fa23ff000 0x2000 0x2000 org.virtualbox.kext.VBoxNetAdp (6.1.18) 63EFABA5-3341-3BEB-B47A-AAFCDD7312A5 <184 6 5 1>
If you don't see the extensions loaded, the easier fix is to delete your current VirtualBox app, download and install the lastest version and then go the Security & Privacy System Preferences Pane. You should see a message that some applications require a restart to work correctly.
Restart your Mac and VirtualBox should now work. You can re-run the kexstat command just to be sure the extensions were loaded.
Here is how I solved the issue on MAC with MONTEREY
Update 09 december 2021 : installing the latest version (VirtualBox-6.1.30-148432-OSX.dmg when updating this post) completely solve the issue on my machine
Initial post :
Download the latest installer of VirtualBox (VirtualBox-6.1.28-147628-OSX.dmg when writing this post)
Launch the installer
Double click on the file VirtualBox_Uninstall.tool in order to uninstall VirtualBox
Reboot
Reinstall VirtualBox
Solution worked for Big Sur (no need to delete anything):
Update VirtualBox
Install VirtualBox Extension Pack https://www.virtualbox.org/wiki/Downloads
Settings -> Security -> General settings -> Unlock settings
On "General settings" form turn allow application usage checkbox from "App Store and others..." to "App Store" and back to "App Store and others..." (to make sure Mac recognised the changes made before on steps 1-2)
Go to "Additional settings" ("General settings" form button right after application usage checkbox), system will show Applications changes made before (steps 1-2), push "Ok" and system will ask for reboot
After reboot VirtualBox will work
I also got the same error while trying to run Windows 10 on macOS Big Sur 11.6, but I was easily able to fix the issue by navigating to System Preferences > Security & Privacy. There, under allow apps downloaded from section I found something like Oracle wants to install additional updates, and I gave permission. My Win 10 VM started to work. I hope this help.
after googling for few days and no solution worked for me on macos
I run the below commands
sudo kextload -b org.virtualbox.kext.VBoxDrv
sudo kextload -b org.virtualbox.kext.VBoxNetFlt
sudo kextload -b org.virtualbox.kext.VBoxNetAdp
sudo kextload -b org.virtualbox.kext.VBoxUSB
then
go to "https://www.virtualbox.org/wiki/Downloads"
and download "VirtualBox 6.1.30 Oracle VM VirtualBox Extension Pack" all platform
then open your virutalbox preferences --> choose extension --> and add the extension you just downloaded and eveything will be ok
Another restart of the system solved my problem as I was already at the most current version of virtualbox. My macOS upgrade was from Big Sur 11.6.1 to 11.6.4.
None of the methods here worked for me, the option to approve the driver in System Preferences / Security & Privacy never appeared.
The only way I could get to approve the extension was rebooting in recovery mode, and then giving consent to the Oracle Developr ID running in the Terminal the following command:
spctl kext-consent add VB5E2TV963
Then after a reboot, I could approve the driver and VirtualBox works just fine. Tested in Monterey 12.3.1
Full credits to this site: https://appuals.com/kernal-driver-not-installed-rc-1908-error-mac/
I started getting this issue when my Mac updated from Big Sur to Monterey. I just downloaded and installed the latest version of VirtualBox on my Mac and it started working like earlier.
I couldn't make the option to allow the kext appear in System Preferences either. Rebooting, reinstalling VBox and running sudo kextload -b org.virtualbox.kext.VBoxDrv didn't help.
I discovered another cause: in my case, I had to enable WiFi for internet access and also allow syspolicyd to contact api.apple-cloudkit.com in Little Snitch (it is allowed by default, but I'd disabled that rule). Then running sudo kextload -b org.virtualbox.kext.VBoxDrv forced syspolicyd to verify the signature (or whatever my data it may be uploading) — the option appeared in Security & Privacy and I could allow it finally.
So if anyone has such an issue, try verifying that syspolicyd can contact api.apple-cloudkit.com.
(I also posted this discovery on my blog: https://egeek.me/2022/06/25/kexts-for-virtualbox-do-not-load/).
I had face this issue before and I tried all the threads in this question and doesn't work, then I tried to add the iso file from the setting tab like shown in screenshots, and it worked well.
VirtualBox kernel error
VirtualBox kernel error

How to export display from an vagrant Linux box to MacOS host?

I've got a Mac OS with Catalina installed. In this MAC Os host, I run a VirtualBox centos linux box (installed with Vagrant). In the Centos virtual Box I want to launch app like (google-chrome or any x application) with the display exported to the MacOS host.
I've set the X11Forwarding yes in /etc/ssh/sshd_config (in MacOS Box AND in the Centos BOX).
On MacOS i've installed and running XQuartz, which is working well (I can start xterm from MacOs XQuartz configuration for example).
I ssh from MacOs into my Centos box with -X. So X11 port forwarding must be ok.
When I start any graphical application from Centos (google-chrome for example), I always have this message :
(google-chrome:26817): Gtk-WARNING **: 17:49:49.940: cannot open display:
I've tried some export DISPLAY configuration but without success : always cannot open dispay
Any help would be greatly appreciated because I'm stuck.
I solve my problem. It is just a matter of NIC interface used when starting VM through Vagrant. If I use the Wifi NIC -> KO. If I use the Ethernet NIC it is ok.

Vagrant up not startedcode E_FAIL (0x80004005)

I'm using W10 and I had a problem with Vagrant-suddenly I cannot do vagrant up. I received error:
There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "e11dfd77-f4e8-4125-8169-d81f7dc44e55", "--type", "headless"]
Stderr: VBoxManage.exe: error: Interface ('VirtualBox Host-Only Ethernet Adapter #3') is not a Host-Only Adapter interface (VERR_INTERNAL_ERROR)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole"
used to work fine until yesterday. I had a Windows update as well yesterday, but after that update vagrant works well.
What i tried:
checked Hyper-V platform - is disabled.
reinstalled VM Box, Vagrant but nothing helped.
Any ideas?
For anyone getting this more recently where the stderr does not mention VT-x, but instead is something like this:
Stderr: VBoxManage.exe: error: Call to NEMR0InitVMPart2 failed: VERR_NEM_INIT_FAILED (VERR_NEM_VM_CREATE_FAILED)
I finally found that it was a virtualbox update that broke it for me; trying to fix NEM in Windows 11 I guess, but breaking it in Windows 10? See discussion here on virtualbox's forum.
Basically if you have W10 and upgraded VirtualBox to 6.1.28, you'll want to downgrade to 6.1.26.
I know it's an old post but this link worked for me.
Open CMD as administrator and run:
bcdedit /copy "{current}" /d "Hyper-V"
bcdedit /set "{current}" hypervisorlaunchtype off
bcdedit /set "{current}" description "non Hyper-V"
Just go to network setting in VMware and uncheck Enable Network Adapter in the adapter 3 setting.
I solved it without downdrading VirtualBox.
Instead, I used the advice here. In short, here it is:
Open the "Turn Windows features on or off" settings (type optionalfeatures in the start menu)
Untick all the followings:
Application Guard
Credential Guard
Device Guard
* Guard
Containers
Hyper-V
Virtual Machine Platform
Windows Hypervisor Platform
Windows Sandbox
Windows Subsystem for Linux (WSL)
Restart twice.
As windows updates were installed few days ago and i realize that i have an outdated version of VirtualBox, upgrading was enough for me.
VirtualBox 6.1.34 fixed the issue in my Windows 10 Enterprise

kubernetes installation in windows 10 failed due to virtual machine set up

Hi I am new to kubernetes. I have read online tutorials to understand kubernetes and its benefits. To get hands on I have done a set up in my windows machine. It worked well half-way and received error while configuring kubernets VM.
I have downloaded Minikube installers and issued following command in windows 10 power shell
.\minikube.exe start --kubernetes-version="v1.6.0"
--vm-driver="virtualbox" --show-libmachine-logs --alsologtostderr
Retrying.
E1104 23:10:01.364507 16152 start.go:122] Error starting host: Error creating host: Error creating machine: Error in driver during machine creation: Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm minikube --type headless failed:
VBoxManage.exe: error: The virtual machine 'minikube' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\Kube\ .minikube\machines\minikube\minikube\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
I have oracle virtual box already installed in my machine.Not sure whether it causes this issue.
upon reading few other forums, i have deleted .minikube directory and reissued the same commands in windows power shell but it didnt help.
can anyone please guide me to install kubernetes in windows 10 machine.
I have no hyper-v in my machine(Windows home edition).
Looks like my oracle virtual box has network access issues. Hence it could not set up kubernetes vm. I found this issue when i start my "Docker quick start terminal", it shows same error as i posted above. Hence i uninstalled and then installed latest version of oracle virtual box. It resolved the issue. kubernetes cluster has been created in my windows 10 machine.
I uninstalled the virtual box and installed docker toobox for windows from here
https://docs.docker.com/toolbox/toolbox_install_windows/#step-2-install-docker-toolbox
This will install Oracle VM virtual box too.
Open “Docker Quickstart Terminal”
This opens a Unix Bash.
Use this terminal for building docker images and running minikube.

how to resolve issue where Vagrant fails to bring up VirtualBox on OS X El Capitan?

I am getting the following issue trying to start a VM using vagrant & VirtualBox on my MacBook Air (13-inch, Early 2015) running OS X 10.11.6. I have tried VirtualBox version 5.0.26, 5.1.0 and 5.1.2. I have searched around and tried all the suggestions I could find. what do I need to do to fix this issue?
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "23e70124-39c9-46ea-a45d-cf34c0e8a251", "--type", "headless"]
Stderr: VBoxManage: error: The VM session was aborted
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface ISession
This seems to be a problem with setting the networking to NAT mode (which is done by vagrant). To bring up the vm, go into virtualbox, edit the vm network settings to something like bridged and start the vm and it should work.
However, the downside is that the vagrant up command does not work (down works once the vm has been started manually).
At this point, I am also struggling to find a solution (may be something to do with El Capitan)
Had the same problem, though I am on os x 10.10.5 Yosemite.
Downgrading to VirtualBox 4.3.40 worked for me.
https://www.virtualbox.org/wiki/Download_Old_Builds_4_3

Resources