got virtual machines working besides audio

This commit is contained in:
gerg 2022-07-13 01:12:58 -04:00 committed by ISnortPennies
parent 50fae0b2eb
commit e06def29b8
4 changed files with 19 additions and 15 deletions

View file

@ -1,7 +1,8 @@
{ pkgs, ... }:
{
boot = {
kernelParams = [ "amd_iommu=on" ];
boot.kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
initrd.kernelModules = [ "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ];
extraModprobeConfig = "options vfio-pci ids=10de:228e,10de:2504";
};
@ -9,11 +10,12 @@
libvirtd = {
enable = true;
qemu = {
runAsRoot = false;
ovmf = {
enable = true;
package = pkgs.OVMFFull;
};
runAsRoot = true;
ovmf.enable = true;
# verbatimConfig = ''
# user = gerg
# namespaces = []
# '';
};
};
};
@ -47,4 +49,4 @@
# Copy hook files
ln -sf ${qemuHook} /var/lib/libvirt/hooks/qemu
'';
}
}