mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-26 16:09:45 -05:00
167052d443
* deps: update dependency hermetic_cc_toolchain to v2.0.0 * deps: tidy all modules * bazel: target glibc 2.23 to enable rbe --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: edgelessci <edgelessci@users.noreply.github.com> Co-authored-by: Malte Poll <mp@edgeless.systems> |
||
---|---|---|
.. | ||
server | ||
virtwrapper | ||
BUILD.bazel | ||
main_cross.go | ||
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:
bazel build //hack/qemu-metadata-api:qemumetadata
bazel build //bazel/release:qemumetadata_sum
bazel build //bazel/release:qemumetadata_tar
bazel run //bazel/release:qemumetadata_push
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