Skip to content

Replace virt-install with libvirt go-binding#1

Open
alicefr wants to merge 8 commits into
mainfrom
go-binding
Open

Replace virt-install with libvirt go-binding#1
alicefr wants to merge 8 commits into
mainfrom
go-binding

Conversation

@alicefr

@alicefr alicefr commented May 20, 2026

Copy link
Copy Markdown
Collaborator

This PR replace the call to virt-install using the libvirt go binding. The modular libvirt deamon don't support TCP that's why we move the monolithic daemon.

Fixes: #11

alicefr added 8 commits May 19, 2026 14:44
The modular virtqemud daemon does not support TCP connections natively.
Switch to monolithic libvirtd with socket activation via the built-in
libvirtd-tcp.socket unit for direct TCP access from the host.

Assisted-by: Claude <noreply@anthropic.com>
Use libvirt.org/go/libvirt and libvirt.org/go/libvirtxml to define and
start VMs via direct TCP connection to libvirtd instead of shelling
out to virt-install via podman exec.

Domain configuration uses the functional option pattern with
DomainOption closures composed at the call site.

Assisted-by: Claude <noreply@anthropic.com>
The modular daemon sockets (virtnetworkd, virtstoraged) declare
Conflicts=libvirtd.socket, preventing the monolithic libvirtd-tcp.socket
from starting at boot.

Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The switch to libvirtd with TCP socket activation requires the
cluster image to be rebuilt. Build it in CI and load it into the
nested container to avoid pulling a stale image from the registry.

Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jlebon

jlebon commented May 21, 2026

Copy link
Copy Markdown
Collaborator

Re. alicefr/bink-deprecated#51 (comment) -- can you open a PR against bootc-operator before merging this?

@alicefr

alicefr commented May 21, 2026

Copy link
Copy Markdown
Collaborator Author

@jlebon sure, I was even thinking of waiting and doing a first release before merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace virt-install with Libvirt Go Bindings

2 participants