• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

modprobe vboxdrv failed

Sauerland

Ultimate Guru
Ich würde:
Alle preempt-kernel löschen, aufpassen, das die default-kernel nicht mit-gelöscht werden, Virtualbox löschen.

Neu starten

Virtualbox neu installieren und neu starten.
 
OP
L

Linux-Idefix

Newbie
Habe Ihre Anordnung befolgt

nun folgende Meldung

Code:
sudo /sbin/vboxconfig
[sudo] Passwort für root: 
Das hat nicht funktioniert, bitte nochmal probieren.
[sudo] Passwort für root: 
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: You must sign these kernel modules before using VirtualBox:
  vboxdrv vboxnetflt vboxnetadp
See the documentation for your Linux distribution..
vboxdrv.sh: Building VirtualBox kernel modules.
/opt/VirtualBox/vboxdrv.sh: Zeile 538: /usr/lib/virtualbox/check_module_dependencies.sh: Datei oder Verzeichnis nicht gefunden

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.

nano /opt/VirtualBox/vboxdrv.sh

Code:
# setup_script
setup()
{
    begin_msg "Building VirtualBox kernel modules" console
    log "Building the main VirtualBox module."
    if ! myerr=`$BUILDINTMP \
        --save-module-symvers /tmp/vboxdrv-Module.symvers \
        --module-source "$MODULE_SRC/vboxdrv" \
        --no-print-directory install 2>&1`; then
        "${INSTALL_DIR}/check_module_dependencies.sh" || exit 1      <---Zeile 538
        log "Error building the module:"
        module_build_log "$myerr"
        failure "Look at $LOG to find out what went wrong"
    fi
    log "Building the net filter module."
    if ! myerr=`$BUILDINTMP \
        --use-module-symvers /tmp/vboxdrv-Module.symvers \
        --module-source "$MODULE_SRC/vboxnetflt" \
        --no-print-directory install 2>&1`; then
        log "Error building the module:"
        module_build_log "$myerr"
        failure "Look at $LOG to find out what went wrong"
    fi
    log "Building the net adaptor module."
    if ! myerr=`$BUILDINTMP \
 

Sauerland

Ultimate Guru
Noch einmal:
Du musst kein vboxconfig ausführen, damit machst du mehr kaputt als das es hilft.
Denn du baust neue Module, die natürlich nicht signiert sind.

Virtualbox muss so funktionieren.

Ansonsten Fehlermeldung posten.
 

Sauerland

Ultimate Guru
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: You must sign these kernel modules before using VirtualBox:
vboxdrv vboxnetflt vboxnetadp
See the documentation for your Linux distribution..
vboxdrv.sh: Building VirtualBox kernel modules.
/opt/VirtualBox/vboxdrv.sh: Zeile 538:

Warum /opt/Virtualbox/vboxdrv.sh????????

Hast du Virtualbox von der Virtualbox Webseite oder deren Repo installiert?
 
OP
L

Linux-Idefix

Newbie
Deinstalliert, neu gebootet, installiert mit yast

Code:
virtualbox-kmp-default wird heruntergeladen (Downloadgröße 530 KiB)
virtualbox wird heruntergeladen (Downloadgröße 31,66 MiB)
virtualbox-qt wird heruntergeladen (Downloadgröße 3,15 MiB)
virtualbox-kmp-default-6.1.30_k5.3.18_59.37-lp153.2.18.1.x86_64.rpm wird installiert (installierte Größe: 1,59 MiB)
virtualbox-6.1.30-lp153.2.18.1.x86_64.rpm wird installiert (installierte Größe: 84,89 MiB)
virtualbox-qt-6.1.30-lp153.2.18.1.x86_64.rpm wird installiert (installierte Größe: 20,96 MiB)

beim Start folgender Meldung mit "VirtualBoxVM --startvm T10"

Code:
VirtualBoxVM --startvm T10
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (5.3.18-59.37-default) 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.
VirtualBoxVM: Error -1908 in suplibOsInit!
VirtualBoxVM: Kernel driver not installed

VirtualBoxVM: Tip! Make sure the kernel module is loaded. It may also help to reinstall VirtualBox.
idefix $ QSettings::value: Empty key passed
QSettings::value: Empty key passed
Code:
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.
 

Sauerland

Ultimate Guru
VirtualBoxVM --startvm T10

Ähh
Code:
which VirtualBoxVM
which: no VirtualBoxVM in (/home/stephan/.local/bin:/home/stephan/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)

Hier auf Leap 15.3 mit kernel:stable:backport aus meinem Repo.


Auf dem Laptop frisch installiert:
Code:
zypper in virtualbox-qt 
Metadaten von Repository 'Packman Repository' abrufen ...........................................[fertig]
Cache für Repository 'Packman Repository' erzeugen ..............................................[fertig]
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
Paketabhängigkeiten werden aufgelöst...

Das folgende empfohlene Paket wurde automatisch gewählt:
  virtualbox-qt

Die folgenden 3 NEUEN Pakete werden installiert:
  virtualbox virtualbox-kmp-default virtualbox-qt

3 neue Pakete zu installieren.
Gesamtgröße des Downloads: 39,8 MiB. Bereits im Cache gespeichert: 0 B. Nach der Operation werden
zusätzlich 137,1 MiB belegt.
Fortfahren? [j/n/v/...? zeigt alle Optionen] (j): 
Paket virtualbox-kmp-default-6.1.30_k5.3.18_57-lp153.623.3.x86_64 abrufen
                                                                    (1/3),   3,2 MiB ( 20,3 MiB entpackt)
Abrufen: virtualbox-kmp-default-6.1.30_k5.3.18_57-lp153.623.3.x86_64.rpm ............[fertig (1,3 MiB/s)]
Paket virtualbox-6.1.30-lp153.623.4.x86_64 abrufen                  (2/3),  33,2 MiB ( 94,3 MiB entpackt)
Abrufen: virtualbox-6.1.30-lp153.623.4.x86_64.rpm ...................................[fertig (2,3 MiB/s)]
Paket virtualbox-qt-6.1.30-lp153.623.4.x86_64 abrufen               (3/3),   3,4 MiB ( 22,5 MiB entpackt)
Abrufen: virtualbox-qt-6.1.30-lp153.623.4.x86_64.rpm ..............................[fertig (874,1 KiB/s)]

Überprüfung auf Dateikonflikte läuft: ...........................................................[fertig]
(1/3) Installieren: virtualbox-kmp-default-6.1.30_k5.3.18_57-lp153.623.3.x86_64 .................[fertig]
(2/3) Installieren: virtualbox-6.1.30-lp153.623.4.x86_64 ........................................[fertig]
Zusätzliche rpm-Ausgabe:
setting /usr/lib/virtualbox/VBoxNetNAT to root:vboxusers 4750. (wrong permissions 0755)
setting /usr/lib/virtualbox/VBoxNetDHCP to root:vboxusers 4750. (wrong permissions 0755)
setting /usr/lib/virtualbox/VBoxNetAdpCtl to root:vboxusers 4750. (wrong permissions 0755)
setting /usr/lib/virtualbox/VBoxHeadless to root:vboxusers 4750. (wrong permissions 0755)


(3/3) Installieren: virtualbox-qt-6.1.30-lp153.623.4.x86_64 .....................................[fertig]
Zusätzliche rpm-Ausgabe:
setting /usr/lib/virtualbox/VirtualBoxVM to root:vboxusers 4750. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxSDL to root:vboxusers 4750. (wrong permissions 0755)


%posttrans scripts werden ausgeführt ............................................................[fertig]

Code:
which VirtualBoxVM
which: no VirtualBoxVM in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)

Also was läuft dort??????
 
OP
L

Linux-Idefix

Newbie
Code:
sudo zypper in virtualbox-qt 
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
Paketabhängigkeiten werden aufgelöst...

Das folgende empfohlene Paket wurde automatisch gewählt:
  virtualbox-qt

Die folgenden 3 NEUEN Pakete werden installiert:
  virtualbox virtualbox-kmp-default virtualbox-qt

3 neue Pakete zu installieren.
Gesamtgröße des Downloads: 35,3 MiB. Bereits im Cache gespeichert: 0 B. Nach der Operation werden zusätzlich 107,4 MiB belegt.
Fortfahren? [j/n/v/...? zeigt alle Optionen] (j): j
Paket virtualbox-kmp-default-6.1.30_k5.3.18_59.37-lp153.2.18.1.x86_64 abrufen                                                                                                                                                             (1/3), 530,0 KiB (  1,6 MiB entpackt)
Abrufen: virtualbox-kmp-default-6.1.30_k5.3.18_59.37-lp153.2.18.1.x86_64.rpm ..........................................................................................................................................................................................[fertig]
Paket virtualbox-6.1.30-lp153.2.18.1.x86_64 abrufen                                                                                                                                                                                       (2/3),  31,7 MiB ( 84,9 MiB entpackt)
Abrufen: virtualbox-6.1.30-lp153.2.18.1.x86_64.rpm ........................................................................................................................................................................................................[fertig (1,6 MiB/s)]
Paket virtualbox-qt-6.1.30-lp153.2.18.1.x86_64 abrufen                                                                                                                                                                                    (3/3),   3,1 MiB ( 21,0 MiB entpackt)
Abrufen: virtualbox-qt-6.1.30-lp153.2.18.1.x86_64.rpm .....................................................................................................................................................................................................[fertig (1,3 MiB/s)]

Überprüfung auf Dateikonflikte läuft: .................................................................................................................................................................................................................................[fertig]
(1/3) Installieren: virtualbox-kmp-default-6.1.30_k5.3.18_59.37-lp153.2.18.1.x86_64 ...................................................................................................................................................................................[fertig]
(2/3) Installieren: virtualbox-6.1.30-lp153.2.18.1.x86_64 .............................................................................................................................................................................................................[fertig]
Zusätzliche rpm-Ausgabe:
setting /usr/lib/virtualbox/VBoxNetNAT to root:vboxusers 4750. (wrong permissions 0755)
setting /usr/lib/virtualbox/VBoxNetDHCP to root:vboxusers 4750. (wrong permissions 0755)
setting /usr/lib/virtualbox/VBoxNetAdpCtl to root:vboxusers 4750. (wrong permissions 0755)
setting /usr/lib/virtualbox/VBoxHeadless to root:vboxusers 4750. (wrong permissions 0755)


(3/3) Installieren: virtualbox-qt-6.1.30-lp153.2.18.1.x86_64 ..........................................................................................................................................................................................................[fertig]
Zusätzliche rpm-Ausgabe:
setting /usr/lib/virtualbox/VirtualBoxVM to root:vboxusers 4750. (wrong permissions 0750)
setting /usr/lib/virtualbox/VBoxSDL to root:vboxusers 4750. (wrong permissions 0755)


%posttrans scripts werden ausgeführt ..................................................................................................................................................................................................................................[fertig]

Code:
 which VirtualBoxVM
/usr/bin/VirtualBoxVM
 

Sauerland

Ultimate Guru
Alles mein Fehler, installiere:
Code:
zypper in openSUSE-signkey-cert

Beim nächsten Start sollte eigentlich ein blauer Mok Bildschirm erscheinen:
https://forums.opensuse.org/showthread.php/560900-Help-on-booting-to-a-5-14-11-kernel-stable-backports-kernel-with-secure-boot-(or-must-I-disable)?p=3073187#post3073187

Wenn nicht, als root:
Code:
mokutil --import /etc/uefif/cert/BDD31A9E-kmp.crt --ignore-keyring

Danach sollte der blaue Bildschirm erscheinen.
 
OP
L

Linux-Idefix

Newbie
Hallo Sauerland

Es tut mir lei dass Sie lange warten mussten, habe nun den Rechner neu installiert und habe gehofft dass so unsere Probleme lösen, dem war nicht so.
Habe die SUSE 15.3 installiert mit der Virtualbox im ausgeschalteten Modus schnutt sie wie eine eins aber sonst immer die Meldung

Code:
Für die virtuelle Maschine X konnte keine neue Sitzung eröffnet werden.
The virtual machine 'X' has terminated unexpectedly during startup with exit code 1 (0x1).

Fehlercode: 
NS_ERROR_FAILURE (0x80004005)
Komponente: 
MachineWrap
Interface: 
IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

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

Dann habe ich deinen Rat befolgt folgendes Ergebnis

Code:
sudo zypper in openSUSE-signkey-cert
Metadaten von Repository 'Update repository with updates from SUSE Linux Enterprise 15' abrufen .......................................................................................................................................................................[fertig]
Cache für Repository 'Update repository with updates from SUSE Linux Enterprise 15' erzeugen ..........................................................................................................................................................................[fertig]
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
'openSUSE-signkey-cert' ist bereits installiert.
Kein Aktualisierungskandidat für 'openSUSE-signkey-cert-20210302-lp153.1.1.x86_64'. Die neueste Version ist bereits installiert.
Paketabhängigkeiten werden aufgelöst...
Keine auszuführenden Aktionen.

Also wenn das so große Probleme mit sich bringt dann muß ich mir geschlagen geben, bin ein normaler Linux Anwender.

Danke

Gruß Idefix
 
Oben