this post was submitted on 27 Feb 2024
2 points (75.0% liked)

Nix / NixOS

1670 readers
11 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

So i followed the instructions to install virtualbox and added myself to the vboxusers group, but i cant run VMs as a standard user. The GUI message says "VirtualBox kernel driver is not accessible, permission problem" the VM log says "ERROR [COM]: aRC=E ACCESSDENIED (0x80070005) aText={The console is not powered up}"

Someone on mastodon mentioned /dev/vboxdrv and that file is "crw-rw---- root vboxusers". There is also a file /dev/vboxdrvu which is "crw-rw-rw- root root" but changing that to root vboxusers with chown didnt work.

I can run VMs as root just fine. Any thoughts?

Edit: new to NixOS and really enjoying it so far

Edit 2: SOLVED: I had "virtualbox" as a package under "envoronment.systemPackages = with pkgs; [" and wasnt supposed too.

top 4 comments
sorted by: hot top controversial new old
[–] recursive_recursion@programming.dev 2 points 7 months ago (2 children)
[–] shortwavesurfer@monero.town 1 points 7 months ago (1 children)

I got it. What I was doing wrong is that I had the package virtual box in my system packages and had the lines configured for virtual box at the bottom. And I guess they were somehow conflicting with each other.

although I wasn't able to help I'm glad you were able to find a solution to your problem🤗

[–] shortwavesurfer@monero.town 1 points 7 months ago

Nope, i have all those lines as single line configs at the bottom of my configuration.nix and still no joy.