My goal is to run a windows VM after rolling back to a snapshot of the VM of windows on startup.
I am using package qemu_kvm for my VM on NixOS 19.09.
My closest to working configuration is:
virtualisation.libvirtd.enable = true;
virtualisation.vmware.guest.enable = true;
services.xserver = {
enable = true;
displayManager.auto.enable = true;
windowManager.default = "i3";
windowManager.i3.enable = true;
windowManager.i3.extraSessionCommands = ''${pkgs.writeScript "vm" ``
zfs rollback zroot/vm@prod
qemu-kvm --boot a -m 1.5G -cpu host -smp $(nproc) -hda /var/vm/win10.img -display sdl -full-screen
``}``;
};
My issues are:
- The bottom if the display is cut off in full-screen mode. I have to exit full screen and untoggle “Show Menubar”
- The resolution cannot be increased. I increase display resolution in VMWare and specified resolution in the xserver part of the configuration but neither have succeeded.