lima-vm / alpine-lima

Create an alpine based image for lima
Apache License 2.0
40 stars 26 forks source link

fix(mkimage): log console boot messages to hvc0 #112

Closed ryancurrah closed 1 year ago

ryancurrah commented 1 year ago

VZ has support for serial console logging but the device is different from Qemu. VZ uses the hypervisor virtual console device instead. This change modifies the bootloader to add hvc0 as a device to log console messages to on boot.

Note this has no effect on the tty serial logging.

Issue: https://github.com/lima-vm/lima/issues/1659

jandubois commented 1 year ago

I assume you wanted a release with this change: https://github.com/lima-vm/alpine-lima/releases/tag/v0.2.32

ryancurrah commented 1 year ago

Thanks @jandubois and @AkihiroSuda! Just a note on functionality in the Alpine Lima image. Because hvc0 is not configured as the primary console, messages to hvc0 will only work during boot. It's better then no messages, but maybe in the future we could revisit this.