feat: kubevirt on k3s

This commit is contained in:
Ryan Yin
2024-02-24 23:26:30 +08:00
parent 7d56db3e47
commit 9914644189
53 changed files with 8246 additions and 1382 deletions
+10 -2
View File
@@ -1,7 +1,9 @@
{
genCoreModule = {
gencoreModule = {
pkgs,
hostName,
vars_networking,
...
}: let
hostAddress = vars_networking.hostAddress.${hostName};
in {
@@ -18,9 +20,15 @@
"cifs" # mount windows share
];
boot.kernelModules = ["kvm-amd"];
boot.kernelModules = ["kvm-amd" "vfio-pci"];
boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
environment.systemPackages = with pkgs; [
# Validate Hardware Virtualization Support via:
# virt-host-validate qemu
libvirt
];
networking = {
inherit hostName;
inherit (vars_networking) defaultGateway nameservers;