I am installing on linux/QEMU/KVM/libvirt and when doing an install image
the initial script prompts as follows;
What console should be used by default? (K:KVM, S: Serial)? (default: K)
FWIW : The default seems to be based on what console you are using when you run the script. If I run the script from a virsh console, the default will be Serial.
I am trying to understand the difference between these two options.
-
I have tried both, they both work and they both;
a. allow me to use
virsh --connect qemu:///system console <VyOS-DomainName>
, even though the KVM option shows no output after the grub option screen until the login prompt is reached.b. allow me to use the āgraphical consoleā mode of virt-manager, even though the Serial option displays
Display output is not active
and shows no output after the grub option screen until the login prompt is reached (the opposite of 1.a). -
I canāt seem to find anything in the documentation.
-
I am also presuming that KVM in this context refers to Kernel-based Virtual Machine (due to the message above about display outputā as opposed to Keyboard, Video Mouseā¦
-
Neither seem to get the correct
stty size
when usingvirsh --connect qemu:///system console <VyOS-DomainName>
.
Other than directing the boot output are there any reasons to choose one over the other?
I predominantly use virsh
to access the VyOS console as my routers are local, although I do also sometimes use SSH. I rarely use the graphical console offered by virt-manager
although I do sometimes fire-up the equivalent with remote-viewer
. Whilst the graphical console of virt-manager
or remote-viewer
offer a better initial CLI experience because the default STTY size is used for the window, using the virsh console method allows for easy changing of the CLI size with stty rows <Y> cols <X>
so I prefer that which is the reason I have so far been changing away from the default to use the serial console.