

# Step E: Switch boot mode to UEFI
<a name="migrate-server-218-boot-mode-uefi"></a>

RHEL 9 requires that the boot mode for the appliance is UEFI. You can change the boot mode from BIOS (or Legacy mode) to UEFI.

**Topics**
+ [

# Switch to UEFI on a Dell
](migrate-server-218-boot-mode-uefi-dell.md)
+ [

# Switch to UEFI on a SuperMicro
](migrate-server-218-boot-mode-uefi-smc.md)

# Switch to UEFI on a Dell
<a name="migrate-server-218-boot-mode-uefi-dell"></a>

There are three ways to switch the boot mode from Legacy mode to UEFI.

**Topics**
+ [

## Switch using the IDRAC user interface
](#migrate-server-218-boot-mode-uefi-idrac)
+ [

## Switch using RACADM
](#migrate-server-218-boot-mode-uefi-racadm)
+ [

## Switch using the F2 boot menu
](#migrate-server-218-boot-mode-uefi-f2)

## Switch using the IDRAC user interface
<a name="migrate-server-218-boot-mode-uefi-idrac"></a>

iDRAC is a system for controlling Dell servers remotely. It is already installed and enabled on the Dell server. However, you might need to configure it. For more information about configuring iDRAC, see the official [Dell iDRAC User Guide](https://www.dell.com/support/manuals/us/en/04/idrac9-lifecycle-controller-v4.x-series/idrac9_4.00.00.00_ug_new).

This procedure is identical to the procedure for switching to BIOS, except that you choose **UEFI** instead of **BIOS**.

1. Log into the iDRAC user interface as an administrative user. 

1. On the iDRAC menu, choose **Configuration, then BIOS Settings**, then **Boot Settings.**

1. On the **Boot Mode** line, change the **Current Value** from **BIOS** to **UEFI**.

1. Scroll down to the **Apply ** button and choose that button. The **Pending Value** changes to **UEFI**.

1. Scroll down to the bottom of the page and choose **Apply And Reboot**.

The system reboots. UEFI is now enabled.

## Switch using RACADM
<a name="migrate-server-218-boot-mode-uefi-racadm"></a>

You can switch to UEFI mode by logging into RACADM, which is the iDRAC command line interface.

This procedure is identical to the procedure for switching to BIOS, except that you specify **UEFI** instead of **BIOS**.

1. Start a Linux session and log into the iDRAC command line interface as a Linux Admin user. For example:

   ```
   ssh ADMIN@<iDRAC hostname or IP>
   ```

   The IDRAC command line interface appears, with the **racadm>>** prompt. 

1. To verify that the current boot environment is BIOS, enter this command:

   ```
   get BIOS.biosBootSettings.BootMode
   ```

   If the environment is BIOS, a message similar to the following appears:

   ```
   [Key=BIOS.Setup.1-1#biosBootSettings] 
   BootMode=Bios
   ```

1. Set the **BIOS settings** to **UEFI**:

   ```
   set BIOS.BiosBootSettings.BootMode Uefi
   ```

1. Apply and reboot:

   ```
   jobqueue create BIOS.Setup.1-1 -r Forced
   ```

The system reboots. UEFI is now enabled.

## Switch using the F2 boot menu
<a name="migrate-server-218-boot-mode-uefi-f2"></a>

You can use the boot menu from a direct connection to the server, or through the IDRAC virtual console. 

This procedure is identical to the procedure for switching to BIOS, except that you specify **UEFI** instead of **BIOS**.

1. This step applies only if you want to use the virtual console: log into the iDRAC user interface and launch the Virtual Console.

1. Reboot the appliance. 

   ```
   sudo reboot
   ```

1. The appliance starts to reboot using BIOS, which is currently enabled. 

1. As soon as the reboot starts, repeatedly press **F2** on the keyboard, until the message **Entering System Setup** appears. Then wait for the **System Setup** screen to appear.

1. Choose **System BIOS**, then choose **Boot Settings**. 

1. On the **Boot Mode** line, choose **UEFI**. 

1. Choose the **Exit** option and follow the prompts to save. At the success message, choose **OK**. 

The system reboots. UEFI is now enabled.

# Switch to UEFI on a SuperMicro
<a name="migrate-server-218-boot-mode-uefi-smc"></a>

To switch the boot mode from BIOS (Legacy mode) to UEFI, you can use the IPMI interface, or you can work when directly connected to the server. 

## Step 1: Install Java applet
<a name="migrate-server-218-boot-mode-uefi-smc-step1"></a>

Decide if you want to use the IPMI management console, or if you plan to connect directly to the server. If you want to use the console, decide if you want to use the Java remote console applet to access the console, or if you want to use HTML5.

If you want to use the IPMI management console and you want to use the Java remote console applet, you must install the applet. 

1. Make sure you have the IP address of the IPMI. If you don’t have it, connect to the appliance using SSH, then type the following command:

   ```
   sudo ipmiutil lan | grep Param\(3\)
   ```

   The IP address appears in the response. For example:

   ```
   Lan Param(3) IP address: 10 4 130 12
   ```

1. Log in to the IPMI management console via a web browser. Use the ADMIN credentials, with the user name entered in uppercase.

1. From the menu bar, choose **Console Redirection**, then **Launch Console**. The download of a JNLP file starts. 

1. When the download is complete, open the applet. The applet is self signed. Typically, this file is already associated with Java so you should just be able to open it directly.

1. Change the security level in the Java control panel in order for the applet to run:

   1. In Windows, open **Control Panel**, **Programs**, and then **Java**.

   1. Click the **Security** tab. Move the slider to the lowest setting: **Medium**.

   1. Click **OK**. 

You can now open the remote console window. 

## Step 2: Change the mode to UEFI
<a name="migrate-server-218-boot-mode-uefi-smc-step2"></a>

This procedure is nearly identical to the procedure for switching to BIOS. You change the same fields on the **Setup Utility** screen.

1. From the IPMI management console, sign in to the server as the *elemental* user.

1. Reboot the system: 

   ```
   [elemental@hostname]$ sudo reboot
   ```

   The system starts to reboot. The window size might change as the system is rebooting.

1. While the system is rebooting, repeatedly press the **Delete** key on the keyboard (or the **del **button on the virtual keyboard). The **Setup Utility** screen appears.

   You can use these keys to work on the screen:
   + The arrow keys
   + Enter to select
   + ESC to return to the previous screen. 

1. On the main menu, choose **Advanced**.

1. In **sSATA Configuration**, look for fields that have one of these values:
   + **BIOS**
   + **DUAL**
   + **Legacy**
   + **Legacy BIOS**

   Change the value to **EFI**. If there are no fields with these values, go to the next step.

1. In **PCIe/PCI/PnP Configuration**, find every field that has one of these values:
   + **BIOS**
   + **DUAL**
   + **Legacy**
   + **Legacy BIOS**

   In each of these fields, change the value to **EFI**.

1. On the main menu, choose **Boot**. In **Boot Mode Select**, change the value from **DUAL** to **UEFI**.

1. Select **F4**. On the **Save & Exit** dialog, choose **Yes**.