Is it possible to log from Windows VM to Incus? Cloudbase-init

Is there a way to log from a Windows process to Incus such that the output can be seen in incus info —show-logs? There is a COM1 in Windows, but using it does not work.

No, incus info --show-logs only shows log output from QEMU.
incus console --show-log will show what’s written to the virtio-serial console device, so that may be your COM1 or some other device depending on what the Windows virtio-serial driver does.

Got it, thank you. incus console --show-log win10-template returned “Error: Console backlog is only supported on containers”.
So it looks like I’ll have to find another way to collect logs.

Oops, I forgot about that one… Yeah, QEMU doesn’t provide a way to both interact with a console (read/write) and send its content to a retrievable ring-buffer, you can only do one of those and we chose the former as interactivity is usually quite useful…