The [Runtime] section of mkosi.conf sets up mkosi vm for testing: it passes the setup credentials (mkosi.credentials/agent.ssh-key prints your own ssh keys), forwards ssh to port 2222 and adds the serial console, since systemd-stub ignores the console= mkosi passes under Secure Boot. Untested: in a container without systemd, mkosi vm hangs before qemu starts, because it can't create a systemd scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 lines
219 B
Bash
Executable File
7 lines
219 B
Bash
Executable File
#!/bin/sh
|
|
# SSH key for mkosi vm
|
|
#
|
|
# mkosi vm runs this and passes what it prints as the credential agent.ssh-key
|
|
# (mkosi.conf), so you can ssh into the test VM with your own keys.
|
|
cat ~/.ssh/*.pub 2>/dev/null || true
|