!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

338 Members
https://github.com/nix-community/NixOS-WSL57 Servers

Load older messages


SenderMessageTime
8 Feb 2025
@terrorjack:matrix.orgterrorjack removed their profile picture.02:25:00
@mwoodpatrickmx:matrix.orgmwoodpatrickmx

I'm having a problem adding quickgui to my NixOS flake its failing with:

	[   +5 ms] Failed obtaining PRETTY_NAME for Linux: PathNotFoundException: Cannot open file, path = '/usr/lib/os-release' (OS Error: No such file or directory, errno = 2)

Indeed the path /usr/lib/os-release does not exist on my NixOS install which is running as a WSL-2 distro. Should this file exist any suggestions as to why its missing or best way to debug?

12:46:18
@sandro:supersandro.deSandro 🐧There is no /usr/lib on NixOS12:55:35
@sandro:supersandro.deSandro 🐧os-release exists distro wide at /etc/os-release12:55:53
@mwoodpatrickmx:matrix.orgmwoodpatrickmxRunning qemu on wsl-2 using: nix run microvm#graphics neverball I'm getting the following errors does anyone have any suggestions on how to fix/debug: [2025-02-08T17:04:33.342691105+00:00 ERROR gpu_display::gpu_display_wl] missing interface linux_dmabuf [2025-02-08T17:04:33.342796044+00:00 ERROR devices::virtio::gpu] failed to open display: failed to connect to compositor [2025-02-08T17:04:33.342816203+00:00 ERROR devices::virtio::gpu] failed to open display: unsupported by the implementation 17:18:51
@k900:0upti.meK900It's not going to run the way you think 17:25:32
@k900:0upti.meK900Nested virt is not good, especially on WSL 17:25:42
@mwoodpatrickmx:matrix.orgmwoodpatrickmxCan you elaborate as to why I have none graphical qemu guests running without issue.17:28:18
@k900:0upti.meK900
In reply to @mwoodpatrickmx:matrix.org
Can you elaborate as to why I have none graphical qemu guests running without issue.
Because you're trying to do nested virtualization, that's inherently problematic
17:35:26
@k900:0upti.meK900But also NixOS on WSL doesn't have graphics acceleration working properly half the time 17:35:39
@marcel:envs.netMarcel joined the room.20:26:11
9 Feb 2025
@mwoodpatrickmx:matrix.orgmwoodpatrickmxWhere can I find the bugs filed against graphics acceleration issues on WSL?12:44:25
@mwoodpatrickmx:matrix.orgmwoodpatrickmxIn my NixOS WSL distro the /etc/groups file shows kvm:x:302 But ls -l /dev/kvm crw-rw---- 1 root 104 10, 232 Feb 9 04:14 /dev/kvm How can I fix this? 12:48:08
@mwoodpatrickmx:matrix.orgmwoodpatrickmx* In my NixOS WSL distro the /etc/groups file shows kvm:x:302 But ls -l /dev/kvm crw-rw---- 1 root 104 10, 232 Feb 9 04:14 /dev/kvm Other distros (e.g. Debian) show the correct group id. How can I fix this in NixOs? 12:49:58
@k900:0upti.meK900
In reply to@mwoodpatrickmx:matrix.org
Where can I find the bugs filed against graphics acceleration issues on WSL?
Do you mean upstream issues or NixOS specific issues?
12:51:24
@k900:0upti.meK900
In reply to@mwoodpatrickmx:matrix.org
In my NixOS WSL distro the /etc/groups file shows kvm:x:302 But ls -l /dev/kvm crw-rw---- 1 root 104 10, 232 Feb 9 04:14 /dev/kvm Other distros (e.g. Debian) show the correct group id. How can I fix this in NixOs?
It doesn't do that for me
12:52:01
@mwoodpatrickmx:matrix.orgmwoodpatrickmxNixOS specific issues I'm not seeing the same graphics issues on other Distributions12:53:36
@k900:0upti.meK900I don't know if there's a specific issue12:54:05
@k900:0upti.meK900But fundamentally it's just that Windows provides the Linux side d3d12 drivers12:54:28
@k900:0upti.meK900And those are dynamically linked12:54:39
@k900:0upti.meK900And don't work as-is on NixOS12:54:44
@k900:0upti.meK900Actually I think recent Nvidia should work now?12:55:03
@k900:0upti.meK900AMD definitely not12:55:15
@k900:0upti.meK900Intel I don't have12:55:23
@mwoodpatrickmx:matrix.orgmwoodpatrickmxI have Intel currently, hoping to get an NVidia digits system when released. Are there other NVidia systems where you think it might work?13:00:24
@k900:0upti.meK900I don't think those Nvidia systems can even run Windows/13:01:59
@k900:0upti.meK900* I don't think those Nvidia systems can even run Windows?13:02:00
@k900:0upti.meK900They're aarch6413:02:15
@k900:0upti.meK900Also they're likely not going to run NixOS out of the box13:02:22
@k900:0upti.meK900Because they're completely bespoke and don't have drivers in mainline13:02:33

Show newer messages


Back to Room ListRoom Version: 9