Libvirt: Difference between revisions

Phobos (talk | contribs)
m Minor note on firewall whitelisting
Marie (talk | contribs)
dnsmasq is provided in the package by default and does not need installation.
 
(One intermediate revision by one other user not shown)
Line 38: Line 38:


{{file|||<nowiki>
{{file|||<nowiki>
boot.extraModprobeConfig = "options kvm_intel nested=1";
boot.extraModprobeConfig = ''
  options kvm_intel nested=1
'';
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}
</nowiki>|name=/etc/nixos/configuration.nix|lang=nix}}


Line 45: Line 47:
==== Default networking ====
==== Default networking ====


To utilize the default libvirt network, you will need to install the {{nixos:package|dnsmasq}} package. This is required for DNS and DCHP functionality within the network:
Enable and start the default network using the following commands:
 
{{File|3=environment.systemPackages = with pkgs; [
  dnsmasq
];|name=/etc/nixos/configuration.nix|lang=nix}}
 
Once the package is installed, enable and start the default network using the following commands:


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">