Files
ilkerandClaude Opus 5.5 75907e309e provider: discover a libvirt host
A libvirt site is one host, reached as the provisioner over SSH with the
host key checked against the one setup pins: this is root on a
hypervisor, so a key that is missing or different refuses the connection
rather than trusting it on sight. libvirt's socket is reached through the
SSH connection (stream-local forwarding), so nothing is installed on the
host, and the context's deadline is put on the TCP connection because
go-libvirt's calls take none.

It reports what the Proxmox provider does, by the same rules: cores and
memory with the shared oversubscription policy (moved to the provider
package), guests' cores and memory counted while running or paused, PCI
devices classified, offerable only when alone in their IOMMU group (the
rule moved to the capability package) and owned per slot by any guest
whose definition names them, stopped or not. The host is its head node.

Tests parse node devices and domains as libvirt writes them, one fixture
taken from a real host. Against the test host: 12 cores, 47 GiB, the CPU
model and the pool read correctly; a missing pinned key and a wrong one
are both refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:42:29 +01:00
..
2026-11-23 12:42:29 +01:00