-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default VM configuration login fails #351
Comments
I'm also facing the same issue with all the vm-* variants. |
While ISO images just work, the vm variants seems to require a non empty user configuration. Adding this to my configuration fixed it for me: users.users.root.password = ""; |
This seems to have started working spontaneously to me. I've attempted to reproduce it with a nixpkgs checkout at the same commit I was using previously, but even that doesn't reproduce. Which I'm baffled by, as I'd thought that would run something identical to the test that was failing previously! Specifically, I'd expected running the below command in a nixpkgs repository to unambiguously repeat the same test I saw failing previously, but I'm now getting a VM that seems to work just fine.
I'm not going to close this issue just yet: the fact that I can't reproduce the failure any more makes me worry the problem hasn't actually been fixed… |
Running
nixos-generate -f vm-nogui --run
produces a VM that boots, but it fails at the login stage with the following error:It looks like running with
-f vm
fails similarly, but the error flashes up on screen too briefly to read clearly.The only similar error I was able to find was NixOS/nixpkgs#218813, but the fix that apparently worked there – configuring
services.nscd.enableNsncd = false
– did not seem to make any difference here. (More accurately, what I did was copy the default config/nix/store/q342qhd6yvvnb6rgqg2syd71zvzdl1x0-nixos-generators-1.8.0/share/nixos-generator/configuration.nix
pernixos-generate --help
to a local file, added that configuration line, then built that configuration path with-c
.)My environment, per
nix-shell -p nix-info --run 'nix-info -m'
:"x86_64-linux"
Linux 5.15.153.1-microsoft-standard-WSL2, NixOS, 24.05 (Uakari), 24.05.2662.249fbde2a178
yes
relaxed
nix-env (Nix) 2.18.4
"home-manager-24.05.tar.gz, nixos-24.05, nixos-unstable, nixos-wsl"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: