Console tip.

If you have built a KVM lab like I did, you know what it means not to be able to connect to your VM because you made a mistake in your /etc/fstab file.
This happened to everybody!
Hopefully, there is a solution: create a serial console.
It only takes 3 lines and a reboot!# echo "S0:12345:respawn:/sbin/agetty ttyS0 115200" >>/etc/inittab# grubby --update-kernel=ALL --args="console=ttyS0"# echo "ttyS0" >>/etc/securetty# reboot
Now, if you want to connect to your vm, type:# virsh console vm.example.com
If you know why it’s not done by default, let me know!