Enabling user logins with a getty service

6.10 LPAR mode z/VM guest

If your distribution uses systemd, you can enable getty services to allow user logins on a terminal.

Before you begin

You must explicitly enable user logins for the HVC terminals hvc1 to hvc7 and for any dynamically attached virtual or real 3270 terminals.

On all other terminals that are available in your environment systemd automatically enables user logins for you. In particular you do not need to enable user logins for the following terminals:
  • hvc0
  • 3270/tty1
  • Terminals that are available in KVM guests
Tip: Instead of the getty service, use the ttyrun service to enable user logins on HVC terminals. With the ttyrun service, you are free to change the conditions that affect the availability of HVC terminals.

Procedure

Perform these steps to use a getty service for enabling user logins on a terminal:

  1. Enable the new getty service by issuing a command of this form:
    # systemctl enable serial-getty@<terminal>.service
    where <terminal> specifies one of the terminals hvc1 to hvc7 or 3270-tty<N> and <N> is an integer greater than 1.
    Note: You specify terminal 3270/tty<N> as 3270-tty<N>.
  2. Optional: Start the new getty service by issuing a command of this form:
    # systemctl start serial-getty@<terminal>.service

Results

At the next system start, systemd automatically starts the getty service for you.

Example

For 3270/tty2, issue:
# systemctl enable serial-getty@3270-tty2.service
# systemctl start serial-getty@3270-tty2.service