Skip to content

libvirt

Libvirt

Warning

This module requires module libvirt to be installed. As this requires an external dependency, it must be installed explicitly after installing the missing dependency. See Installation.

PARAMETER DESCRIPTION
hypervisor_uri

Local or Remote hypervisor URIs

TYPE: str DEFAULT: 'qemu:///system'

resource_usage

CPU and RAM usage bars style

TYPE: Literal['none', 'auto', 'onerow', 'tworow'] DEFAULT: 'auto'

**kwargs

TYPE: Any DEFAULT: {}

Warning

This module needs the user to be in the libvirt group to get sufficient permissions to connect to libvirt. If not present yet, the libvirt group has to be created.

sudo addgroup libvirt
sudo adduser $(whoami) libvirt

It's totally fine if the above command produce the following outputs:

sudo addgroup libvirt
fatal: The group `libvirt' already exists.
sudo adduser $(whoami) libvirt
info: The user `alessandro' is already a member of `libvirt'.