am-linux:/ # /sbin/vboxconfig
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /usr/lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /usr/lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /usr/lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /usr/lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
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.
am-linux:/
The log in /var/log/vbox-setup.log is included as attachment. As this overtaxes me I would be grateful for a comment.
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.
The error messages in vbox-setup.log indicate that the VirtualBox version cannot be used with the Linux kernel of openSUSE 15.2 (mismatch in expected kernel structures). Which VirtualBox version are you trying to use, and where exactly did you get it from?
Looking at Download VirtualBox for Linux Hosts, it is quite possible that VirtualBox 6.1.12 for openSUSE 15.0 (Linux kernel 4.12) cannot be used on openSUSE 15.2 (Linux kernel 5.3). Maybe you should try the All distributions version.
Additionally, you could search the VirtualBox Bugtracker and create a new ticket if necessary.
Not sure that it's a compatibility issue, but a possibility. However, openSUSE has a long standing guide on dealing with this error message at the bottom of this 'page': https://en.opensuse.org/VirtualBox
The the general procedure is also covered in the VirtualBox User Guide - Section 2.3.2 , including a reference to actions possibly needed in openSUSE, but obviously can't cover specific command line instructions for every Linux variant.
That course of action probably also drew in the additional Linux 'dependencies' mentioned in their troubleshooting guide, which enable new kernel versions to be built. I'm not absolutely certain, but openSUSE seems to use unaltered VirtualBox installers unlike some other distributions, which offer their own 'forked' versions and which may include unknown changes to the opensource code tailored to their own needs.
For opensuse people which want to run oracle virtualbox stuff on leap 15.2 there is a workaround :
For the full story read : https://www.virtualbox.org/ticket/19724
Thanks to ichamel for the complete indication that helps me
The short story:
Patch : https://paste.opensuse.org/30651673
my install script : https://paste.opensuse.org/53405695
Run that script after a clean install of virtualbox with dependencies and recommended packages installed.
Run as normal user. root password is asked for issuing sudo.