Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a OpenSUT startup script #141

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Add a OpenSUT startup script #141

wants to merge 23 commits into from

Conversation

podhrmic
Copy link
Collaborator

@podhrmic podhrmic commented Dec 2, 2024

Fixes #96

EDIT: docker/build-push-action@v6 does not seem to preserve the .git directories in the build context, so it is not possible to run git commands in the COPY-ed repo. Using plain docker build invocation on the other hand does not preserve the cache, but it keeps the git history.

Perhaps a suitable way forward is to run the docker build nightly, and always build it from scratch. After all, at some point we need to show how to build the system from scratch.

@podhrmic
Copy link
Collaborator Author

@spernsteiner this is the MR

@spernsteiner spernsteiner force-pushed the 96-startup-script branch 2 times, most recently from 8cafac8 to bed81aa Compare February 18, 2025 17:24
@spernsteiner
Copy link
Collaborator

The docker image now builds successfully in CI. I'm going to try pulling the image and checking that it includes everything needed to run the OpenSUT, and then I'll merge this PR.

@spernsteiner spernsteiner marked this pull request as ready for review February 18, 2025 17:59
@spernsteiner
Copy link
Collaborator

I got the Docker image working locally. I'm now working on writing up documentation on how to start the OpenSUT, run the mission, and read the encrypted logs afterward.

@spernsteiner
Copy link
Collaborator

Added instructions. There are a couple TODOs, but I think this is basically done.

@spernsteiner
Copy link
Collaborator

There's now only one remaining TODO, which may be better left to a separate PR. The current instructions in OPENSUT_DOCKER.md use the base_single.toml configuration, which has only a single level of VMs: the four guest VMs are each run directly under the Docker container. The TODO is to instead use the "full" OpenSUT configuration, where an emulated pKVM host kernel runs under the Docker container, and the guests in turn run under the host. The base_nested.toml configuration is supposed to implement this, but it's currently out of date (missing some recent changes to the setup) and also needs fixes to support running multiple guests simultaneously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Startup script for OpenSUT
2 participants