Configure the Serial Terminal
vi /etc/init/ttyS0.conf
Code: Select all
stop on runlevel[016]
start on runlevel[345]
respawn
instance /dev/ttyS0
exec /sbin/mingetty /dev/ttyS0
vi /etc/securetty
Code: Select all
# append this to the end of the file:
ttyS0
initctl start ttyS0
Test the serial console via the host machine
virsh console <efa machine> <enter><enter>
Configure Boot Output to use the serial console as well
vi /etc/grub.conf
Code: Select all
# append to all kernel= lines
console=ttyS0
# remove from all kernel= lines if they exist
rhgb
quiet
copied entirely from here: https://mcdee.com.au/kvm-virsh-console-access-centos/