VirtualBox 7.0.10 on kernel 6.4.10

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Michael2023
Posts: 1
Joined: 26. Aug 2023, 19:38

VirtualBox 7.0.10 on kernel 6.4.10

Post by Michael2023 »

I am trying to use Virtualbox 7.0.10 on Ubuntu with kernal 6.4.10 but I get this error.

Code: Select all

        vboxmanage -version
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module
             available for the current kernel (6.4.10-060410-generic) 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.
    7.0.10r158379
I think the problem is related to the DKMS installation. This is the error I get when trying to install the latest version of DKMS.

Code: Select all

    sudo dpkg -i virtualbox-dkms_7.0.10-dfsg-2_amd64.deb 
    (Reading database ... 202752 files and directories currently installed.)
    Preparing to unpack virtualbox-dkms_7.0.10-dfsg-2_amd64.deb ...
    Deleting module virtualbox-7.0.6 completely from the DKMS tree.
    Unpacking virtualbox-dkms (7.0.10-dfsg-2) over (7.0.6-dfsg-1) ...
    Setting up virtualbox-dkms (7.0.10-dfsg-2) ...
    Loading new virtualbox-7.0.10 DKMS files...
    Building for 6.4.10-060410-generic
    Building initial module for 6.4.10-060410-generic
    ERROR (dkms apport): kernel package linux-headers-6.4.10-060410-generic is not supported
    Error! Bad return status for module build on kernel: 6.4.10-060410-generic (x86_64)
    Consult /var/lib/dkms/virtualbox/7.0.10/build/make.log for more information.
    dpkg: error processing package virtualbox-dkms (--install):
     installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
    Errors were encountered while processing:
     virtualbox-dkms
Thank you in advance for any assistance you can provide.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VirtualBox 7.0.10 on kernel 6.4.10

Post by scottgus1 »

If I've read correctly, you may need to use the test builds or development snapshots for now for that Linux host OS version.

Also, Linux hosts have prerequisites for Virtualbox, see https://www.virtualbox.org/manual/ch02. ... nux-prereq
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: VirtualBox 7.0.10 on kernel 6.4.10

Post by Martin »

https://discussion.fedoraproject.org/t/ ... x/87492/12
looks like a similar problem.
That solution also worked for me with VirtualBox 6.1.46 on Fedora 37 with kernel 6.4.12.
marmel
Posts: 75
Joined: 1. Nov 2013, 03:44

Re: VirtualBox 7.0.10 on kernel 6.4.10

Post by marmel »

See Also:
viewtopic.php?t=110037

Bug report:
https://www.virtualbox.org/ticket/21796

In said bug report, I linked to the patch:
https://www.virtualbox.org/ticket/21796#comment:5

Or just use the latest test build, as suggested by @scottgus1, as that has also been patched.
oso2276
Posts: 21
Joined: 11. Sep 2023, 15:58

Re: VirtualBox 7.0.10 on kernel 6.4.10

Post by oso2276 »

Hi folks, I had the same issue here.
VirtualBox 7.0.10 refuses to work from kernel 6.4.10 to 6.4.15.
It used to work fine with 6.4.9 and earlier.

My work around was to move to Kernel 6.5 series.
Currently running VB 7.0.10 with kernel 6.5.2 and no issues.
I did not have any issues with 6.5-RC6, 6.5-RC7, 6.5.0 and 6.5.1

System:
VB 7.0.10
Kernel 6.5.2, Kubuntu 22.04, KDE Wayland
Alder lake i7-1260P, 64GB RAM, 2TB Samsung 980Pro

Regards
marmel
Posts: 75
Joined: 1. Nov 2013, 03:44

Re: VirtualBox 7.0.10 on kernel 6.4.10

Post by marmel »

oso2276 wrote: 11. Sep 2023, 16:07 VirtualBox 7.0.10 refuses to work from kernel 6.4.10 to 6.4.15.
It used to work fine with 6.4.9 and earlier.

My work around was to move to Kernel 6.5 series.
Well, if you looked at the aforementioned patch, you'd realize this is all expected.

You didn't "work around" anything.
oso2276
Posts: 21
Joined: 11. Sep 2023, 15:58

Re: VirtualBox 7.0.10 on kernel 6.4.10

Post by oso2276 »

Yes, 7.0.10 indeed lists initial 6.5 kernel support.
Yet it failed with kernel 7.4.10 and newer.
Since several of 7.4.10 patches are present in 7.5 kernel series, I though we might have issues, nevertheless all is working fine.

For me switching to 6.5 kernel was a workaround as I did not have plans to move to 6.5 kernel this early.
Post Reply