virsh console command can be used to connect to the virtual serial console for a guest machine in KVM/QEMU. Here is the basic syntax:
virsh console <vm-name>
<vm-name> is the name of the virtual machine you want to connect to.
Once you enter this command, you should see the console output of the guest machine. To exit the console, you can use the key combination
Ctrl+]. This will return you to the host shell.