monogon icon indicating copy to clipboard operation
monogon copied to clipboard

Run :launch without sandbox

Open leoluk opened this issue 2 years ago • 2 comments

Now that the container is gone, we can't run :launch with "bazel run" anymore since this is now running directly on the host, which has neither QEMU nor swtpm. As a workaround, we cheat by running it as a test (e2a302a9062d3ebfc33ad83dd382653e067ca009), but that takes the Bazel lock and times out after a bit.

Instead, we need to build static QEMU and swtpm binaries that can run on the host independently:

  • https://github.com/monogon-dev/monogon/issues/180
  • https://github.com/monogon-dev/monogon/issues/81

Installing qemu and swtpm on corp workstations works, but it's not ideal.

leoluk avatar Jan 31 '23 19:01 leoluk

There is another problem with running these as tests: Crl-C/SIGINT does not get passed through to the code (and I think instead it just gets killed?). Currently this means we end up with a whole bunch of junk in /tmp that would've usually been cleaned up by cleanup routines.

q3k avatar Mar 21 '23 09:03 q3k

Since we run inside a nix-shell we could make it a requirement, right?

fionera avatar Jan 11 '24 08:01 fionera

Fixed in https://review.monogon.dev/c/monogon/+/3105 / d02c6c7745943f19d453f6fba0bfb701e7f222df.

q3k avatar Jun 13 '24 09:06 q3k