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
|
```sh
|
||||||
mkosi build
|
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
|
||||||
|
```
|
||||||
@@ -46,6 +46,8 @@ WithDocs=no
|
|||||||
Locale=C.UTF-8
|
Locale=C.UTF-8
|
||||||
# The UKI's file name in the ESP, as systemd-sysupdate names the ones it installs.
|
# The UKI's file name in the ESP, as systemd-sysupdate names the ones it installs.
|
||||||
UnifiedKernelImageFormat=%i_%v
|
UnifiedKernelImageFormat=%i_%v
|
||||||
|
# A writable root, the console on screen and serial port, no systemd-firstboot questions
|
||||||
|
# (gitea-runner-setup asks its own), and KSPP hardening (the last four).
|
||||||
KernelCommandLine=
|
KernelCommandLine=
|
||||||
rw
|
rw
|
||||||
console=tty0
|
console=tty0
|
||||||
|
|||||||
Reference in new issue
Block a user