I am having trouble today with creating a new VM with a serial console under KVM running Rocky 9.3 (5.14.0-362.8.1.el9_3 to be exact). The VM creates fine and I can complete the install with a minimal setup. I access the ssyetm and make my normal mods to /etc/default/grub:
But after doing this, the virtual serial console does not get used much by the instance. The grub menu appears there, but none of the boot output goes there and I do not get a login prompt.
From an OS perspective, the ttyS0 is there - an echo to the device goes through and I can see that output when connected to it.
This is very weird because this setup works on my other Rocky 9.3 systems
Is blsconfig enabled or disabled in your vm /etc/default/grub? If enabled then your commandline options have not been added to the /boot/loader/entries/ files. I discovered this the other day. Your grub2-mkconfig should contain this option to update those entries:
So you did succeed or you were asking for confirmation? The commandline looks correct to me but I haven’t tested as I used grubby prior to learning this fact. Unfortunately it may not be uniformly implemented across RH OS’s such as rh8.9 or fedora.