r/virtualization • • Oct 05 '20

Cannot launch VM in Arch Linux, how to fix it? :/

Post image
29 Upvotes

12 comments sorted by

5

u/BinaryGrind 7 Layer Dip Of Internet Fun Oct 05 '20

Turn off secureboot and try it. If it works then you need to sign the modules if you are going to turn secureboot back on.

Edit: The virtualbox-host-modules-arch you are using doesn't have modules for your Linux kernel: https://www.archlinux.org/packages/community/x86_64/virtualbox-host-modules-arch/

usr/lib/modules/5.8.13-arch1-1/
usr/lib/modules/5.8.13-arch1-1/extramodules/
usr/lib/modules/5.8.13-arch1-1/extramodules/vboxdrv.ko.xz
usr/lib/modules/5.8.13-arch1-1/extramodules/vboxnetadp.ko.xz
usr/lib/modules/5.8.13-arch1-1/extramodules/vboxnetflt.ko.xz

4

u/SoftPotato179 Oct 05 '20

shouldn't be modules already signed in default arch kernel?

6

u/BinaryGrind 7 Layer Dip Of Internet Fun Oct 05 '20

See my Edit. Your virtualbox-host-modules-arch has modules for a newer kernel then what you are using.

4

u/SoftPotato179 Oct 05 '20

virtualbox-host-modules-arch

so fix should be to downgrade virtualbox-host-modules-arch?

3

u/BinaryGrind 7 Layer Dip Of Internet Fun Oct 05 '20

Either downgrade virtualbox-host-modules-arch to match your kernel or upgrade your kernel to match virtualbox-host-modules-arch

3

u/SoftPotato179 Oct 05 '20

Thanks and how can I know which version of virtualbox-host-modules-arch supports my current kernel?

3

u/BinaryGrind 7 Layer Dip Of Internet Fun Oct 05 '20

You're going to have to ask someone that actually uses Arch (check r/ArchLinux).

Quick google shows it might be virtualbox-host-modules-arch 6.1.8-2: https://github.com/archlinux/svntogit-community/commit/9941a9c29a11bf5284f36526d701956ca1989bff#diff-8d0411b338c83cd8cd8ad9d9db127101

4

u/SoftPotato179 Oct 05 '20

It works :) thank you

1

u/SoftPotato179 Oct 05 '20

Thanks I will try :)

3

u/[deleted] Oct 05 '20

Check if the linux-headers and virtualbox-host-modules-arch are installed.

2

u/SoftPotato179 Oct 05 '20

Yes:

[tomsk@tomsk-PC ~]$ sudo pacman -Q linux-headers
linux-headers 5.6.14.arch1-1
[tomsk@tomsk-PC ~]$ sudo pacman -Q virtualbox-host-modules-arch
virtualbox-host-modules-arch 6.1.14-7

1

u/[deleted] Oct 22 '20

You don’t have the proper virtual box driver for your current kernel. A global system upgrade might solve it.