Skip to content

[Bug]: /sbin/vboxconfig fails on AlmaLinux 9.8 host [5.14.0-687.19.1.el9_8.x86_64 kernel] #734

Description

@gebailey

Version

7.2.10

Host OS Type

Linux

Host OS name + version

AlmaLinux release 9.8 (Olive Jaguar)

Host Architecture

x86

Guest OS Type

all

Guest Architecture

x86

Guest OS name + version

N/A

Component

Host Support

What happened?

This seems possibly related to #732 except that this relates to the host driver compilation that occurs when installing VirtualBox on recent RHEL 9 kernels. Failure is observed with versions 7.2.10 and 7.2.12.

/sbin/vboxconfig says:

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

/var/log/vbox-setup.log contains:

...
In file included from /tmp/vbox.0/combined-os-specific.c:43:
/tmp/vbox.0/r0drv/linux/fileio-r0drv-linux.c: In function ‘VBoxHost_RTFileOpen’:
/tmp/vbox.0/r0drv/linux/fileio-r0drv-linux.c:162:30: error: implicit declaration of function ‘open_with_fake_path’ [-Werror=implicit-function-declaration]
  162 |         struct file *pFile = open_with_fake_path(&Path, fOpenMode, d_inode(Path.dentry), current_cred());
      |                              ^~~~~~~~~~~~~~~~~~~
/tmp/vbox.0/r0drv/linux/fileio-r0drv-linux.c:162:30: warning: initialization of ‘struct file *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
...

vbox-setup.log

How can we reproduce this?

  1. AlmaLinux 9 host running 5.14.0-687.19.1.el9_8.x86_64 kernel (I believe kernel-5.14.0-687.17.1.el9_8.x86_64 also shows this issue)
  2. dnf install ./VirtualBox-7.2-7.2.12_174389_el9-1.x86_64.rpm
  3. (observe failure)
  4. /sbin/vboxconfig
  5. (failure)

I think kernel-5.14.0-687.15.1.el9_8.x86_64 did not encounter this issue.

Did you upload all of your necessary log files, screenshots, etc.?

  • Yes, I've uploaded all pertinent files to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions