-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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: fix qemu_test being used in normal VMs #101246
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just wrote a very similar patch before I found this.
We should probably add a virtualisation.qemu.package = pkgs.qemu_test;
line to nixos/modules/testing/test-instrumentation.nix
to ensure the tests are still using that.
Otherwise it looks fine. I haven't executed this code yet tho..
Wait, isn't this exactly what I'm doing in this PR? |
Yes, sorry. The line breaking on the (small) GitHub Window didn't really make that obvious. It looked more like you did just reflow some of the code but indeed you are doing exactly that. :) |
There is one case of |
Thank you, I'll take a look at build-vms now. |
It looks like that line can simply be removed, since the test package is already being configured by test-instrumentation. |
This is an attempt to fixup PR NixOS#49403.
I am building all the tests over night and will merge this in the morning when everything looks fine. |
Ah so I think this pr reintroduced the eval error which was supposed to be fixed by rnhmjoj@2578557#diff-ec9255f81e919804497f4a2ae13abd965816f4c519b08d037be851055ac53b4e ? |
Motivation for this change
It looks like since PR #49403 the VMs built by
nixos-rebuild built-vm
are using the stripped-down qemu package, which lacks gtk and spice support.Things done
nixosTests
usesqemu_test
packagebuild-vm
uses the normalqemu
packageconfig.system.build.qemu