Skip to content
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

nixos-rebuild build-vm don't boot because of PR 236656 #292156

Closed
symphorien opened this issue Feb 28, 2024 · 1 comment
Closed

nixos-rebuild build-vm don't boot because of PR 236656 #292156

symphorien opened this issue Feb 28, 2024 · 1 comment
Labels
0.kind: bug Something is broken

Comments

@symphorien
Copy link
Member

Describe the bug

VMs generated by nixos-rebuild build vm don't boot, they timeout waiting for a partition labeled nixos.

Steps To Reproduce

Steps to reproduce the behavior:
1.
create a file vm-minimal.nix:

{ config, pkgs, lib, ... }: {
  config = {
    console = {
      font = "Lat2-Terminus16";
      keyMap = "fr";
    };
    users.users.alice = {
      isNormalUser = true;
      initialPassword = "alice";
    };
    users.mutableUsers = false;
    documentation.enable = false;
  };
}
  1. build a vm from this configuration
nixos-rebuild build-vm -I nixos-config=temp/vm-minimal.nix -I nixpkgs=. && result/bin/run-nixos-vm
  1. the vm does not boot
waiting for device /dev/disk/by-label/nixos to appear......
timeout waiting for device /dev/disk/by-label/nixos trying to mount anyway
[   22.812144] /dev/disk/by-label/nixos: Can't open blockdev

Expected behavior

the vm boots

Screenshots

image

Additional context

I bisected this issue down to #236656

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a 👍 reaction to issues you find important.

@symphorien
Copy link
Member Author

Actually I needed to remove nixos.qcow2 in the current working directory. Old images break the new code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant