mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-14 01:20:43 -05:00
* build: correct toolchain order * build: gazelle-update-repos * build: use pregenerated proto for dependencies * update bazeldnf * deps: tpm simulator * Update Google trillian module * cli: add stamping as alternative build info source * bazel: add go_test wrappers, mark special tests and select testing deps * deps: add libvirt deps * deps: go-libvirt patches * deps: cloudflare circl patches * bazel: add go_test wrappers, mark special tests and select testing deps * bazel: keep gazelle overrides * bazel: cleanup bazelrc * bazel: switch CMakeLists.txt to use bazel * bazel: fix injection of version information via stamping * bazel: commit all build files * dev-docs: document bazel usage * deps: upgrade zig-cc for go 1.20 * bazel: update Perl for macOS arm64 & Linux arm64 support * bazel: use static perl toolchain for OpenSSL * bazel: use static protobuf (protoc) toolchain * deps: add git and go to nix deps Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| server | ||
| virtwrapper | ||
| BUILD.bazel | ||
| Dockerfile | ||
| main.go | ||
| README.md | ||
QEMU metadata API
This program provides a metadata API for Constellation on QEMU.
Dependencies
To interact with QEMU libvirt is required.
Install the C libraries:
On Ubuntu:
sudo apt install libvirt-dev
On Fedora:
sudo dnf install libvirt-devel
Firewalld
If your system uses firewalld virtmanager will add itself to the firewall rules managed by firewalld.
Your VMs might be unable to communicate with the host.
To fix this open port 8080 (the default port for the QEMU metadata API) for the libvirt zone:
# Open the port
sudo firewall-cmd --zone libvirt --add-port 8080/tcp --permanent
Docker image
Build the image:
DOCKER_BUILDKIT=1 docker build -t ghcr.io/edgelesssys/constellation/qemu-metadata-api:latest -f hack/qemu-metadata-api/Dockerfile .
A container of the image is automatically started by Terraform. You can also run the image manually using the following command:
docker run -it --rm \
--network host \
-v /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock \
ghcr.io/edgelesssys/constellation/qemu-metadata-api:latest