[CentOS] CentOS 7 kernel console under KVM?

Mike mike at microdel.org
Wed Oct 8 17:02:50 UTC 2014


On Wed, 8 Oct 2014, Chris Adams wrote:

> Is there a way to get GRUB2 and the kernel to run a "serial" console
> under KVM?
>
<snip>

This worked for me.  Add the following three lines to /etc/default/grub:

    GRUB_CMDLINE_LINUX='console=tty0 console=ttyS0,115200n8'
    GRUB_TERMINAL=serial
    GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"

Then re-generate grub.cfg:

    grub2-mkconfig -o /boot/grub2/grub.cfg


Taken from: https://fedoraproject.org/wiki/GRUB_2?rd=Grub2

(near the bottom of the page)



More information about the CentOS mailing list