basic qemu vm setup on bolty

This commit is contained in:
Cyryl Płotnicki 2022-11-09 21:16:45 +00:00
parent ce31b2de37
commit 44eefe9b3c
3 changed files with 20 additions and 10 deletions

View file

@ -35,6 +35,20 @@ in {
};
bridges = { "${bridgeInterface}".interfaces = [ "${physicalInterface}" ]; };
};
boot.kernelModules = [ "kvm_amd" ];
virtualisation = {
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
};
};
environment.systemPackages = with pkgs; [
qemu
virt-manager
usbutils
virt-viewer
];
networking.firewall.allowedTCPPorts = [ 5900 ];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
security.allowUserNamespaces = true;

View file

@ -5,13 +5,4 @@ in {
networking.firewall.allowedTCPPorts = [ port ];
boot.kernelModules = [ "kvm_amd" ];
virtualisation = {
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
};
};
environment.systemPackages = with pkgs; [ qemu virt-manager usbutils ];
}

View file

@ -5,6 +5,11 @@
virtualisation.kvmgt.enable = true;
users.extraUsers.cyryl.extraGroups = [ "kvm" ];
environment.systemPackages = with pkgs; [ virtmanager qemu swtpm ];
environment.systemPackages = with pkgs; [
virtmanager
qemu
swtpm
virt-viewer
];
}