mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-03 11:14:01 +01:00
fix: enable kvm-intel/kvm-amd per host
This commit is contained in:
1 parent
b231111d93
commit
63d686ad3a
6 files changed
+24
-3
No files matched your search
@@ -5,10 +5,18 @@
|
||||
#
|
||||
###################################################################################
|
||||
|
||||
boot.kernelModules = ["kvm-amd" "kvm-intel" "vfio-pci"];
|
||||
# Enable nested virsualization, required by security containers and nested vm.
|
||||
boot.extraModprobeConfig = "options kvm_intel nested=1"; # for intel cpu
|
||||
# This should be set per host in /hosts, not here.
|
||||
#
|
||||
## For AMD CPU, add "kvm-amd" to kernelModules.
|
||||
# boot.kernelModules = ["kvm-amd" "kvm-intel"];
|
||||
# boot.extraModprobeConfig = "options kvm_amd nested=1"; # for amd cpu
|
||||
#
|
||||
## For Intel CPU, add "kvm-intel" to kernelModules.
|
||||
# boot.kernelModules = ["kvm-intel"];
|
||||
# boot.extraModprobeConfig = "options kvm_intel nested=1"; # for intel cpu
|
||||
|
||||
boot.kernelModules = ["vfio-pci"];
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
|
||||
Reference in new issue
Block a user