Thanks very much. Would you mind to explain, how you've managed to get
spice working with vmspawn?
Am 04.08.26 um 08:44 schrieb Andrei Borzenkov:
On Tue, Aug 4, 2026 at 12:40 AM Ede Wolf <[email protected]> wrote:
Hello,
is there a way to occasionally connect to the console of a vm? Including
the boot loader?
Primarily, but not exclusive, for headless use?
Using something like picocom or any other tool? Any device or socket on
the host I may connect to?
Using --console=native I also have so far not been able to find the
promised qemu-monitor socket. Be it network or unix.
Any hint is appreciated. Thanks
systemd-vmspawn creates a pty pair and connects the VM console to its
slave. No sockets are involved. The lifetime of connection is that of
systemd-vmspawn itself (when it goes away, pty master goes away as
well). Monitor is multiplexed over this pty connection.
Connecting the console to a UNIX socket would be something to consider
for a headless mode. It would need a companion tool to conveniently
attach and forward traffic to/from it though (similar to how pty
forwarder works currently). That is sort of what I do in my home grown
scripts (except I use SPICE GUI, not the serial console).