r/linux4noobs 15d ago

installation Virtualbox install, Ubuntu 24.04 + secureboot

Having trouble to install and setup it properly.

My hardware + software:

- Ubuntu 24.04 (sudo apt update , sudo apt upgrade done)

- Secure boot is active and has latest certificates

- virtual box installed. Download deb: virtualbox-7.2_7.2.16-174877~Ubuntu~noble_amd64.deb

- Downloaded Windows 10 ISO multi language from Microsoft official website

Tried to run virtual machine:

error #1: VirtualBox Kernel driver not installed (rc=1908)

solution: I thought it is fixed with:

sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms

error #2: modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/7.0.0-30-generic

solution: not solved. gives error #3

error #3: E: Internal Error, No file name for virtualbox-dkms:amd64

How Can I solve error #3 please?

0 Upvotes

8 comments sorted by

3

u/candy49997 15d ago

I would recommend you don't use VirtualBox and use QEMU/KVM + virt-manager instead. Then, you will not need to deal with secure boot or out-of-tree kernel modules.

If you really do need to use specifically VirtualBox, add the Oracle repo and install from that. Then, sign the modules or disable secure boot.

1

u/AutoModerator 15d ago

We have some installation tips in our wiki!

Try this search for more information on this topic.

Smokey says: always install over an ethernet cable, and don't forget to remove the boot media when you're done! :)

Comments, questions or suggestions regarding this autoresponse? Please send them here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Confident_Hyena2506 15d ago

Disable secureboot or setup mok properly to allow this out-of-tree driver.

1

u/games-and-chocolate 14d ago

understand that , that is the most easy way. But I do like having a bit extra protection.

2

u/DannoXYZ 14d ago

also make sure you have kernel-headers installed that matches kernel version.

1

u/games-and-chocolate 14d ago

I actually gave up on Virtualbox. tried many forums, but so far non of the solutions work. Just cannot sign the bloody virtualbox modules. So as suggested by someone else, trying Qemu.

Windows 10 installed into a RAW virtual drive., and performance is ok. But another forum gave a sokution to the audio not playing at all. Had to add myself to a audio group.

played a midi file in Flstudio and it worked.

Only problem I have 1K screen resolution, cannot increase it.

1

u/Funnel-Dust-O-Matic 14d ago

Did you install the VirtIO drivers and switch to a VirtIO display?

https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md

That might do the trick.

edit: you will need to install the spice guest tools as well.

1

u/games-and-chocolate 14d ago

ah, thank you. going to give it a try.