I tried to set up an virtual machine on Ubuntu 12.10.I installed Oracle Vm VirtualBox Manager.
Then, i followed the steps and i choose .iso file from settings>storage.Then clicked live cd/dvd option.Then OK,when i clicked to start button i get such an error :
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a
permissionproblem with /dev/vboxdrv. Please reinstall the kernel module by
executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package
first. This package keeps track of Linux kernel changes and recompiles the vboxdrv
kernel module if necessary.
I reinstalled program and rebooted pc, but not worked.Also, updated kernel driver but not worked.What can be done to solve it ?
asked Dec 2, 2012 at 14:25
2
Thought I’d give my 2 cents for those who use MACs
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
answered Nov 12, 2013 at 22:31
AlexAlex
8438 silver badges15 bronze badges
11
sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
source: http://ubuntuforums.org/showthread.php?t=1885936&page=6
ps. I have this issue everytime I get a Linux kernel update in Ubuntu. The instructions that it gives do not work for me but these two commands work everytime. It would be nice if everytime I got a kernel update these two commands would automatically run afterwards…
answered Mar 25, 2013 at 13:09
Elijah LynnElijah Lynn
12.4k10 gold badges61 silver badges91 bronze badges
2
I have a solution that works for MacOS users:
-
You have to restart your system and press Command (⌘) + R during the loading. It will start the Recovery mode.
-
Now that you’re on the Recovery Mode, click on Utilities (top bar) and Terminal.
-
You have your terminal opened? Enter, it will add Oracle in the authorisation list to access the kernel.
spctl kext-consent add VB5E2TV963
-
Restart again.
You’re welcome.
answered Jun 25, 2019 at 16:07
idknidkn
4222 gold badges7 silver badges13 bronze badges
3
(I’m on a Mac with this solution) I tried the first few answers on this board (so you might need those as well first), but then finally I Allowed Oracle to «load software» under System Preferences -> Security & Privacy -> in the bottom right, click «Allow…»
Then a dialog box with checkbox options might come up, search for Oracle and check the box next to it. Click OK out of everything. (I also updated the preference above the «Allow…» button to Allow apps downloaded from: to «App store and identified developers«)
After all of this I rebooted and I no longer see this -1908 error when running a VM.
Again, I’m on a Mac, running Big Sur 11.2.1.
Dharman♦
31.1k25 gold badges87 silver badges137 bronze badges
answered Feb 18, 2021 at 12:04
skittlebizskittlebiz
3594 silver badges8 bronze badges
2
Personally, on my Mac installing the latest version of VirtualBox solved the problem
answered Aug 19, 2018 at 19:49
Vic SeedoubleyewVic Seedoubleyew
9,8986 gold badges55 silver badges76 bronze badges
1
Goto BIOS setup and Make secure boot Disable
It worked for me.
answered Mar 31, 2019 at 11:42
Had recently the same problem on Ubuntu 18.04. Apparently, virtual box 6.+ has some issues with gcc-7. These steps did the job for me:
Removing virtualbox
sudo apt-get purge virtualbox-*
installing gcc-8
sudo apt-get install gcc-8 g++-8
setting default gcc to gcc-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
and reinstalling virtualbox with the debian installer did it for me!
answered Feb 20, 2020 at 20:05
ThomasThomas
7056 silver badges21 bronze badges
0
did you try the command /etc/init.d/vboxdrv setup
What was the output ?
answered Dec 2, 2012 at 14:36
5
First you have to install dkms packages (but optional)
sudo apt-get install dkms
Then run this
sudo /etc/init.d/vboxdrv setup
But in my case I had to run only second one.
answered Sep 15, 2015 at 5:15
Follow the following steps for Linux:
cd /etc/yum.repos.d/
vim epel.repo
- Make every
"enabled=1"
yum install dkms
Ivan Aracki
4,86111 gold badges59 silver badges73 bronze badges
answered Jan 24, 2016 at 9:52
there were only linux-lts kernel in my system so far. i just install linux-lts-headers using pacman and then i rebooted pc.it worked for me.
answered Jul 7, 2019 at 3:24
1
This one in recovery mode answered by @idkn worked for me.
spctl kext-consent add VB5E2TV963
answered Dec 8, 2019 at 11:13
vipin goyalvipin goyal
67111 silver badges17 bronze badges
The below code seems to fix the error. It might recur when you update your distrbution, so make sure to rerun it.
sudo modprobe vboxdrv
answered Dec 22, 2019 at 18:22
0
did you try the command:
sudo kextload /Library/Extensions/VBoxDrv.kext/
answered Apr 17, 2014 at 17:36
GereGere
2,11424 silver badges24 bronze badges
2
Firstly open a terminal and write this command:
sudo apt-get remove virtualbox-dkms
and after finish this operation, write this command:
sudo apt-get install virtualbox-dkms
This solved the problem.
Do not worry, your files will not be lost.
Ivan Aracki
4,86111 gold badges59 silver badges73 bronze badges
answered Sep 13, 2018 at 9:12
I had the same problem and I fixed it by running this command:
sudo /etc/init.d/vboxdrv setup
Ivan Aracki
4,86111 gold badges59 silver badges73 bronze badges
answered Mar 24, 2015 at 16:20
FaribaFariba
6931 gold badge12 silver badges27 bronze badges
I tried to set up an virtual machine on Ubuntu 12.10.I installed Oracle Vm VirtualBox Manager.
Then, i followed the steps and i choose .iso file from settings>storage.Then clicked live cd/dvd option.Then OK,when i clicked to start button i get such an error :
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a
permissionproblem with /dev/vboxdrv. Please reinstall the kernel module by
executing
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package
first. This package keeps track of Linux kernel changes and recompiles the vboxdrv
kernel module if necessary.
I reinstalled program and rebooted pc, but not worked.Also, updated kernel driver but not worked.What can be done to solve it ?
asked Dec 2, 2012 at 14:25
2
Thought I’d give my 2 cents for those who use MACs
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
answered Nov 12, 2013 at 22:31
AlexAlex
8438 silver badges15 bronze badges
11
sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
source: http://ubuntuforums.org/showthread.php?t=1885936&page=6
ps. I have this issue everytime I get a Linux kernel update in Ubuntu. The instructions that it gives do not work for me but these two commands work everytime. It would be nice if everytime I got a kernel update these two commands would automatically run afterwards…
answered Mar 25, 2013 at 13:09
Elijah LynnElijah Lynn
12.4k10 gold badges61 silver badges91 bronze badges
2
I have a solution that works for MacOS users:
-
You have to restart your system and press Command (⌘) + R during the loading. It will start the Recovery mode.
-
Now that you’re on the Recovery Mode, click on Utilities (top bar) and Terminal.
-
You have your terminal opened? Enter, it will add Oracle in the authorisation list to access the kernel.
spctl kext-consent add VB5E2TV963
-
Restart again.
You’re welcome.
answered Jun 25, 2019 at 16:07
idknidkn
4222 gold badges7 silver badges13 bronze badges
3
(I’m on a Mac with this solution) I tried the first few answers on this board (so you might need those as well first), but then finally I Allowed Oracle to «load software» under System Preferences -> Security & Privacy -> in the bottom right, click «Allow…»
Then a dialog box with checkbox options might come up, search for Oracle and check the box next to it. Click OK out of everything. (I also updated the preference above the «Allow…» button to Allow apps downloaded from: to «App store and identified developers«)
After all of this I rebooted and I no longer see this -1908 error when running a VM.
Again, I’m on a Mac, running Big Sur 11.2.1.
Dharman♦
31.1k25 gold badges87 silver badges137 bronze badges
answered Feb 18, 2021 at 12:04
skittlebizskittlebiz
3594 silver badges8 bronze badges
2
Personally, on my Mac installing the latest version of VirtualBox solved the problem
answered Aug 19, 2018 at 19:49
Vic SeedoubleyewVic Seedoubleyew
9,8986 gold badges55 silver badges76 bronze badges
1
Goto BIOS setup and Make secure boot Disable
It worked for me.
answered Mar 31, 2019 at 11:42
Had recently the same problem on Ubuntu 18.04. Apparently, virtual box 6.+ has some issues with gcc-7. These steps did the job for me:
Removing virtualbox
sudo apt-get purge virtualbox-*
installing gcc-8
sudo apt-get install gcc-8 g++-8
setting default gcc to gcc-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
and reinstalling virtualbox with the debian installer did it for me!
answered Feb 20, 2020 at 20:05
ThomasThomas
7056 silver badges21 bronze badges
0
did you try the command /etc/init.d/vboxdrv setup
What was the output ?
answered Dec 2, 2012 at 14:36
5
First you have to install dkms packages (but optional)
sudo apt-get install dkms
Then run this
sudo /etc/init.d/vboxdrv setup
But in my case I had to run only second one.
answered Sep 15, 2015 at 5:15
Follow the following steps for Linux:
cd /etc/yum.repos.d/
vim epel.repo
- Make every
"enabled=1"
yum install dkms
Ivan Aracki
4,86111 gold badges59 silver badges73 bronze badges
answered Jan 24, 2016 at 9:52
there were only linux-lts kernel in my system so far. i just install linux-lts-headers using pacman and then i rebooted pc.it worked for me.
answered Jul 7, 2019 at 3:24
1
This one in recovery mode answered by @idkn worked for me.
spctl kext-consent add VB5E2TV963
answered Dec 8, 2019 at 11:13
vipin goyalvipin goyal
67111 silver badges17 bronze badges
The below code seems to fix the error. It might recur when you update your distrbution, so make sure to rerun it.
sudo modprobe vboxdrv
answered Dec 22, 2019 at 18:22
0
did you try the command:
sudo kextload /Library/Extensions/VBoxDrv.kext/
answered Apr 17, 2014 at 17:36
GereGere
2,11424 silver badges24 bronze badges
2
Firstly open a terminal and write this command:
sudo apt-get remove virtualbox-dkms
and after finish this operation, write this command:
sudo apt-get install virtualbox-dkms
This solved the problem.
Do not worry, your files will not be lost.
Ivan Aracki
4,86111 gold badges59 silver badges73 bronze badges
answered Sep 13, 2018 at 9:12
I had the same problem and I fixed it by running this command:
sudo /etc/init.d/vboxdrv setup
Ivan Aracki
4,86111 gold badges59 silver badges73 bronze badges
answered Mar 24, 2015 at 16:20
FaribaFariba
6931 gold badge12 silver badges27 bronze badges
Ошибка kernel driver not installed rc -1908
Чаще всего ошибка запуска виртуальной машины (ошибка: kernel driver not installed rc -1908) в VirtualBox Linux, заключается в том, что в системе не установлен драйвер ядра VirtualBox.
Т.к. заголовки ядра Linux позволяют создавать собственные модули (драйвер ядра VirtualBox один из таких модулей), нам нужно проверить их наличие в системе и при необходимости доустановить их.
Если они установлены, то система проигнорирует эту команду установки.
Ubuntu
sudo apt install linux-headers-$(uname -r)
Debian
sudo apt-get install linux-headers-$(uname -r)
Arch Linux
sudo pacman -S linux-headers
Fedora
sudo dnf install "kernel-devel-uname-r == $(uname -r)"
OpenSUSE
sudo zypper install kernel-devel
Следующая команда переустановит модуль драйвера ядра VirtualBox.
Мы полностью переустановим этот пакет модуля VirtualBox.
Ubuntu
sudo apt install virtualbox-dkms --reinstall
Debian
sudo apt install virtualbox-dkms --reinstall
Arch Linux
sudo pacman -R virtualbox-host-modules-arch sudo pacman -S virtualbox-host-modules-arch
Fedora
sudo dnf remove VirtualBox akmod-VirtualBox sudo dnf install VirtualBox akmod-VirtualBox
OpenSUSE
sudo zypper remove virtualbox-kmp-default sudo zypper install virtualbox-kmp-default
Следующая команда настроит и загрузит модуль ядра VirtualBox.
sudo modprobe vboxdrv
Так же можно перезагрузить компьютер, чтобы загрузить драйвер ядра.
15 июля 2022, 18:30
Александр
Linux
0
3122
0
Из этой категории
-
WarThunder вылетает игра в Linux
Подключение к Linux по RDP
Double Commander не распаковывает RAR-архивы
Кодировка в текстовом редакторе Xed
Opera не русифицируется в Linux
Не могу записать ничего на ext4
Как установить или удалить ядро Liquorix Linux Mint
13 горячих клавиш в bash Linux
Советы и приемы настройки командной строки в Bash Linux
Как определить папки занимающие большое пространство на диске, в Linux
Комментарии ()
Вы должны авторизоваться, чтобы оставлять комментарии.
Если после очередного обновления Oracle VirtualBox на MacOS, при запуске любой виртуальной машины, вы получили ошибку «Kernel driver not installed (rc=-1908)», то вот вам проверенный способ как ее победить.
Проверено как минимум пять раз на разных устройствах и разных версиях MacOS (BigSur, Catalina).
Не торопитесь ничего удалять, или переустанавливать, как это иногда рекомендуют. Паниковать так же не стОит, и даже срочно делать резервную копию не обязательно (хотя в целом это хорошая практика делать регулярные резервные копии).
На этот случай у VirtualBox есть скрипт, который вам поможет всё починить.
Итак,
1. открываем терминал, и выполняем следующую команду:
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
2. Вводим свой пароль, и в ответ получаем что-то типа такого:
Loading VBoxDrv.kext
Error Domain=KMErrorDomain Code=28 «Loading extension(s): org.virtualbox.kext.VBoxDrv requires a reboot» UserInfo={NSLocalizedDescription=Loading extension(s): org.virtualbox.kext.VBoxDrv requires a reboot}
Error: Failed to load org.virtualbox.kext.VBoxDrv
Executing: /usr/bin/kmutil unload -b org.virtualbox.kext.VBoxUSB
Error Domain=KMErrorDomain Code=71 «Kernel request failed: (libkern/kext) not found (-603947002)» UserInfo={NSLocalizedDescription=Kernel request failed: (libkern/kext) not found (-603947002)}
Fatal error: VirtualBox
Таких строк может быть несколько, это не важно.
3. Обратите внимание, что среди всего прочего, в ответе присутствуют просьба перезагрузить систему «requires a reboot». Не сопротивляемся, перезагружаемся. Если не просит, то вывод будет такой как в шаге 5.
4. После перезагрузки, еще раз открываем терминал, и выполняем команду из шага 1.
5. Теперь вывод будет (должен быть) вот такой:
Unloading VBoxUSB.kext
Unloading VBoxNetFlt.kext
Unloading VBoxNetAdp.kext
Unloading VBoxDrv.kext
Loading VBoxDrv.kext
Loading VBoxUSB.kext
Loading VBoxNetFlt.kext
Loading VBoxNetAdp.kext
Отлично! То что нам и нужно было.
6. Запускаем VirtualBox. Он скорее всего скажет что нужно установить свежую версию VirtualBox Extension Pack. Все нормально, идем на сайт https://www.virtualbox.org/wiki/Downloads, скачиваем актуальную версию Extension Pack, и устанавливаем.
Все, теперь можно продолжать работать.
-
Peter83
- Posts: 3
- Joined: 31. Aug 2020, 21:06
Kernel driver not installed (rc=-1908)
Hi,
After updating to kernel 5.10.6-200.fc33.x86_64 x86_64 on Fedora 33 I get the following error,
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
‘/sbin/vboxconfig’
as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system’s documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) — The support driver is not installed. On linux, open returned ENOENT.
After running
I get the following message:
Code: Select all
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.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. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
I’m not using EFI Secure Boot. I enclose the log file for your reference. I’m just not sure that re-installing would fix this issue but having said that I haven’t tried it.
Best regards,
EDIT:
Downgrading to 5.9.16-200.fc33.x86_64 seems to fix the issue.
- Attachments
-
- vbox-setup.log
- (49.78 KiB) Downloaded 373 times
-
scottgus1
- Site Moderator
- Posts: 19764
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
-
Martin
- Volunteer
- Posts: 2556
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: PUEL
- Guest OSses: XP, Win7, Linux, OS/2
Re: Kernel driver not installed (rc=-1908)
Post
by Martin »
Something changed from kernel 5.9 to 5.10 which broke VirtualBox 6.1.16.
(also the same on Fedora 32)
-
efftee
- Posts: 9
- Joined: 28. Mar 2019, 11:38
Re: Kernel driver not installed (rc=-1908)
Post
by efftee »
Same issue on 3 machines running
Linux a 5.8.0-38-generic #43~20.04.1-Ubuntu SMP Tue Jan 12 16:39:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Linux b 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Linux c 5.8.0-38-generic #43~20.04.1-Ubuntu SMP Tue Jan 12 16:39:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Terrifying… nothing works anymore, 6 really important vms that can’t be started anymore since yesterday !
Halp !
However VB is working on mac. Would this seem to be more likely linked to a linux upgrade more than an issue with VB ?
Messages :
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-generic.
You will not be able to start VMs until this problem is fixed.
Or :
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.8.0-38-generic) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.
/usr/lib/virtualbox/VirtualBox: error while loading shared libraries: libQt5PrintSupport.so.5: cannot open shared object file: No such file or directory
-
efftee
- Posts: 9
- Joined: 28. Mar 2019, 11:38
Re: Kernel driver not installed (rc=-1908)
Post
by efftee »
For what it’s worth… Might help someone…
Corrected the problem by doing :
Uninstall Virtualbox
Download pkg from http://download.virtualbox.org/virtualbox/6.1.16/
sudo dpkg -i virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb
sudo apt-get update
sudo apt-get ugprade
sudo apt-get dist-upgrade
got error message about unmet dependencies
sudo apt —fix-broken install
sudo apt autoremove
All was back in working order… Sorry, I don’t exactly know why, proceed with caution.
-
Martin
- Volunteer
- Posts: 2556
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: PUEL
- Guest OSses: XP, Win7, Linux, OS/2
Re: Kernel driver not installed (rc=-1908)
Post
by Martin »
It would be helpful if you could provide package names which were mentioned by the last three steps «error message about unmet dependencies, sudo apt —fix-broken install, sudo apt autoremove».
That way others could compare what was missing or in conflict.
-
efftee
- Posts: 9
- Joined: 28. Mar 2019, 11:38
Re: Kernel driver not installed (rc=-1908)
Post
by efftee »
Martin wrote:It would be helpful if you could provide package names which were mentioned by the last three steps «error message about unmet dependencies, sudo apt —fix-broken install, sudo apt autoremove».
That way others could compare what was missing or in conflict.
Hi Martin, you are correct. Sorry, I have lost them in the terminal unfortunately…
Not sure in which logs to look for them.
I remember however they were related to the Qt components in regards to VirtualBox UI.
EDIT :
Ok found the components mentionned in the history log
Code: Select all
Commandline: apt --fix-broken install
Install: libqt5printsupport5:amd64 (5.12.8+dfsg-0ubuntu1, automatic), libqt5x11extras5:amd64 (5.12.8-0ubuntu1, automatic), python-is-python2:amd64 (2.7.17-4, automatic)
Commandline: apt autoremove
Remove: libvncserver1:amd64 (0.9.12+dfsg-9ubuntu0.3), libgsoap-2.8.91:amd64 (2.8.91-2)
-
Peter83
- Posts: 3
- Joined: 31. Aug 2020, 21:06
Re: Kernel driver not installed (rc=-1908)
Post
by Peter83 »
Hi,
Sorry I just saw your message. Fedora 33 keeps the 3 most recent kernels I believe so I just ran
Code: Select all
sudo grubby --set-default /boot/vmlinuz-5.9.16-200.fc33.x86_64
I’ll keep this kernel for a while while updating with -x kernel* until a feasible solution for Fedora comes up.
Cheers,
Peter
efftee wrote:
Peter83 wrote:
EDIT:
Downgrading to 5.9.16-200.fc33.x86_64 seems to fix the issue.Hi Peter, how did you proceed exactly for the downgrade ?