Virtualization
Virtualization using QEMU via libvirt and managed through Virt-manager.
View the nix-core NixOS module on GitHub.
Overview
- QEMU is the hypervisor that provides the core virtualization capabilities.
- libvirt is a toolkit and API that manages virtualization platforms, such as QEMU.
- Virt-manager is a GUI tool that interacts with libvirt to manage VMs.
- virsh is a CLI tool that interacts with libvirt to manage VMs.
Docs
QEMU
libvirt
If you are using the Home Manager module as well, then
virsh
is aliased tovirsh --connect qemu:///system
Virt-manager
Setup
- Import this module in your NixOS config. It is recommended to use the VirtualizationHome Manager module as well.
- Add your user to the
libvirtd
group:users.users.YOU.extraGroups = [ "libvirtd" ];
- Rebuild and reboot:
rebuild all && sudo reboot now
- Enable and start the default network and reboot again:
virsh net-autostart default && virsh net-start default