Console tip.

Share this link

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!

Posted in RHEL6

Leave a Reply

Be the First to Comment!

Notify of
wpDiscuz

RHCSA7: Task of the day

Allowed time: 10 minutes.
Set up a default configuration HTTP server with SELinux in Enforcing mode and active firewalld configuration.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a default secure MariaDB database called maria and create a table named people with two columns respectively name varchar(20) and age int(10) unsigned.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...