HP ILO / RHEL7 Systemd Output to VSP console

During my last post, I described the redirection of Linux Output to Serial on an Upstart Distribution based (using RHEL6). The main aim of this post is to describe the same on Systemd Distribution based (RHEL7). Before I begin with the technical matters, I have to say that I've been quite impressed by how Systemd makes this configuration so easy (no pain at all! So cool!). This isn't to make a comparison between Systemd and Traditional Init or Upstart, but you can check these two previous posts to draw your own Conclusions:  VSP/Traditional Init, VSP/Upstart.
Let's now delve in the interesting matters. The whole procedure is just about setting Kernel Options and reboot, and if the reboot can't be performed right away, just start a systemd service.

1. Set the Kernel Options boot options: 

On RHEL7 with Grub2, add "console=ttyS1" to  GRUB_CMDLINE_LINUX in /etc/default/grub file (You might also remove rhgb quiet as rhgb is for RedHat Graphical Boot and quiet is meant to hide the majority of boot messages before rhgb starts)

Changes to /etc/default/grub require rebuilding the grub.cfg file. This file location's on BIOS based machine is /boot/grub2 and for UEFI based machine, it is /boot/efi/EFI/redhat/.

On BIOS Based Machine:

On UEFI Based Machine:

2. Reboot or start a serial-getty service on ttyS1

Now we can either reboot the System to have the Kernel Loaded with the new parameter during the reboot , or (especially if we can't afford a downtime :-)) run the following to have a getty service started right away on the ttyS1.

That's it! So simple! Go on the console, run vsp and there's a nice prompt...



  1. If you are wanting to login as root, don't forget to add "ttyS1" in /etc/securetty.

  2. Found two issues with this approach; on some hardware if a fast baud rate isn't specified, RHEL 7 hangs up waiting for the console and ends up printing an infinite loop of kernel crash messages. Just adding the serial console causes the video card console to be blank. To resolve these issues use:

    console=tty0 console=ttyS1,115200

    In our case we want the serial port to be the 'system' console; if one wants the opposite just swap them.

    1. Thanks for that great feedback, you are totally right.
      I'm rewriting that section to include your feedback.
      Thanks again