How to setup Looking Glass?

http://looking-glass.io
Looking Glass is an open-source application that allows the use of a KVM (Kernel-based Virtual Machine) configured for VGA PCI Pass-through without an attached physical monitor, keyboard or mouse.

I reached this part of the installation: IVSHMEM with the KVMFR module, but I get dkms: command not found. Some Nix users seem to have gotten Looking Glass working, I found this gist but am wondering if there are other ways to get kvmfr. Nixpkgs lists many packages but idk which I would install: NixOS Search.

boot.extraModulePackages = [ config.boot.kernelPackages.kvmfr ];

Is sufficient to get the module built and included, because as you note, it’s already packaged. I can’t speak to the rest of it, as I don’t use the software.

nixos-vfio was helpful for me to get it working – example in my flake is here, with the caveat that I haven’t used it in a couple months so could have some issues.

I played most of the latest Doom game in Windows via Looking Glass with this configuration though – worked pretty well at the time.

If you’ve already figured out the VFIO part, I wrote a little tutorial on how to configure kvmfr. Hope that helps.

Otherwise, let me know if you also need help with the VFIO configuration.