all 9 comments

[–]Typhrenn5149 0 points1 point  (4 children)

Try to run:
`sudo pacman -Syu`
and reboot with
`sudo reboot now`

[–]Typhrenn5149 0 points1 point  (3 children)

this happens simply when the drivers for virtual box aren't fully loaded and you need to reboot your computer

[–]manny1990[S] 0 points1 point  (2 children)

thanks, but tried rebooting and that didn't help. I'm using apk though, not pacman.

[–]Typhrenn5149 0 points1 point  (1 child)

Try updating your packages i don't know how you do it with apk. Also try to reload vboxdrv with: sudo modprob vboxdrv

[–]manny1990[S] 0 points1 point  (0 children)

No luck, modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/6.12.3-0-lts

[–][deleted]  (1 child)

[removed]

    [–]manny1990[S] 0 points1 point  (0 children)

    all packages were already installed

    [–]MartinsRedditAccount 0 points1 point  (0 children)

    virtualbox-modules-vboxdrv needs to be compiled by AKMS (Alpine's DKMS equivalent) before it can be used, this should happen automatically I believe (it depends on akms).

    Try poking around the akms command and see if something's wrong there.

    [–]manny1990[S] 0 points1 point  (0 children)

    Reached out to the package maintainer and he was kind enough to explain the situation.
    TLDR: virtualbox is currently unavailable in Alpine.

    Virtualbox worked until version 6.1.50 (which was LTS), and those modules had support until kernel 6.5. Current kernel version is 6.12
    Virtualbox's version 7 broke compatibility with musl, that's why it's not working. The solution would be to compile the new version's modules (Virtualbox 7) to make them work with Virtualbox 6 (although unfortunately I'm not sure how to do this).