AB#1915 Local PCR calculation (#243)

* Add QEMU cloud-logging

* Add QEMU metadata endpoints to collect logs during cluster boot

* Send PCRs to QEMU metadata if boot fails on Azure or GCP

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-07-04 12:59:43 +02:00 committed by GitHub
parent 70efb92adc
commit 4be29b04dc
9 changed files with 348 additions and 21 deletions

View file

@ -39,6 +39,11 @@ resource "docker_container" "qemu-metadata" {
target = "/var/run/libvirt/libvirt-sock"
type = "bind"
}
mounts {
source = var.metadata_api_log_dir
target = "/pcrs"
type = "bind"
}
}
module "control_plane" {
@ -80,8 +85,8 @@ resource "libvirt_pool" "cluster" {
resource "libvirt_volume" "constellation_coreos_image" {
name = "constellation-coreos-image"
pool = libvirt_pool.cluster.name
source = var.constellation_coreos_image_qcow2
format = "qcow2"
source = var.constellation_coreos_image
format = var.image_format
}
resource "libvirt_network" "constellation" {