README: boot the image with qemu; explain the kernel command line
os / os (push) Successful in 3m43s
os / os (push) Successful in 3m43s
mkosi vm needs systemd on the host and shows only the serial console, while the first-boot setup runs on the screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+10
-2
No files matched your search
@@ -26,7 +26,13 @@ Download [the disk image](https://git.plabble.org/Job79/git-runner-mkosi/release
|
||||
|
||||
```sh
|
||||
mkosi build
|
||||
mkosi vm
|
||||
```
|
||||
|
||||
`mkosi.output/` then holds the disk image, and the UKI and /usr partitions that the `os` workflow publishes as an update.
|
||||
`mkosi.output/` then holds the disk image (`git-runner_<version>.raw`), and the UKI and /usr partitions that the `os` workflow publishes as an update. To boot the disk image (needs `qemu-kvm-core edk2-ovmf`):
|
||||
|
||||
```sh
|
||||
qemu-img convert -O qcow2 mkosi.output/git-runner_<version>.raw test.qcow2 && qemu-img resize test.qcow2 40G
|
||||
cp /usr/share/edk2/ovmf/OVMF_VARS.fd vars.fd
|
||||
qemu-kvm -m 8G -smp 4 -cpu host -nic user,model=virtio-net-pci -drive file=test.qcow2,if=virtio \
|
||||
-drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2/ovmf/OVMF_CODE.fd -drive if=pflash,format=raw,file=vars.fd
|
||||
```
|
||||
Reference in new issue
Block a user