Modprobe error could not insert vboxdrv operation not permitted

I install virtualBox on Ubuntu 16.04, but after install and create new virtual Host shows this error: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is ...

I install virtualBox on Ubuntu 16.04, but after install and create new virtual Host shows this error:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please install virtualbox-dkms package and load the kernel module by executing

modprobe vboxdrv

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.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 

How to address this modprobe vboxdrv error?

Zanna's user avatar

Zanna

68.2k55 gold badges210 silver badges320 bronze badges

asked May 31, 2017 at 10:35

mySun's user avatar

2

As the first step run this command:

sudo modprobe vboxdrv

If it’s not helpful run these commands:

sudo apt update
sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms

Then reboot your system and after reboot run this command:

sudo modprobe vboxdrv

And if it doesn’t work you must disable Secure Boot in your BIOS/UEFI settings because Secure Boot prevents unsigned modules from being loaded.

Zanna's user avatar

Zanna

68.2k55 gold badges210 silver badges320 bronze badges

answered May 31, 2017 at 12:42

Ali Razmdideh's user avatar

Ali RazmdidehAli Razmdideh

5,5202 gold badges33 silver badges51 bronze badges

10

  1. Uninstall virtualbox-dkms and its configurations by running the below commands:

    sudo apt-get remove virtualbox-dkms
    sudo apt-get remove --purge virtualbox-dkms
    
  2. Install Linux headers and Linux image by running the below command:

    sudo apt-get install -y linux-headers-amd64 linux-image-amd64
    
  3. Install virtualbox-dkms

    sudo apt-get install -y virtualbox-dkms
    

karel's user avatar

karel

107k93 gold badges263 silver badges290 bronze badges

answered Dec 13, 2017 at 12:42

Adel Alsharafi's user avatar

2

Like @david.perez exposed, it can be solved by disabling the UEFI Secure Boot:

  1. do ‘Power Off / Restart’
  2. at the very first screen, select ‘UEFI settings’
  3. in the Bios interface, browse until ‘UEFI’ tab
  4. change ‘Enabled’ to ‘Disabled’, save and exit

answered Sep 6, 2021 at 19:01

Nicolas Casel's user avatar

In this blog, we are going the solve the Error: modprobe: ERROR: could not insert ‘vboxdrv’: Operation not permitted. This error comes when we run the command sudo modprobe vboxdrv.

modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted

Also Read: How to convert PNG to JPG on Ubuntu Via Command Line

The issue is that the vboxdrv module is not signed and therefore does not load with the kernel. This will occur if your computer has the SecureBoot mode enabled, which is quite common on current equipment. Follow the below step to Solve modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted.

1. Install the mokutil package to be able to do signed. So Open the Terminal and first update and upgrade your system.

sudo apt-get update
sudo apt-get upgrade

Now install the mokutil package by using the command given below.

sudo apt-get install mokutil

modprobe vboxdrv Operation not permitted

Also Read: How to Install and Use WifiPumpkin3 in Kali Linux 2021

2. Generate the signature file by using the command:

openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VirtualBox/"

3. Then add it to the kernel:

sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)

modprobe vboxdrv Operation not permitted.

Also Read: Command Line Browser on Ubuntu 2021

4. Register it for the Secure Boot.

IMPORTANT! That will ask you for a password. Put the one you want. Then, you will only have to use it once in the next reboot.

sudo mokutil --import MOK.der

5. Finally, restart the computer. A blue screen will appear with a keyboard wait, press the key that asks you to interrupt the boot.

modprobe: ERROR: could not insert 'vboxdrv'

Also Read: How to Change Application Icon in Ubuntu 2021

When you are inside the blue screen, select

Enroll MOK > Continue > Yes 

modprobe vboxdrv Operation not permitted.

Also Read: libc6-dev : Breaks : libgcc-9-dev (< 9.3.0.5~) but 9.2.1-19 is to be installed

And it will ask you for the password that you have previously entered, you will enter it and you will be informed that the operation has been completed successfully.

modprobe: 'vboxdrv': Operation not permitted

Now your operating system will start and your Error (modprobe: ERROR: could not insert ‘vboxdrv’: Operation not permitted) will be solved. I tested this in Ubuntu, Kubuntu and Debian. Hope this help someone.

Also Read: How to Install Sticky Notes Indicator on Ubuntu 2021

  • Печать

Страницы: [1] 2  Все   Вниз

Тема: Переустановила систему, не могу запустить виртуальную машину для Windows  (Прочитано 2885 раз)

0 Пользователей и 1 Гость просматривают эту тему.

OlgaOlga

Ubuntu 18.04.


Пользователь добавил сообщение 13 Апреля 2019, 07:25:49:


вот такую ошибку выдает:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

« Последнее редактирование: 13 Апреля 2019, 07:25:49 от OlgaOlga »


Оффлайн
БТР

Please reinstall virtualbox-dkms package and load the kernel module by executing ‘modprobe vboxdrv’ as root.


OlgaOlga

переустановить я виртуальную машину я могу, а как вот это запустить:

load the kernel module by executing ‘modprobe vboxdrv’

и как конкретно переустановить это:

-dkms package

???


Онлайн
ALiEN175

dpkg -l | egrep 'virtual|headers'?

ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE


Оффлайн
ReNzRv


OlgaOlga

~$ sudo dpkg -l | egrep 'virtual|headers'

ii  gvfs:amd64                                 1.36.1-0ubuntu1.3                            amd64        userspace virtual filesystem - GIO module
ii  gvfs-backends                              1.36.1-0ubuntu1.3                            amd64        userspace virtual filesystem - backends
ii  gvfs-bin                                   1.36.1-0ubuntu1.3                            amd64        userspace virtual filesystem - binaries
ii  gvfs-common                                1.36.1-0ubuntu1.3                            all          userspace virtual filesystem - common data files
ii  gvfs-daemons                               1.36.1-0ubuntu1.3                            amd64        userspace virtual filesystem - servers
ii  gvfs-fuse                                  1.36.1-0ubuntu1.3                            amd64        userspace virtual filesystem - fuse server
ii  gvfs-libs:amd64                            1.36.1-0ubuntu1.3                            amd64        userspace virtual filesystem - private libraries
ii  linux-generic-hwe-18.04                    4.18.0.17.67                                 amd64        Complete Generic Linux kernel and headers
ii  linux-headers-4.18.0-15                    4.18.0-15.16~18.04.1                         all          Header files related to Linux kernel version 4.18.0
ii  linux-headers-4.18.0-15-generic            4.18.0-15.16~18.04.1                         amd64        Linux kernel headers for version 4.18.0 on 64 bit x86 SMP
ii  linux-headers-4.18.0-17                    4.18.0-17.18~18.04.1                         all          Header files related to Linux kernel version 4.18.0
ii  linux-headers-4.18.0-17-generic            4.18.0-17.18~18.04.1                         amd64        Linux kernel headers for version 4.18.0 on 64 bit x86 SMP
ii  linux-headers-generic-hwe-18.04            4.18.0.17.67                                 amd64        Generic Linux kernel headers
ii  linux-signed-generic-hwe-18.04             4.18.0.17.67                                 amd64        Complete Signed Generic Linux kernel and headers (dummy transitional package)
ii  virtualbox                                 5.2.18-dfsg-2~ubuntu18.04.3                  amd64        x86 virtualization solution - base binaries
ii  virtualbox-dkms                            5.2.18-dfsg-2~ubuntu18.04.3                  all          x86 virtualization solution - kernel module sources for dkms
ii  virtualbox-qt                              5.2.18-dfsg-2~ubuntu18.04.3                  amd64        x86 virtualization solution - Qt based user interface
 sudo apt install --reinstall virtualbox-dkms && sudo apt install libelf-dev
$: команда не найдена
 sudo apt install --reinstall virtualbox-dkms && sudo apt install libelf-dev
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Обновлено 0 пакетов, установлено 0 новых пакетов, переустановлено 1 пакетов, для удаления отмечено 0 пакетов, и 116 пакетов не обновлено.
Необходимо скачать 0 B/658 kB архивов.
После данной операции объём занятого дискового пространства возрастёт на 0 B.
(Чтение базы данных … на данный момент установлено 167856 файлов и каталогов.)
Подготовка к распаковке …/virtualbox-dkms_5.2.18-dfsg-2~ubuntu18.04.3_all.deb …

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 5.2.18
Kernel:  4.18.0-17-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod......

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.18
completely from the DKMS tree.
------------------------------
Done.
Распаковывается virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) на замену (5.2.18-dfsg-2~ubuntu18.04.3) …
Настраивается пакет virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) …
Loading new virtualbox-5.2.18 DKMS files...
Building for 4.18.0-17-generic
Building initial module for 4.18.0-17-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

depmod...

DKMS: install completed.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
   Loaded: loaded (/etc/init.d/virtualbox; generated)
   Active: failed (Result: exit-code) since Sat 2019-04-13 20:33:37 MSK; 5ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 7003 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

апр 13 20:33:37 narodische-All-Series systemd[1]: Starting LSB: VirtualBox Linux kernel module...
апр 13 20:33:37 narodische-All-Series virtualbox[7003]:  * Loading VirtualBox kernel modules...
апр 13 20:33:37 narodische-All-Series virtualbox[7003]:  * modprobe vboxdrv failed. Please use 'dmesg' to find out why
апр 13 20:33:37 narodische-All-Series virtualbox[7003]:    ...fail!
апр 13 20:33:37 narodische-All-Series systemd[1]: virtualbox.service: Control process exited, code=exited status=1
апр 13 20:33:37 narodische-All-Series systemd[1]: virtualbox.service: Failed with result 'exit-code'.
апр 13 20:33:37 narodische-All-Series systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Будут установлены следующие дополнительные пакеты:
  zlib1g-dev
Следующие НОВЫЕ пакеты будут установлены:
  libelf-dev zlib1g-dev
Обновлено 0 пакетов, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 116 пакетов не обновлено.
Необходимо скачать 233 kB архивов.
После данной операции объём занятого дискового пространства возрастёт на 829 kB.
Хотите продолжить? [Д/н]
Пол:1 http://ru.archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2 [176 kB]
Пол:2 http://ru.archive.ubuntu.com/ubuntu bionic/main amd64 libelf-dev amd64 0.170-0.4 [57,2 kB]
Получено 233 kB за 1с (280 kB/s)       
Выбор ранее не выбранного пакета zlib1g-dev:amd64.
(Чтение базы данных … на данный момент установлено 167856 файлов и каталогов.)
Подготовка к распаковке …/zlib1g-dev_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb …
Распаковывается zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) …
Выбор ранее не выбранного пакета libelf-dev:amd64.
Подготовка к распаковке …/libelf-dev_0.170-0.4_amd64.deb …
Распаковывается libelf-dev:amd64 (0.170-0.4) …
Обрабатываются триггеры для man-db (2.8.3-2ubuntu0.1) …
Настраивается пакет zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) …
Настраивается пакет libelf-dev:amd64 (0.170-0.4) …
~$ sudo /sbin/vboxconfig
sudo: /sbin/vboxconfig: команда не найдена

Ответ был перемещен в Вашу исходную тему.
—zg_nico

« Последнее редактирование: 14 Апреля 2019, 13:44:33 от zg_nico »


Оффлайн
zg_nico

OlgaOlga, я никогда не пользовался virtual box, мне всегда хватало qemu. Сейчас на виртуалке в QEMU запустил для проверки Ubuntu 18.04, установил на нее:

sudo apt install virtualbox-dkms libelf-devПосле этого действительно команда /sbin/vboxconfig не запускается, и файла такого действительно не существует. Более того, — его не только по этому пути, его в системе в принципе не существует. Тем не менее по команде

virtualboxзапускается окно конфигуратора виртуальных машин. В связи с вышеобозначенным, у меня к Вам вопрос: что должна делать команда /sbin/vboxconfig, и для чего Вы пытаетесь ее выполнить? Предполагаю, что это — рудимент от предыдущих версий virtualbox, который к установившейся в 18.04 версии 5.12.18 просто вырезан самими разработчиками. Прошу поправить меня, если я ошибаюсь. Единственное упоминание, что мне удалось беглым гуглингом найти про /sbin/vboxconfig (описанные там действия у меня в виртуальной машине не сработали — не следует их выполнять, — просто проверьте, работает ли у Вас сама виртуальная машина, и ответьте на вопрос, который я Вам задал, пожалуйста).

Thunderobot G150-D2: Intel SkyLake Core i7-6700HQ 2.60GHz, 8Gb DDR4 2133 MHz, Intel HD530, NVidia GeForce GTX 960M 2Gb.  Ubuntu 16.04 64x [Unity], KUbuntu 18.04 64x.


Оффлайн
Raf73

zg_nico, в 16.04 есть /sbin/vboxconfig. Он, насколько знаю, собирает модули для работы vbox. У меня после обновления ядра надо запускать этот причиндал, чтобы vbox заработал. Видимо, в 18 Ubuntu переделали и сделали как-то по-другому, если нет такого файла в системе.
Чуть не забыл, я ставил vbox из дебки с сайта виртуалбокса.


Оффлайн
zg_nico

Raf73, т.е. на 16.04 без этого vboxconfig сам virtualbox не запускается? Если так, то в 18.04, похоже, что эта команда

/sbin/vboxconfigпросто не нужна.

Thunderobot G150-D2: Intel SkyLake Core i7-6700HQ 2.60GHz, 8Gb DDR4 2133 MHz, Intel HD530, NVidia GeForce GTX 960M 2Gb.  Ubuntu 16.04 64x [Unity], KUbuntu 18.04 64x.


OlgaOlga

Я не цепляюсь конкретно к этой команде. Я даже к virtualbox не цепляюсь.
Идея проста: мне надо как-то запустить Windows из под Ubuntu, чтобы можно было устанавливать туда небезопасное программное обеспечение  Windows-среды. (Допустим, я вижу новую программу. Ее небезопасно ставить на реальную машину, так как она может вызвать проблемы, и она не устанавливается на Ubuntu, так как она для Windows’а. Или источник для скачивания программы не очень безопасный. Я хочу его опробовать, и ставлю на виртуальную машину.)
Как быть?


Пользователь добавил сообщение 14 Апреля 2019, 23:50:16:


Виртуальная машина по-прежнему не работает, выдает ту же ошибку, что была в первом сообщении.


Оффлайн
zg_nico

Виртуальная машина по-прежнему не работает, выдает ту же ошибку, что была в первом сообщении.

Хорошо. Попробуем тогда так. Выполните то, что он напрямую просит сделать:

sudo apt install --reinstall virtualbox-dkms
sudo modprobe vboxdrv
После этого попробуйте запустить VirtualBox. Если запускается — не спешим радоваться. Выполняем перезагрузку. После перезагрузки снова проверяем работу VirtualBox. По результату прошу отписаться.

Thunderobot G150-D2: Intel SkyLake Core i7-6700HQ 2.60GHz, 8Gb DDR4 2133 MHz, Intel HD530, NVidia GeForce GTX 960M 2Gb.  Ubuntu 16.04 64x [Unity], KUbuntu 18.04 64x.


OlgaOlga

:~$ sudo apt install --reinstall virtualbox-dkms[sudo] пароль для ***:
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Обновлено 0 пакетов, установлено 0 новых пакетов, переустановлено 1 пакетов, для удаления отмечено 0 пакетов, и 116 пакетов не обновлено.
Необходимо скачать 0 B/658 kB архивов.
После данной операции объём занятого дискового пространства возрастёт на 0 B.
(Чтение базы данных … на данный момент установлено 167896 файлов и каталогов.)
Подготовка к распаковке …/virtualbox-dkms_5.2.18-dfsg-2~ubuntu18.04.3_all.deb …

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 5.2.18
Kernel:  4.18.0-17-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod.......

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.18
completely from the DKMS tree.
------------------------------
Done.
Распаковывается virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) на замену (5.2.18-dfsg-2~ubuntu18.04.3) …
Настраивается пакет virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) …
Loading new virtualbox-5.2.18 DKMS files...
Building for 4.18.0-17-generic
Building initial module for 4.18.0-17-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

depmod...

DKMS: install completed.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
   Loaded: loaded (/etc/init.d/virtualbox; generated)
   Active: failed (Result: exit-code) since Mon 2019-04-15 08:10:29 MSK; 4ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8294 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

: Starting LSB: VirtualBox Linux kernel module...
:  * Loading VirtualBox kernel modules...
:  * modprobe vboxdrv failed. Please use 'dmesg' to find out why
:    ...fail!
: virtualbox.service: Control process exited, code=exited status=1
: virtualbox.service: Failed with result 'exit-code'.
: Failed to start LSB: VirtualBox Linux kernel module.
 sudo modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted


Пользователь добавил сообщение 15 Апреля 2019, 08:24:27:


Похоже, I’m stuffed. Придется обойтись без любимых программок.  :-[ Ничего не получится, да??
Изначально планировала сделать dual-boot и сидеть только под  Ubuntu, а Windows оставить для экспериментального ПО, но потом отказалась от этой идеи,  так как если при обновлении Ubuntu пойдет что-то не так, а вторая ОС (Windows) без доступа к интернету с экспериментальным ПО, я остаюсь вообще без машины.
Сейчас у меня основная Windows, но на ней я ничего не могу делать, так она подключена к интернету, и если я устанавливаю небезопасное ПО, система может полететь+потом какое-нибудь неудачное обновление под Ubuntu=я снова без машины.  :-[

« Последнее редактирование: 15 Апреля 2019, 08:24:27 от OlgaOlga »


Оффлайн
Azure

Попробуйте перезагрузится и еще раз попробовать запустить сервис

В Линукс можно сделать ВСЁ что угодно, достаточно знать КАК !


OlgaOlga

narodische@narodische-All-Series:~$ sudo apt install --reinstall virtualbox-dkms[sudo] пароль для narodische:
8Попробуйте ещё раз.
[sudo] пароль для narodische:
Чтение списков пакетов… Готово
Построение дерева зависимостей       
Чтение информации о состоянии… Готово
Обновлено 0 пакетов, установлено 0 новых пакетов, переустановлено 1 пакетов, для удаления отмечено 0 пакетов, и 116 пакетов не обновлено.
Необходимо скачать 0 B/658 kB архивов.
После данной операции объём занятого дискового пространства возрастёт на 0 B.
(Чтение базы данных … на данный момент установлено 167896 файлов и каталогов.)
Подготовка к распаковке …/virtualbox-dkms_5.2.18-dfsg-2~ubuntu18.04.3_all.deb …

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 5.2.18
Kernel:  4.18.0-17-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

vboxpci.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.18.0-17-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod......

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.18
completely from the DKMS tree.
------------------------------
Done.
Распаковывается virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) на замену (5.2.18-dfsg-2~ubuntu18.04.3) …
Настраивается пакет virtualbox-dkms (5.2.18-dfsg-2~ubuntu18.04.3) …
Loading new virtualbox-5.2.18 DKMS files...
Building for 4.18.0-17-generic
Building initial module for 4.18.0-17-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.18.0-17-generic/updates/dkms/

depmod...

DKMS: install completed.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
   Loaded: loaded (/etc/init.d/virtualbox; generated)
   Active: failed (Result: exit-code) since Mon 2019-04-15 08:54:53 MSK; 5ms ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8349 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

апр 15 08:54:53 narodische-All-Series systemd[1]: Starting LSB: VirtualBox Linux kernel module...
апр 15 08:54:53 narodische-All-Series virtualbox[8349]:  * Loading VirtualBox kernel modules...
апр 15 08:54:53 narodische-All-Series virtualbox[8349]:  * modprobe vboxdrv failed. Please use 'dmesg' to find out why
апр 15 08:54:53 narodische-All-Series virtualbox[8349]:    ...fail!
апр 15 08:54:53 narodische-All-Series systemd[1]: virtualbox.service: Control process exited, code=exited status=1
апр 15 08:54:53 narodische-All-Series systemd[1]: virtualbox.service: Failed with result 'exit-code'.
апр 15 08:54:53 narodische-All-Series systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
narodische@narodische-All-Series:~$ sudo modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted
narodische@narodische-All-Series:~$

тоже самое  :-[ :-[ :-[


Оффлайн
preto

Попробуйте:

sudo apt -f install

Помочь != «Сделайте за меня»


  • Печать

Страницы: [1] 2  Все   Вверх

  • Reply with quote

Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

I just downloaded the VirtualBox source code and built it using these instructions:

https://www.virtualbox.org/wiki/Linux%2 … structions

I want to build the source code with debug information, so I execute this:

Code: Select all   Expand viewCollapse view
kmk BUILD_TYPE=debug

I am using a fresh Ubuntu installation as host operating system, but I got this error when I finished:
Image

VirtualBox kernel driver not Installed. The vboxdrv kernel module was either not loaded, /dev/vboxdrv is not set up properly, or you are using EFI Secure Boot and the module is not signed in the right way for your system. If necessary, try setting up the kernel module again by executing ‘/sbin/vboxconfig’ as root (VERR_VM_DRIVER_NOT_INSTALLED).

Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

I tried executing /sbin/vboxconfig as root as the error message suggest, but when I do I get this as response:

Code: Select all   Expand viewCollapse view
sudo: /sbin/vboxconfig: command not found

Some people suggest in some forums to execute this command:

Code: Select all   Expand viewCollapse view
modprobe vboxdrv

but it throws me this error:

Code: Select all   Expand viewCollapse view
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.4.0-33-generic

What can I do?

Attachments
Screenshot from 2020-06-04 08-43-48.png
Screenshot from 2020-06-04 08-43-48.png (64.83 KiB) Viewed 22827 times
Adam_Ullrich56
 
Posts: 9
Joined: 14. Mar 2020, 16:58

  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby Adam_Ullrich56 » 4. Jun 2020, 10:31

I just tried to compile VirtualBox without debug information (I need VirtualBox compiled with debug information, but I tried this just to see if I have any problems):

Code: Select all   Expand viewCollapse view
source ./env.sh
kmk all
cd out/linux.amd64/release/bin/src/
make
sudo make install
cd ..
modprobe vboxdrv
sudo /sbin/vboxconfig

Now I get this error instead:
Image

Cannot access the kernel driver!

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.

I tried executing ‘/sbin/vboxconfig’ as root, but I get this error:

Code: Select all   Expand viewCollapse view
sudo: /sbin/vboxconfig: command not found
Attachments
Screenshot from 2020-06-04 10-28-56.png
Screenshot from 2020-06-04 10-28-56.png (48.78 KiB) Viewed 22826 times
Adam_Ullrich56
 
Posts: 9
Joined: 14. Mar 2020, 16:58


  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby Adam_Ullrich56 » 5. Jun 2020, 01:06

I am going to paste here all commands in order that I had to execute in my Ubuntu 20.04 LTS 64 bits to make life of other developers easier:
Tip: copy and paste all the commands in a script.sh file, make it executable with chmod u+x script.sh and then execute it with sudo.
In total it takes around 1.5 hours to get everything compiled.

Code: Select all   Expand viewCollapse view
wget https://download.virtualbox.org/virtualbox/6.1.8/VirtualBox-6.1.8.tar.bz2

tar -xvf VirtualBox-6.1.8.tar.bz2
rm VirtualBox-6.1.8.tar.bz2

sudo apt-get install -y acpica-tools chrpath doxygen g++-multilib libasound2-dev libcap-dev
            libcurl4-openssl-dev libdevmapper-dev libidl-dev libopus-dev libpam0g-dev
            libpulse-dev libqt5opengl5-dev libqt5x11extras5-dev libsdl1.2-dev libsdl-ttf2.0-dev
            libssl-dev libvpx-dev libxcursor-dev libxinerama-dev libxml2-dev libxml2-utils
            libxmu-dev libxrandr-dev make nasm python3-dev python-dev qttools5-dev-tools
            texlive texlive-fonts-extra texlive-latex-extra unzip xsltproc
           
            default-jdk libstdc++5 libxslt1-dev linux-kernel-headers makeself
            mesa-common-dev subversion yasm zlib1g-dev

sudo apt-get install -y lib32z1 libc6-dev-i386 lib32gcc1 lib32stdc++6

sudo ln -s libX11.so.6    /usr/lib32/libX11.so
sudo ln -s libXTrap.so.6  /usr/lib32/libXTrap.so
sudo ln -s libXt.so.6     /usr/lib32/libXt.so
sudo ln -s libXtst.so.6   /usr/lib32/libXtst.so
sudo ln -s libXmu.so.6    /usr/lib32/libXmu.so
sudo ln -s libXext.so.6   /usr/lib32/libXext.so

cd VirtualBox-6.1.8/
./configure --disable-hardening
source ./env.sh
kmk BUILD_TYPE=debug
cd out/linux.amd64/debug/bin/src/
make
sudo make install
cd ..
sudo ./vboxdrv.sh setup
sudo modprobe vboxdrv
cd ../../../../
sudo chmod -R 777 VirtualBox-6.1.8/

Adam_Ullrich56
 
Posts: 9
Joined: 14. Mar 2020, 16:58

  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby biggydanny » 3. Aug 2020, 20:05

hello , i ran the script on my newly upgraded distro but got modprobe: ERROR: could not insert ‘vboxdrv’: Exec format error
chmod: cannot access ‘VirtualBox-6.1.8/’: No such file or directory
I am still trying to find my feet with linux as am such a newbie, been trying to fix all this but i have failed and i dont wanna give up, please point me in the right direction step by step with a little visuals, am so lost i need your help

biggydanny
 
Posts: 4
Joined: 3. Aug 2020, 20:01


  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby towo2099 » 3. Aug 2020, 20:36

biggydanny wrote:please help

How we should?
You don’t told your used Distro, that would be the 1st important info!
Then you use an old VBox version! Why?

towo2099
Volunteer
 
Posts: 351
Joined: 18. Aug 2014, 21:53
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Android, Linux

  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby scottgus1 » 3. Aug 2020, 20:52

biggydanny, please don’t bump a thread 10 minutes after you posted in it. This is a volunteer forum and no one is paid to monitor it, neither have you paid for support.

A bump after a week for a couple weeks might be OK, but not more often, as it would get obstreperous.

scottgus1
Site Moderator
 
Posts: 17670
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby biggydanny » 4. Aug 2020, 02:56

Ok, this all happened after i upgraded my distro from Uuntu 18.04 to Ubuntu 20.04, after the upgrade, I needed to use VBox as i run some virtual machines and some software with it but was unable to use it because of the mentioned error above, I have tried everything mentioned as I also tried running the script above but in the end i still got the error message as in my last post, i hope that i have explained my self

biggydanny
 
Posts: 4
Joined: 3. Aug 2020, 20:01

  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby multiOS » 4. Aug 2020, 09:06

IME upgrading (as opposed to updating) any Host OS often results in disrupting software installations that inject ‘drivers’ etc. into the OS, i.e. the OS upgrade process might not have carried forward those essential parts of the original VirtualBox installation, resulting the error message you now get. Have you tried completely reinstalling/repairing the VirtualBox installation? There should be no impact on existing Virtual Machines, ‘though you might have to re-register them if they do not reappear in the VirtualBox GUI automatically, but make sure you take full backups just in case.

multiOS
Volunteer
 
Posts: 718
Joined: 14. Sep 2019, 16:51
Location: United Kingdom
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)


  • Reply with quote

Re: Building VirtualBox 6.1.8 on Linux: VERR_VM_DRIVER_NOT_INSTALLED

Postby multiOS » 4. Aug 2020, 10:56

What response do you get to the command: sudo modprobe vboxdrv

If you get: «Could not insert ‘vboxdrv’: Operation not permitted» that suggests that EFI Secure Boot is possibly enabled and is blocking the installation.

After that, I’m stuck for further possibilities and someone with greater linux expertise is probably needed as I only use Linux distros as Guests. Ubuntu Forums might be a better source as it’s most probably a Linux permissions issue.

EDIT: Have just searched and there is a message thread that has reached the same stage here with what seems to be the same situation:

https://askubuntu.com/questions/1262515 … ed-rc-1908

multiOS
Volunteer
 
Posts: 718
Joined: 14. Sep 2019, 16:51
Location: United Kingdom
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: WIN11,10, 7, Linux (various)


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 7 guests

Awebb wrote:

What is «does not load […] modules» in exact error messages? What wiki article are you talking about exactly? How did you install the virtualbox modules? Do you understand, what linux-hardened does?

EDIT: Carefully read https://wiki.archlinux.org/index.php/VirtualBox, especially the Installation steps for Arch Linux hosts.

The day the Arch Linux Forum does not require my whole life story… Sure. I installed everything by doing the following (warning: VERY surprising)

pacman -S linux-hardened linux-hardened-headers virtualbox virtualbox-host-dkms --needed

y

resolving dependencies...
looking for conflicting packages...

Packages (2) virtualbox-6.1.6-1  virtualbox-host-dkms-6.1.6-1

Total Installed Size:  172.15 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                                                                                                  [########################################################################################] 100%
(2/2) checking package integrity                                                                                                                [########################################################################################] 100%
(2/2) loading package files                                                                                                                     [########################################################################################] 100%
(2/2) checking for file conflicts                                                                                                               [########################################################################################] 100%
(2/2) checking available disk space                                                                                                             [########################################################################################] 100%
:: Processing package changes...
(1/2) installing virtualbox-host-dkms                                                                                                           [########################################################################################] 100%
Optional dependencies for virtualbox-host-dkms
    linux-headers: build modules against Arch kernel
    linux-lts-headers: build modules against LTS kernel
    linux-zen-headers: build modules against ZEN kernel
(2/2) installing virtualbox                                                                                                                     [########################################################################################] 100%
Optional dependencies for virtualbox
    vde2: Virtual Distributed Ethernet support
    virtualbox-guest-iso: Guest Additions CD image
    virtualbox-ext-vnc: VNC server support
    virtualbox-sdk: Developer kit
:: Running post-transaction hooks...
(1/9) Creating system user accounts...
(2/9) Reloading system manager configuration...
(3/9) Reloading device manager configuration...
(4/9) Arming ConditionNeedsUpdate...
(5/9) Install DKMS modules
==> dkms install vboxhost/6.1.6_OSE -k 5.6.11.a-1-hardened
(6/9) Updating icon theme caches...
(7/9) Updating the desktop file MIME type cache...
(8/9) Updating the MIME type database...
(9/9) SELinux: relabel installed files

And when that did not work I rebooted and tried to start my OpenBSD virtualbox again. It did not work after a reboot either so I uninstalled «linux-hardened-headers virtualbox virtualbox-host-dkms» via «pacman -R linux-hardened-headers virtualbox virtualbox-host-dkms» and then executed the first commando again and tried. Still not working. I uninstalled «virtualbox-host-dkms», rebooted, installed «virtualbox-host-modules-arch» and tried. Still not working. I rebooted and tried again. Still not working.

I tried the following as well

modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted

sudo modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted

su
(logged in as root)
modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Operation not permitted

The output of «lsmod | grep vbox» is blank

find /lib/modules/`uname -r` -print | grep vboxdrv

/lib/modules/5.6.11.a-1-hardened/kernel/misc/vboxdrv.ko.xz

The Arch Wiki Security page (https://wiki.archlinux.org/index.php/Se … le_loading) states the following

Restricting module loading

The default Arch kernel has CONFIG_MODULE_SIG_ALL enabled which signs all kernel modules build as part of the linux package. 
This allows the kernel to restrict modules to be only loaded when they are signed with a valid key, in practical terms this means that all out of tree 
modules compiled locally or provides by packages such as virtualbox-host-modules-arch cannot be loaded. 
Kernel module loading can be restricted by setting the kernel parameter module.sig_enforce=1. More information can be found at the kernel documentation. 

But I have loaded virtualbox modules on a linux-hardened kernel before, as I said in the initial post.

Понравилась статья? Поделить с друзьями:
  • Modoru error your current system software version is not supported ps vita
  • Mmtool error loading rom image 80000001h
  • Mmrc not found как исправить при установке модов
  • Mme ошибка внутреннего устройства adobe audition
  • Mme device internal error do you want to open the audio hardware preference