-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Change virtualization-options for nixos-rebuild build-vm #59219
Copy link
Copy link
Open
Labels
0.kind: questionRequests for a specific question to be answeredRequests for a specific question to be answered2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Metadata
Metadata
Assignees
Labels
0.kind: questionRequests for a specific question to be answeredRequests for a specific question to be answered2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Fields
Give feedbackNo fields configured for issues without a type.
Issue description
I would like to build and run a qemu vm from my current nixos configuration using
nixos-rebuild build-vm. The problem is that the generated run-script does not start the vm with a configuration which allows to run hardware demanding applications in it. For this reason I would like to tweak some options which are exposed by the qemu-vm module. But when I do thisnixos-rebuildraises errors.Steps to reproduce
Add:
to
/etc/nixos/configuration.nix. And runInterestingly the run script was built just fine.
Also when I run
nixos-rebuild build-vm --fastthe error disappears.Is this a bug or how can I define
virtualisation.coreswithout raising this error onnixos-rebuild?Technical details
"x86_64-linux"Linux 4.14.110, NixOS, 19.09pre174426.acbdaa569f4 (Loris)yesyesnix-env (Nix) 2.2"nixos-19.09pre174426.acbdaa569f4, nixos-hardware, nixpkgs-19.09pre174594.0c0954781e2"/nix/var/nix/profiles/per-user/root/channels/nixos