[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

virtualbox-dkms und Kernel 5.15.0-2



Hallo Liste!

Kann sein, daß ich irgendetwas nicht mitgeschnitten habe 
aber virtualbox Version 6.1.16_Debian r140961 und mein aktueller
Kernel 5.15.0-2-amd64 wollen nicht miteinander.

Vermute es gab da größere Veränderungen, die ich nicht mitgekriegt habe.
Bin aber soweit beschrieben erst mal ratlos und hoffe auf Tipps von Euch.

Soweit meine Fehleranalyse:

Wenn ich virtualbox aus der Konsole als Benutzer aufrufe, dann
kommt folgende Meldung:
----
WARNING: The character device /dev/vboxdrv does not exist.
         Please install the virtualbox-dkms package and the appropriate
         headers, most likely linux-headers-amd64.

         You will not be able to start VMs until this problem is fixed.
----

Wenn ich virtualbox mittels Maus und Icon starte, sieht alles erst mal
gut aus, aber wenn ich dann eine virtuelle Maschine aufrufe kommt:
----
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

Für die virtuelle Maschine Windows 10 Home konnte keine neue Sitzung eröffnet
werden.

The virtual machine 'Windows 10 Home' has terminated unexpectedly during startup
with exit code 1 (0x1).

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

----

OK. Soweit, so gut. Nun ist aber besagtes Modul (virtualbox-dkms) installiert!

UND ein dpkg-reconfigure virtualbox-dkms als root für den aktuellen Kernel
bricht mit folgender Fehlermeldung ab:
----
Deleting module virtualbox-6.1.16 completely from the DKMS tree.
Loading new virtualbox-6.1.16 DKMS files...
Building for 5.15.0-2-amd64
Building initial module for 5.15.0-2-amd64
Error! Bad return status for module build on kernel: 5.15.0-2-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.16/build/make.log for more information.

----

Ein "tail -n 30 /var/lib/dkms/virtualbox/6.1.16/build/make.log" liefert:

----
In file included from
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/include/iprt/stdarg.h:47,
                 from
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/include/iprt/types.h:34,
                 from
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/include/VBox/types.h:33,
                 from
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/include/VBox/sup.h:33,
                 from
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/VBoxNetFltInternal.h:33,
                 from
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/VBoxNetFlt.c:261:
/usr/lib/gcc/x86_64-linux-gnu/11/include/stdarg.h:52: note: this is the location
of the previous definition
   52 | #define va_copy(d,s)    __builtin_va_copy(d,s)
      | 
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-linux.c: In
function ‘vboxNetFltNeedsLinkState’:
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-
linux.c:1761:47: error: invalid use of undefined type ‘const struct ethtool_ops’
 1761 |     if (pDev->ethtool_ops && pDev->ethtool_ops->get_drvinfo)
      |                                               ^~
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-
linux.c:1763:32: error: storage size of ‘Info’ isn’t known
 1763 |         struct ethtool_drvinfo Info;
      |                                ^~~~
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-
linux.c:1766:20: error: ‘ETHTOOL_GDRVINFO’ undeclared (first use in this
function)
 1766 |         Info.cmd = ETHTOOL_GDRVINFO;
      |                    ^~~~~~~~~~~~~~~~
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-
linux.c:1766:20: note: each undeclared identifier is reported only once for each
function it appears in
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-
linux.c:1767:26: error: invalid use of undefined type ‘const struct ethtool_ops’
 1767 |         pDev->ethtool_ops->get_drvinfo(pDev, &Info);
      |                          ^~
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-
linux.c:1763:32: warning: unused variable ‘Info’ [-Wunused-variable]
 1763 |         struct ethtool_drvinfo Info;
      |                                ^~~~
make[2]: *** [/usr/src/linux-headers-5.15.0-2-common/scripts/Makefile.build:282:
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt/linux/VBoxNetFlt-linux.o]
Fehler 1
make[1]: *** [/usr/src/linux-headers-5.15.0-2-common/scripts/Makefile.build:545:
/var/lib/dkms/virtualbox/6.1.16/build/vboxnetflt] Fehler 2
make: *** [/usr/src/linux-headers-5.15.0-2-common/Makefile:1892:
/var/lib/dkms/virtualbox/6.1.16/build] Fehler 2
make: Verzeichnis „/usr/src/linux-headers-5.15.0-2-amd64“ wird verlassen

----


Grüße

Mirulan


Reply to: