Virt-manager: Difference between revisions

From NixOS Wiki
imported>Kuetemeier
m Fix a typo / parameter name
imported>Replaycoding
m Add semicolon to end of line
Line 5: Line 5:
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.enable = true;
programs.dconf.enable = true;
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [ virt-manager ]
environment.systemPackages = with pkgs; [ virt-manager ];
</syntaxhighlight>
</syntaxhighlight>



Revision as of 18:52, 29 April 2022

Installation

NixOS

virtualisation.libvirtd.enable = true;
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [ virt-manager ];

You will get a warning when you open it for the first time

Could not detect a default hypervisor. Make sure the appropriate virtualization packages containing kvm, qemu, libvirt, etc. are installed and that libvirtd is running.

To resolve

File in the menu bar -> Add connection

HyperVisor = QEMU/KVM
Autoconnect = checkmark

Connect

You can get the following error :

authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'

To resolve, We would have to add user in the libvirtd group.

{
users.users.<myuser>.extraGroups = [ "libvirtd" ];
}

You will only need to do this once