GRUB2 is the default boot loader for RHEL 7. By default, it doesn't use any fancy configuration options, but it is wise to at least secure your grub boot loader.
There are many advantages to having your grub and boot environment output to serial console in an enterprise environment. Many vendors integrate virtual serial ports in their remote control systems, as does KVM. This allows you to connect to the serial port and easily grab whatever is displayed in a text editor.
Setting a password on the GRUB2 boot loader mitigates possible hacking attempts on your system when you have physical access to the server or console. Perform the following steps for this recipe:
First, edit
/etc/sysconfig/grub
with your favorite editor.Now, modify the
GRUB_TERMINAL_OUTPUT
line to include both console and serial access by executing the following command line:GRUB_TERMINAL_OUTPUT="console serial"
Add the
GRUB_SERIAL_COMMAND
entry, as follows:GRUB_SERIAL_COMMAND=...