balena-os / leviathan-worker

The worker layer for Leviathan including worker plugins QemuKit & AutoKit
Apache License 2.0
6 stars 4 forks source link

Qemu flasher secureboot #42

Closed jakogut closed 1 year ago

jakogut commented 1 year ago

This adds onto the previous qemu-flasher PR (now merged), which allowed for testing flasher images without unwrapping them.

This PR adds on support for testing secure boot enabled flasher images.

klutchell commented 1 year ago

All the jobs timed out after flashing. Does this work locally for you?

leviathan-worker-client-1  | [2023-01-05T01:04:06.859Z][worker-e2e] Flash completed
leviathan-worker-client-1  | [2023-01-05T01:04:06.861Z][worker-e2e]     # Subtest: Flashing tests
leviathan-worker-client-1  | [2023-01-05T01:04:06.863Z][worker-e2e]         # Subtest: Flashing an image
leviathan-worker-client-1  | [2023-01-05T01:04:06.869Z][worker-e2e]             ok 1 - /data/downloads/unwrapped.img should be flashed properly
leviathan-worker-client-1  |             1..1
leviathan-worker-client-1  |         ok 1 - Flashing an image # time=99821.074ms
leviathan-worker-client-1  |         
leviathan-worker-client-1  |         1..1
leviathan-worker-client-1  | [2023-01-05T01:04:06.870Z][worker-e2e]     ok 2 - Flashing tests # time=99827.328ms
leviathan-worker-client-1  | [2023-01-05T01:04:06.876Z][worker-e2e] Powering on DUT
leviathan-worker-client-1  | [2023-01-05T01:04:06.877Z][worker-e2e] POST http://worker/dut/on
leviathan-worker-worker-1  | KVM is unavailable, falling back on software emulation
jakogut commented 1 year ago

@klutchell Yes, this is working locally for me, but it does require the swtpm branch to be merged into Leviathan first.

jakogut commented 1 year ago

@balena-ci I self-certify!