docs: list the mkosi container's needs instead of a Containerfile

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-17 19:18:50 +01:00
1 parent e9b93b11a6
commit 3b791adc3d
2 files changed
+1 -19

No files matched your search

+1 -8
View File
@@ -37,11 +37,4 @@ mkosi -f vm
The `[Runtime]` section of `mkosi.conf` answers the setup, so it boots straight to a login (root, password `test`). Then `ssh -p 2222 claude@localhost` with your own key (`mkosi.credentials/agent.ssh-key`).
`mkosi vm` needs systemd on the host. Without it, such as in a dev container, run mkosi in a container with systemd ([Containerfile](Containerfile)):
```sh
podman build -t mkosi-vm .
podman run -d --name mkosi --systemd=always --privileged --device /dev/kvm -v .:/repo -v ~/.ssh:/root/.ssh:ro -w /repo mkosi-vm
podman exec -it mkosi mkosi -f vm
podman exec -it mkosi ssh -p 2222 claude@localhost # in another terminal
```
`mkosi vm` needs systemd on the host. Without it, such as in a dev container, run mkosi in a privileged container that boots systemd and has `mkosi qemu-kvm-core edk2-ovmf systemd-repart openssh-clients` and `$(mkosi dependencies)` installed, with `/dev/kvm` and the repository mounted.