Não é possível carregar o módulo vboxdrv em 12.04 e 3.2.0-23-realtime

3

Estou tentando iniciar o VirtualBox sem sucesso, por favor, dê alguns conselhos sobre como corrigi-lo:

A GUI é aberta com êxito e posso adicionar imagens existentes, mas quando tento iniciar uma máquina virtual, recebo a mensagem:

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 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.

Instalei o virtualbox-dkms, a versão do apt-get e do site oracle, tentei executar /etc/init.d/vboxdrv setup , /etc/init.d/virtualbox/start , modprobe vboxdrv , mas meu sistema sempre reclama por não conseguir carregar o módulo do kernel:

FATAL: Error inserting vboxdrv (/lib/modules/3.2.0-23-realtime/updates/dkms/vboxdrv.ko): Unknown symbol in module, or unknown parameter (see dmesg)

Aqui está a saída de sudo dpkg-reconfigure virtualbox-dkms :

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 4.1.12
Kernel:  3.2.0-23-realtime (x86_64)
-------------------------------------

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

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.2.0-23-realtime/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/3.2.0-23-realtime/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/3.2.0-23-realtime/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/3.2.0-23-realtime/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.

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 4.1.12
Kernel:  3.2.0-24-generic (x86_64)
-------------------------------------

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

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /lib/modules/3.2.0-24-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/3.2.0-24-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/3.2.0-24-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/3.2.0-24-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: 4.1.12
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-4.1.12 DKMS files...
Building for 3.2.0-23-realtime and 3.2.0-24-generic
Building initial module for 3.2.0-23-realtime
^[[A^[[ADone.

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

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

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

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

depmod....

DKMS: install completed.
Building initial module for 3.2.0-24-generic
Done.

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

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

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

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

depmod....

DKMS: install completed.
 * Stopping VirtualBox kernel modules                                                                          [ OK ] 
 * Starting VirtualBox kernel modules                                                                                  * modprobe vboxdrv failed. Please use 'dmesg' to find out why

E também a saída de dmesg depois de tentar sudo modbrobe vboxdrv :

[ 1764.425935] vboxdrv: Unknown symbol down_write (err 0)
[ 1764.425968] vboxdrv: Unknown symbol up_write (err 0)
[ 1764.426096] vboxdrv: Unknown symbol down_read (err 0)
[ 1764.426169] vboxdrv: Unknown symbol up_read (err 0)
[ 1774.383081] vboxdrv: Unknown symbol down_write (err 0)
[ 1774.383096] vboxdrv: Unknown symbol up_write (err 0)
[ 1774.383131] vboxdrv: Unknown symbol down_read (err 0)
[ 1774.383157] vboxdrv: Unknown symbol up_read (err 0)
[ 1913.247363] vboxdrv: Unknown symbol down_write (err 0)
[ 1913.247430] vboxdrv: Unknown symbol up_write (err 0)
[ 1913.247526] vboxdrv: Unknown symbol down_read (err 0)
[ 1913.247594] vboxdrv: Unknown symbol up_read (err 0)
[ 2121.744210] applesmc: FS! : read arg fail
[ 2234.558172] vboxdrv: Unknown symbol down_write (err 0)
[ 2234.558183] vboxdrv: Unknown symbol up_write (err 0)
[ 2234.558207] vboxdrv: Unknown symbol down_read (err 0)
[ 2234.558227] vboxdrv: Unknown symbol up_read (err 0)
[ 2600.875176] vboxdrv: Unknown symbol down_write (err 0)
[ 2600.875208] vboxdrv: Unknown symbol up_write (err 0)
[ 2600.875303] vboxdrv: Unknown symbol down_read (err 0)
[ 2600.875373] vboxdrv: Unknown symbol up_read (err 0)

Eu fiz instalei os cabeçalhos do kernel: sudo apt-get install linux-headers-$(uname -r)

    
por Rafael Vega 16.05.2012 / 23:36

3 respostas

1

O módulo vboxdrv simplesmente não funciona com um kernel em tempo real do host. Mudar para um kernel de baixa latência "corrigiu" o problema para mim. Eu arquivei o seguinte bilhete: link

Eu uso os repositórios do KXStudio , então instalar o kernel de baixa latência foi muito fácil: sudo apt-get install kxstudio-kernel-lowlatency e depois usei < href="https://launchpad.net/grub-customizer"> Grub Customizer para defini-lo como meu kernel padrão. Depois de uma reinicialização, o virtualbox funcionou bem.

    
por Rafael Vega 20.05.2012 / 18:46
2

O kxstudio não está nos repositórios, você precisa obtê-lo em link

link | ppa: kxstudio-team / ppa

    
por OpenJacob 22.05.2012 / 00:44
1

Verifique se você já instalou o pacote linux-headers. É necessário compilar o módulo do kernel para o virtualbox.

    
por Eberval Castro 29.10.2012 / 10:42