Skip to content

libvirt-group

Repo box/github.com/opencharly/pod-virtualization:v2026.321.0714

Ensure the libvirt GROUP exists before any libvirt package is configured. On Ubuntu 26.04 (resolute), libvirt-daemon-system’s maintainer script adds the libvirt-qemu user to the libvirt group BEFORE it creates that group, so dpkg writes fatal: The group \libvirt’ does not exist.into the package log. The group exists moments later and the install succeeds, but charly's deploy log gate rightly refuses to ignore afatal:line, so a 26.04 VM bed cannot pass. Measured, both directions: with the group pre-created the same install emits ZERO such lines; reordering the packages does not help (the message simply moves to whichever transaction configures libvirt-daemon-system). This candy exists to berequire:-ordered AHEAD of virtualization`, because charly emits a candy’s declarative distro: packages before its plan: steps - a plan step inside virtualization would run too late. Idempotent and harmless on Fedora/Arch, where the group already exists or the check simply passes. opencharly/distro-ubuntu#66.

This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.

Intent Step
run ensure the libvirt group exists
check the libvirt group exists, which is what libvirt-daemon-system’s postinst expects