fix virtiofs
this also requred a change in vm config for some reason, see https://bbs.archlinux.org/viewtopic.php?id=285366 the <binary/> still has to be there because the path="..." attribute is needed, but all other attrs and the inner content should be removed to fix it
This commit is contained in:
parent
d5f9e87bc9
commit
07170ee242
|
@ -1,4 +1,8 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ... }:
|
||||
|
||||
let
|
||||
cfg = config.vfio;
|
||||
in {
|
||||
|
@ -166,6 +170,7 @@ in {
|
|||
onBoot = "ignore";
|
||||
onShutdown = "shutdown";
|
||||
qemu = {
|
||||
package = pkgs.qemu_kvm;
|
||||
ovmf.enable = true;
|
||||
# Full is needed for TPM and secure boot emulation
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
|
@ -186,5 +191,8 @@ in {
|
|||
};
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
users.groups.libvirtd.members = [ "root" ] ++ cfg.libvirtdGroup;
|
||||
environment.systemPackages = with pkgs; [
|
||||
virtiofsd
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue