test: use a plain VGA device to show the restored system

virtio-vga shows its old VGA framebuffer after a restore and never repaints,
which left a stale screen in the recording and sample machine whether or not
bootvine ran. A plain VGA device repaints, so the recording can run through to
the restored login prompt.
This commit is contained in:
Willem Vanhulle committed 2026-11-02 19:29:05 +01:00
1 parent 4e5e6d96b7
commit 29849c6254
3 files changed
+18 -3

No files matched your search

+7 -1
View File
@@ -7,7 +7,6 @@
{
imports = [
machine
../shared/recorded-display.nix
"${pkgs.path}/nixos/tests/common/auto-format-root-device.nix"
];
@@ -25,6 +24,13 @@
};
virtualisation = {
memorySize = 2048;
qemu.options = [
"-vga none"
"-device VGA,xres=1280,yres=800"
"-chardev socket,id=recording-monitor,path=recording-monitor,server=on,wait=off"
"-mon chardev=recording-monitor,mode=readline"
];
emptyDiskImages = [ 4096 ];
useNixStoreImage = true;
useEFIBoot = true;