On Mon, Dec 05, 2022 at 12:42:35AM +0200, Vadim Likholetov wrote:
Cloud-hypervisor has virtual hardware limitations -- it supports only one console device and only one serial device. SpectrumOS is using serial device for kernel logs of appVM and console device as a console. To have access both to root-executed part and to user-executed part of the VM payload, I installed a tmux on console. Now, when you're running vm-console command you get access to the tmux and have the ability to switch between root and user consoles, that can be useful during debugging VM payload.
I wonder what it would take to make cloud-hypervisor support multiple virtio-console devices… I suspect it wouldn't be too hard, since it already supports multiples of every other virtio device just fine…