[Risolto] Installazione VirtualBox

Buongiorno,
vorrei installare Virtualbox.
Ho attivato i repo di Virtualbox, da lì ho installato il programma e tutte le dipendenze (linux-headers, linux-devel, gcc, gcc +, make, ecc.). Il problema è che non riesco a ricostruire i moduli kernel tramite il file vboxdrv.sh, che non trovo. Ho seguito questa guida: https://linuxhub.it/article/howto-installare-virtualbox-60-su-fedora-29.
Durante l’attivazione del computer il caricamento del kernel-devel da errore.
Grazie per l’aiuto.

Lascia perdere i repository VirtualBox e la compilazione del programma.

# dnf install VirtualBox

(devi avere i repository di rpmfusion abilitati).

Installato da rpmfusion, il programma si avvia. Ho creato la macchina virtuale, però quando la faccio partire mi da errore:

[quote]The VirtualBox Linux kernel driver (vboxdrv) is probably not loaded.You may not have kernel driver installed for kernel that is runnig, if so you may do as root: dnf install akmod-VirtualBox kernel-devel-$(uname -r)If you installed VirtualBox packages and don’t want reboot the system, you may need load the kernel driver, doing as root: akmods; systemctl restart systemd-modules-load.service

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. [/quote]

Hai già dato i comandi

# dnf install akmod-VirtualBox kernel-devel-$(uname -r)

e, se necessario,

# akmods; systemctl restart systemd-modules-load.service

(come suggerito dal messaggio che hai postato)?

I pacchetti akmod-VirtualBox e kernel-devel erano già installati, ho ricontrollato per conferma.

Ho dato i comandi:

[andrea@dell ~]$ sudo akmods [sudo] password di andrea: Riprovare. [sudo] password di andrea: Checking kmods exist for 5.2.17-200.fc30.x86_64 OK ] [andrea@dell ~]$ sudo akmods; systemctl restart systemd-modules-load.service Checking kmods exist for 5.2.17-200.fc30.x86_64 OK ] Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details.

Risulta un errore sul caricamento di systemd-modules, non so come guardare il file di errore.

[quote=Gandalf]I pacchetti akmod-VirtualBox e kernel-devel erano già installati, ho ricontrollato per conferma.

Ho dato i comandi:

[andrea@dell ~]$ sudo akmods [sudo] password di andrea: Riprovare. [sudo] password di andrea: Checking kmods exist for 5.2.17-200.fc30.x86_64 OK ] [andrea@dell ~]$ sudo akmods; systemctl restart systemd-modules-load.service Checking kmods exist for 5.2.17-200.fc30.x86_64 OK ] Job for systemd-modules-load.service failed because the control process exited with error code. See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details.

Risulta un errore sul caricamento di systemd-modules, non so come guardare il file di errore.[/quote]

Dovresti “postare” l’output del comando:

journalctl -xe

Eccolo qua:

[code][andrea@dell ~]$ journalctl -xe
– Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

– L’unità systemd-modules-load.service ha iniziato la fase di avvio.
ott 08 14:42:35 dell systemd-modules-load[20933]: Failed to insert module ‘vboxdrv’: Operation not permitted
ott 08 14:42:35 dell systemd-modules-load[20933]: Failed to insert module ‘vboxnetflt’: Operation not permitted
ott 08 14:42:35 dell systemd-modules-load[20933]: Failed to insert module ‘vboxnetadp’: Operation not permitted
ott 08 14:42:35 dell systemd-modules-load[20933]: Failed to insert module ‘vboxpci’: Operation not permitted
ott 08 14:42:35 dell systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
– Subject: Unit process exited
– Defined-By: systemd
– Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

– An ExecStart= process belonging to unit systemd-modules-load.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 1.
ott 08 14:42:35 dell systemd[1]: systemd-modules-load.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

– The unit systemd-modules-load.service has entered the ‘failed’ state with result ‘exit-code’.
ott 08 14:42:35 dell systemd[1]: Failed to start Load Kernel Modules.
– Subject: L’unità systemd-modules-load.service è fallita
– Defined-By: systemd
– Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

– L’unità systemd-modules-load.service è fallita.

– Il risultato è failed.
ott 08 14:42:35 dell audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-modules-load comm=“systemd” e>
ott 08 14:42:35 dell polkitd[1100]: Unregistered Authentication Agent for unix-process:20908:10226548 (system bus name :1.2037, object path /org/freedesktop/PolicyKit1/>
ott 08 14:42:40 dell systemd[1752]: dbus-:[email protected]: Succeeded.
– Subject: Unit succeeded
– Defined-By: systemd
– Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel

– The unit UNIT has successfully entered the ‘dead’ state.[/code]
Alcune frasi proseguono oltre il bordo del terminale, c’è un comando che possa “mandare a capo” le frasi?

Non so se ti può essere utile, ma guarda questa https://forums.virtualbox.org/viewtopic.php?f=7&t=91160 sul forum di virtualbox.
Magari fa al caso tuo.

Ho letto la discussione, è simile al mio problema. Purtroppo se do il comando vboxconfig non esiste.

[andrea@dell /]$ sudo vboxconfig [sudo] password di andrea: sudo: vboxconfig: comando non trovato
Poi l’utente, nella discussione, dice di creare una nuova chiave, ma mi sono perso :frowning:
Infine, il titolo della discussione, è (tradotto con un programma di traduzione) “Far funzionare VirtualBox con l’avvio sicuro”, se il problema è far l’avvio sicuro di Virtualbox, lo installo senza avvio sicuro. Sperando di aver capito bene il titolo della discussione.

Una settima per capire che il problema è il SecureBoot attivo. C’è una guida apposita di fedora project, che spiega come firmare i kernel manualmente. Troppo complicato per me https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/kernel-module-driver-configuration/Working_with_Kernel_Modules/#sect-signing-kernel-modules-for-secure-boot
Ho trovato anche questa guida:
https://gorka.eguileor.com/vbox-vmware-in-secureboot-linux-2016-update/
Sempre, troppo difficile per me.
Inizialmente ho pensato che installando come super utente, si risolvesse il problema, ma si ripresentava lo stesso.

Ho risolto disattivando il boot sicuro dal BIOS, ora tutto funziona.

[andrea@localhost ~]$ mokutil --sb-state SecureBoot disabled