basic qemu vm setup on bolty
This commit is contained in:
parent
ce31b2de37
commit
44eefe9b3c
3 changed files with 20 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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 ];
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue