I have a serial console working for a centos7 guest without graphics, which I access with
virsh console vm. The guest has the appropriate
console=ttyS0,115200n8 kernel command line parameter for it.
Is it possible to configure additional consoles, so that I can say
virsh console vm --devname vc1 and get a login prompt?
Instinctively, I was thinking of connecting somehow to the character devices of the guest's first 6 virtual consoles; I've looked into libvirt domain format and virtio-serial as it seemed I should go in that direction, but couldn't get it to work.
Background: We had network issues which took a significant amount of time to fix, during which we needed one team member to work on network issues and the other to continue his work on the VM uninterrupted, thus the need for multiple consoles under no networking.
I am aware that having
<graphics type='vnc' port='5900' autoport='yes' listen='127.0.0.1'> <listen type='address' address='127.0.0.1'/> </graphics>
enables VNC access with 6 virtual terminals, I was simply wondering if it is possible to have such 6 virtual terminals via the
virsh console <domain> --device <device> syntax in any reasonable way, simply because
virsh console is far more convenient.
# cat /etc/fedora-release # host Fedora release 24 (Twenty Four) # virsh --version 18.104.22.168 # qemu-system-x86_64 --version QEMU emulator version 2.6.2 (qemu-2.6.2-8.fc24), Copyright (c) 2003-2008 Fabrice Bellard # cat /etc/centos-release # guest CentOS Linux release 7.3.1611 (Core)