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

Upcoming Events (CET)

There are no events.

RHCSA7: Task of the day

Allowed time: 5 minutes.
Create a user called tom. Create a directory named /private. Use an acl to only allow access (rwx) to tom to the private directory.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a httpd virtual server called "dummy" with DocumentRoot assigned to /opt.

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 ...