Libvirt: Difference between revisions

imported>Wackbyte
fix some formatting and syntax highlighting
imported>Sagehane
Added details on enabling UEFI for user sessions
Line 16: Line 16:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
boot.extraModprobeConfig = "options kvm_intel nested=1";
boot.extraModprobeConfig = "options kvm_intel nested=1";
</syntaxhighlight>
=== QEMU/KVM User session ===
==== Enable UEFI with OVMF ====
Add the following line to <code>$XDG_CONFIG_HOME/libvirt/qemu.conf</code>:
<syntaxhighlight>
# Adapted from /var/lib/libvirt/qemu.conf
# Note that AAVMF and OVMF are for Aarch64 and x86 respectively
nvram = [ "/run/libvirt/nix-ovmf/AAVMF_CODE.fd:/run/libvirt/nix-ovmf/AAVMF_VARS.fd", "/run/libvirt/nix-ovmf/OVMF_CODE.fd:/run/libvirt/nix-ovmf/OVMF_VARS.fd" ]
</syntaxhighlight>
</syntaxhighlight>