virtualisation.hugepages.enable

Whether to enable Hugepages.

type

boolean

example

{
  virtualisation.hugepages.enable = true;
}

default

{
  virtualisation.hugepages.enable = false;
}

virtualisation.hugepages.defaultPageSize

Default size of huge pages. You can use suffixes K, M, and G to specify KB, MB, and GB.

type

string matching the pattern [0-9]*[kKmMgG]

default

{
  virtualisation.hugepages.defaultPageSize = "1M";
}

virtualisation.hugepages.numPages

Number of huge pages to allocate at boot.

type

positive integer, meaning >0

default

{
  virtualisation.hugepages.numPages = 1;
}

virtualisation.hugepages.pageSize

Size of huge pages that are allocated at boot. You can use suffixes K, M, and G to specify KB, MB, and GB.

type

string matching the pattern [0-9]*[kKmMgG]

default

{
  virtualisation.hugepages.pageSize = "1M";
}

virtualisation.libvirtd.clearEmulationCapabilities

type

boolean

default

{
  virtualisation.libvirtd.clearEmulationCapabilities = true;
}

virtualisation.libvirtd.deviceACL

type

list of string

default

{
  virtualisation.libvirtd.deviceACL = [];
}

virtualisation.sharedMemoryFiles

type

attribute set of submodule

default

{
  virtualisation.sharedMemoryFiles = {};
}

virtualisation.sharedMemoryFiles.<name>.group

Group of the memory file

type

string

default

{
  virtualisation.sharedMemoryFiles.<name>.group = "root";
}

virtualisation.sharedMemoryFiles.<name>.mode

Group of the memory file

type

string

default

{
  virtualisation.sharedMemoryFiles.<name>.mode = "0600";
}

virtualisation.sharedMemoryFiles.<name>.user

Owner of the memory file

type

string

default

{
  virtualisation.sharedMemoryFiles.<name>.user = "root";
}

virtualisation.vfio.enable

Whether to enable VFIO Configuration.

type

boolean

example

{
  virtualisation.vfio.enable = true;
}

default

{
  virtualisation.vfio.enable = false;
}

virtualisation.vfio.IOMMUType

Type of the IOMMU used

type

one of "intel", "amd"

example

{
  virtualisation.vfio.IOMMUType = "intel";
}

virtualisation.vfio.applyACSpatch

If set, the following things will happen:

  • The ACS override patch is applied
  • Applies the i915-vga-arbiter patch
  • Adds pcie_acs_override=downstream to the command line

type

boolean

default

{
  virtualisation.vfio.applyACSpatch = false;
}

virtualisation.vfio.blacklistNvidia

Add Nvidia GPU modules to blacklist

type

boolean

default

{
  virtualisation.vfio.blacklistNvidia = false;
}

virtualisation.vfio.devices

PCI IDs of devices to bind to vfio-pci

type

list of string matching the pattern [0-9a-f]{4}:[0-9a-f]{4}

example

{
  virtualisation.vfio.devices = [
    "10de:1b80"
    "10de:10f0"
  ];
}

default

{
  virtualisation.vfio.devices = [];
}

virtualisation.vfio.disableEFIfb

Disables the usage of the EFI framebuffer on boot.

type

boolean

example

{
  virtualisation.vfio.disableEFIfb = true;
}

default

{
  virtualisation.vfio.disableEFIfb = false;
}

virtualisation.vfio.ignoreMSRs

Enables or disables kvm guest access to model-specific registers

type

boolean

example

{
  virtualisation.vfio.ignoreMSRs = true;
}

default

{
  virtualisation.vfio.ignoreMSRs = false;
}