Bookmark this page

Practice: Selecting a Boot Target

In this lab, you will configure your serverX system to boot into different targets.

Resources:
Machines: serverX

Outcomes:

A system booted into different targets.

  • Reset your serverX system.

  1. On your serverX system, switch to the multi-user target manually without rebooting.

    1. [student@serverX ~]$ sudo systemctl isolate multi-user.target
  2. Log into a text-based console as root.

  3. Configure your serverX to automatically boot into the multi-user target after a reboot, then reboot your serverX system to verify.

    1. [root@serverX ~]# systemctl set-default multi-user.target
      rm '/etc/systemd/system/default.target'
      ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target'
    2. [root@serverX ~]# systemctl reboot
  4. Reboot your serverX system, then from within the boot loader menu, boot into the rescue target.

    1. Reboot your serverX machine.

      [root@serverX ~]# systemctl reboot
    2. Interrupt the boot loader when the menu appears by pressing any key.

    3. Move the selection to the default entry (the first one) using the cursor keys.

    4. Press e to edit the current entry.

    5. Move the cursor to the line that starts with linux16.

    6. Move the cursor to the end of the line (using the End key), and append the following text:

      systemd.unit=rescue.target
    7. Press Ctrl+x to boot using the modified configuration.

    8. When prompted for the root password, enter redhat.

  5. Set the default systemd target back to the graphical target.

    [root@serverX ~]# systemctl set-default graphical.target
  6. Press Ctrl+d to continue booting into the (new) default target.

Revision: rh134-7-c643331