!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

332 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
18 Aug 2024
@k900:0upti.meK900 That is wsl --version 20:15:18
@whovian9369:matrix.orgWhovian9369
In reply to @whovian9369:matrix.org

Yep.

$  systemctl status user@1000
● user@1000.service - User Manager for UID 1000
     Loaded: loaded (/etc/systemd/system/user@.service; static)
    Drop-In: /nix/store/wckbdxx34b886d1rrgf2qx8wh97ngkpb-system-units/user@.service.d
             └─overrides.conf
     Active: active (running) since Sun 2024-08-18 16:13:35 EDT; 49s ago
 Invocation: 11780767dd7d44a899fef51313dd74a3
...
Including the log printing agenix ingesting and decrypting the secrets, which is good
20:15:30
@whovian9369:matrix.orgWhovian9369
In reply to @k900:0upti.me
That is wsl --version
$  wsl.exe --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.19045.4780
20:15:52
@k900:0upti.meK900 Try wsl --update --pre-release 20:16:02
@k900:0upti.meK900They have a slightly less insane way to start user sessions in 2.3.something20:16:18
@whovian9369:matrix.orgWhovian9369Normally I wouldn't like trying the "non-stable" versions, but will do.20:16:35
@k900:0upti.meK900(still insane, just slightly less)20:16:37
@whovian9369:matrix.orgWhovian9369Thank you for the time, by the way. 😅20:17:49
@whovian9369:matrix.orgWhovian9369Updated WSL to 2.3.17, so I'm starting my NixOS instance now20:25:43
@whovian9369:matrix.orgWhovian9369 Failed to connect to bus: No such file or directory again when trying $ systemctl status user@1000 again, what the hell systemd? 20:26:30
@whovian9369:matrix.orgWhovian9369
$  sudo su
sudo: effective uid is not 0, is /run/wrappers/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

Seems sudo broke now too, which definitely isn't uh, good

20:28:41
@k900:0upti.meK900 You want sudo -i 20:38:22
@k900:0upti.meK900 Not sudo su 20:38:25
@whovian9369:matrix.orgWhovian9369 That was just meant to be an example command to show that sudo is broken.
Either way, $ sudo whoami gives a similar error.
20:39:09
@k900:0upti.meK900That sounds very wrong20:40:07
@whovian9369:matrix.orgWhovian9369 Tested $ sudo whoami in my original Ubuntu instance and it still appears to work fine too 20:41:01
@whovian9369:matrix.orgWhovian9369

Here's the updated wsl --version output

WSL version: 2.3.17.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.64
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.19045.4780
20:41:30
@whovian9369:matrix.orgWhovian9369(Interestingly, the WSLg and DXCore versions differ now too? Not sure if that's intentional, and/or I'm misreading.)20:42:42
@k900:0upti.meK900Yes, that's normal20:42:47
@whovian9369:matrix.orgWhovian9369Happen to have any ideas, or am I just stuck with this issue for the time being?20:46:26
@k900:0upti.meK900 Can you check dmesg from the Ubuntu instance and see if there's any errors there? 20:47:17
@whovian9369:matrix.orgWhovian9369 Skimming to the end quickly, the output at the bottom exactly matches the one when run from nixpkgs 20:48:28
@whovian9369:matrix.orgWhovian9369 * Skimming to the end quickly, the output at the bottom exactly matches the one when run from Nix20:48:32
@whovian9369:matrix.orgWhovian9369And a couple quick "Page Up"s seems to show that they still match 20:49:38
@k900:0upti.meK900Yes, it is the same kernel20:50:10
@k900:0upti.meK900But it should also have messages from NixOS activatoin20:50:18
@k900:0upti.meK900* But it should also have messages from NixOS activation20:50:20
@k900:0upti.meK900 Actually, can you just try to wsl --shutdown and restart the VM first? 20:50:29
@whovian9369:matrix.orgWhovian9369Just did that actually, and started both NixOS and Ubuntu20:50:42
@whovian9369:matrix.orgWhovian9369
[    2.041577] WSL (2) WARNING: hostname set to nixos-wsl in /etc/wsl.conf
[    2.050661] WSL (2) WARNING: /usr/share/zoneinfo/America/New_York not found. Is the tzdata package installed?
[    2.068520] systemd_shim[1]: /dev/shm is not a symlink, leaving as-is...
[    2.069205] systemd_shim[1]: Remounting / shared...
[    2.069637] systemd_shim[1]: Remounting /nix/store read-only...
[    2.070372] systemd_shim[1]: Running activation script...
[    2.172772] Can't ignore signal CHLD, forcing to default.
[    2.314321] Can't ignore signal CHLD, forcing to default.
[    2.410033] setting up /run/booted-system...
[    2.411011] sh: line 1: grep: command not found
[    2.411305] sh: line 1: systemctl: command not found
[    2.413893] setting up /etc...
[    2.588282] setting up /bin...
[    2.595867] setting up /bin/login...
[    2.599100] setting up /sbin/init shim...
[    2.608438] systemd_shim[1]: Spawning real systemd...
[    2.666790] Failed to connect to bus: No such file or directory
[    2.922972] Failed to connect to bus: No such file or directory

Skimming dmesg made these jump out at me

20:51:48

Show newer messages


Back to Room ListRoom Version: 9