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.
22 lines
444 B
Nix
22 lines
444 B
Nix
{ lib, ... }:
|
|
{
|
|
boot.initrd.availableKernelModules = [ "bochs" ];
|
|
|
|
virtualisation.vmVariant = {
|
|
boot.resumeDevice = "/dev/vdb";
|
|
swapDevices = lib.mkOverride 0 [
|
|
{
|
|
device = "/dev/vdb";
|
|
options = [ "x-systemd.makefs" ];
|
|
}
|
|
];
|
|
virtualisation = {
|
|
emptyDiskImages = [ 4096 ];
|
|
qemu.options = lib.mkForce [
|
|
"-vga none"
|
|
"-device VGA,xres=1920,yres=1080"
|
|
];
|
|
};
|
|
};
|
|
}
|