Virtualbox n funciona no linux mint

o título já explica o problema, o estranho é que no linux mint debian edition funcionava

Captura%20de%20tela%20em%202019-07-10%2023-51-43

1 Curtida

Tente seguir o tutorial desse tópico :thinking:

1 Curtida

Cara tinha esse mesmo problema no meu mint quando usava dual boot com windows, formatei minha maquina só com o mint e desativei o secure boot e esse problema não aconteceu mais. Por algum motivo que não consegui encontrar o modulo do kernel virtual não funcionava com o secure boot ativado.

1 Curtida

Acabei voltando pro Linux mint debian edition (daonde nunca deveria ter saído) e nele o virtual box filunciona normal

BLZ?
no meu cinnamon nao funciona! incrivel., pq sera? acho q vou instalar o debian.( a primeira experiencia nao foi tao boa)

segue o q aconteceu…

(desculpem, achei topicos parecidos, mas nada funcionou ou havia detalhes diferentes)
Uso LINUX MINT 20 cinnamon(mas no mint 19.03 acontecia erro parecido); Virtualbox Versão 6.1.10_Ubuntu r138449. pacotes instalados pelo gerenciador de arquivos:
qt based user interface, binarios base, kernel module sources for dkms, (ext-pack)extra capabilities for virtualbox downloader, guest - dkms. (( anteriormente, tentei pelo site, inclusive versoes mais antigas)).

Instalação ok, mas durante a inicialização da iso ubuntu 20 acontece o erro:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by executing
‘modprobe vboxdrv’
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.

Falha ao abrir uma sessão para a máquina virtual LINUX UBUNTU 20.

detalhes
The virtual machine ‘LINUX UBUNTU 20’ has terminated unexpectedly during startup with exit code 1 (0x1).
Código de Resultado:
NS_ERROR_FAILURE (0x80004005)
Componente:
MachineWrap
Interface:
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

Após procedimentos como root, o terminal retornou:

erro virtualbox

------- Uninstall Beginning --------
Module: virtualbox
Version: 6.1.10
Kernel: 5.4.0-40-generic (x86_64)

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

vboxdrv.ko:

  • Uninstallation
    • Deleting from: /lib/modules/5.4.0-40-generic/updates/
  • 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/5.4.0-40-generic/updates/
  • 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/5.4.0-40-generic/updates/
  • 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: 6.1.10
completely from the DKMS tree.

Done.
A descompactar virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) sobre (6.1.10-dfsg-1~ubuntu1.20.04.1) …
Configurando virtualbox-dkms (6.1.10-dfsg-1~ubuntu1.20.04.1) …
Loading new virtualbox-6.1.10 DKMS files…
Building for 5.4.0-40-generic
Building initial module for 5.4.0-40-generic
Done.

vboxdrv.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/5.4.0-40-generic/updates/

vboxnetadp.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/5.4.0-40-generic/updates/

vboxnetflt.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/5.4.0-40-generic/updates/

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 Sun 2020-07-19 21:25:03 -03; 15ms ago
Docs: man:systemd-sysv-generator(8)
Process: 29320 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

jul 19 21:25:02 linuxmint20 systemd[1]: Starting LSB: VirtualBox Linux kernel module…
jul 19 21:25:02 linuxmint20 virtualbox[29320]: * Loading VirtualBox kernel modules…
jul 19 21:25:03 linuxmint20 virtualbox[29320]: * modprobe vboxdrv failed. Please use ‘dmesg’ to find out why
jul 19 21:25:03 linuxmint20 virtualbox[29320]: …fail!
jul 19 21:25:03 linuxmint20 systemd[1]: virtualbox.service: Control process exited, code=exited, status=1/FAILURE
jul 19 21:25:03 linuxmint20 systemd[1]: virtualbox.service: Failed with result ‘exit-code’.
jul 19 21:25:03 linuxmint20 systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
root@linuxmint20:~#

Obrigado.

Boa noite camarada!
Você conseguiu resolver o problema na instalação do Virtualbox? Se sim, pode postar como conseguiu?
Obrigado!

Mel dels isso faz mas de 1 ano, não lembro mais.
Mas vai aí algumas coisas que você pode tentar:

sudo modprobe vboxdrv

ou desativar o secure boot na BIOS.