constellation/cli/internal/libvirt
renovate[bot] 44b1a92d6b
Update fedora Docker digest to 455fec9 (#447)
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Co-authored-by: Nirusu <Nirusu@users.noreply.github.com>
2022-11-04 11:49:41 +01:00
..
nvram Create mkosi image build pipeline 2022-10-21 11:04:25 +02:00
Dockerfile Update fedora Docker digest to 455fec9 (#447) 2022-11-04 11:49:41 +01:00
libvirt.go AB#2426 Mini Constellation (#198) 2022-10-07 09:38:43 +02:00
README.md AB#2439 Containerized libvirt (#191) 2022-10-05 09:11:30 +02:00
start.sh Use env to find bash in shebang (#225) 2022-10-10 14:21:17 +02:00

Containerized libvirt

To avoid dependency issues with the libvirt setup of the host, we provide a containerized libvirt instance. If no libvirt connection string is provided in the Constellation config file during create, this container is deployed to provide a libvirt daemon for orchestrating Constellation nodes in QEMU.

The container will listen for libvirt connections on localhost:16599. Connecting to the libvirt daemon running in the container and manage the deployment using virsh run the following:

virsh -c "qemu+tcp://localhost:16599/system"

Docker image

Build the image:

DOCKER_BUILDKIT=1 docker build -t ghcr.io/edgelesssys/constellation/libvirt:latest -f cli/internal/libvirt/Dockerfile .

A container of the image is automatically started by the CLI. You can also run the image manually using the following command:

docker run -it --rm \
    --network host \
    --privileged true \
    ghcr.io/edgelesssys/constellation/libvirt:latest