Enable serial console for virtual machine

I have an initial installation complete using the OVF image inside of KVM. While I can connect to the console via the framebuffer, I can’t connect from virsh console which is what I’d use over SSH. The UEFI loader works until the kernel is booted.

It looks like the kernel isn’t being passed any console parameters to enable serial access. I haven’t found any configuration (grub or otherwise) in the OS to manage the kernel command line parameters to add the console flag. Any suggestions?

I figured it out; the boot partition isn’t mounted at /boot, but /mnt/boot. Setting /mnt/boot/cmdline.txt to console=tty1 console=ttyS0 and restarting the VM fixed console access.

1 Like