Installing CentOS 8

There are several methods for installing CentOS as described in the CentOS Installation Guide.

See the DGX Software for Red Hat Enterprise Linux Release Notes for the version of Red Hat Enterprise Linux 8 that is qualified and tested for use with the DGX software.

For convenience, this section describes how to install CentOS or Rocky Linux using the Quick Install method, and shows when to reclaim disk space in the process. It describes a minimal installation. If you have a preferred method for installing CentOS, then you can skip this section but be sure to reclaim disk space occupied by the existing Ubuntu installation.

The interactive method described here installs CentOS on DGX using a connected monitor and keyboard and USB stick with the ISO image, or remotely through the remote console of the BMC.

Obtaining CentOS 8

Obtain the CentOS 8 ISO image and store on your local disk or create a boot USB drive formatted for UEFI. See Downloading CentOS for instructions.

For Rocky Linux 8, visit Downloading Rocky Linux.

Important: Refer to the release notes for any critical information regarding supported releases or dependencies.

Booting CentOS 8 ISO Locally

  1. Plug the USB flash drive containing the CentOS 8 ISO image into the DGX.
  2. Connect a monitor and keyboard directly to the DGX.
  3. Boot the system and press F11 when the NVIDIA logo appears to get to the boot menu.
  4. Select the USB volume name that corresponds to the inserted USB flash drive, and boot the system from it.
  5. Follow the instructions at Installing CentOS

Booting the CentOS 8 ISO Remotely

Skip this chapter if you are using a monitor and keyboard for installing locally. It is also not possible to boot an ISO remotely if you are doing the install on a DGX Station.

Booting the ISO Image on the DGX-1 Remotely

Skip this chapter if you are using a monitor and keyboard for installing locally.
  1. Connect to the BMC and change user privileges.
    1. Open a Java-enabled web browser within your LAN and go to http://<BMC-ip-address>/, then log in.

      Use Firefox or Internet Explorer. Google Chrome is not officially supported by the BMC.

    2. From the top menu, click Configuration and then select Users.
    3. Select the user name that you created for the BMC, then click Modify User.
    4. In the Modify User dialog, select the VMedia checkbox to add it to the extended privileges for the user, then click Modify.

  2. Set up the ISO image as virtual media and reboot the system.
    1. From the top menu, click Remote Control and select Remote KVM.

    2. Click Launch KVM to open the remote console.
    3. From the top menu bar in the KVM window, click Browse File and select the ISO image, then click Start Media.

      The CD image should now be connected.

    4. From the top menu bar in the KVM window, click Power and then select Reset Server.
  3. Boot the CD ROM image.

    Typically, the default boot order does not boot the CDROM image. This can be changed in the BIOS or as a one-time option in the boot menu. To bring up the boot menu, press F11 at the beginning of the boot process. Pressing F11 will display Show Boot Options at the top of the virtual display before entering the boot menu. Use the ‘soft’ keyboard (Menu → Keyboard Layout → SoftKeyboard → <Language>) to bring up a virtual keyboard if pressing the physical key has no effect.

    1. In the boot menu, select UEFI: AMI Virtual CDROM 1.00 as the boot device and then press ENTER.

    2. Follow the instructions at Installing CentOS.

Booting the ISO Image on the DGX-2 or DGX A100 Remotely

Skip this chapter if you are using a monitor and keyboard for installing locally.
  1. Connect to the BMC and ensure the required user privileges are set.
    1. Open a browser within your LAN and go to https://<BMC-ip-address>/, then log in.
    2. From the left-side menu, click Settings and then select User Management.
    3. Click the card with the user name that you created for the BMC.
    4. In the User Management Configuration dialog, make sure the VMedia Access checkbox is selected, then click Save.

  2. Set up the ISO image as virtual media.
    1. From the left-side menu, click Remote Control.

    2. Select Launch KVM.

    3. From the top menu bar in the KVM window, click Browse File and select the ISO image, then click Start Media.

      The CD image should now be connected.

    4. From the top menu bar in the KVM window, click Power and then select Reset Server.
  3. Boot from the virtual media.

    Typically, the default boot order does not boot the CDROM image. You can change this in the BIOS or as a one-time option in the boot menu.

    1. To bring up the boot menu, press F11 at the beginning of the boot process.

      Pressing F11 will display Entering Boot Menu in the virtual display before entering the boot menu.

    2. In the boot menu, select UEFI: AMI Virtual CDROM0 1.00 as the boot device and then press ENTER.

      If you are booting from the DGX-2, the boot device is labeled UEFI: Virtual CDROM0 1.00.

    3. Follow the instructions at Installing CentOS

Installing CentOS

This section assumes you have booted the CentOS ISO image. For DGX Station, this can only be performed locally; for all other platforms, this can be performed locally or remotely.

If you wish to automate the installation with a kickstart file, see the section Installing with Kickstart
  1. After booting the ISO image, the GRUB menu for the installer appears.

  2. Select Install Red Hat Enterprise Linux and press ‘e’ to edit the selected option.
    1. Add the “nomodeset” parameter as shown below.

      “nomodeset” prevents the in-box Nouveau driver from loading as it may not properly support the GPUs used in the DGX systems, resulting in display issues.

    2. Press Ctrl-x to save your changes and start the installation.
  3. Refer to the CentOS Quick Installation Guide for guidance on using the installer.
  4. Configure the language, region, date, time, keyboard, and other configuration options you may need from the Installation Summary screen.
  5. Set the Software Selection to the correct value.
    • For DGX Station and DGX Station A100: Set to Server with GUI.
    • For DGX Servers (DGX 1-1, DGX-2, DGX A100): Set to Minimal Install.
    Note: Setting the correct Software Selection is critical for proper operation.

  6. Partition your disks based on the platform and whether or not you would like to use encryption:
  7. Configure Ethernet.

    From the Network & Host Name section, select and enable the Ethernet device. This defaults to DHCP and can be changed for static IP configurations under Configure.

  8. From the INSTALLATION SUMMARY screen, set your password (at User Settings > Root Password) and create a new user (at User Settings > User Creation), then click Begin installation to start the installation.

    When the system reboots, be sure and eject any still-mounted installation discs.

  9. Complete the initial CentOS setup.
    • If you installed using the Server with GUI base environment, the Initial Setup starts automatically where you can accept the license agreement and register the system. See the Red Hat instructions for details.
    • If you are using CentOS you will need to accept the license agreement.
    • If you installed with any other base environment, log on to the system as root user and then register the system.
      subscription-manager register --auto-attach --username=user_name --password=password

Installing with Kickstart

Install using Kickstart

Kickstart provides a method of automating the installation process by providing a file which contains the answers to the questions that would be asked during installation. NVIDIA provides kickstart templates for all supported platforms in the following locations:

In these files are tags that you must replace with your site specific information: language, keyboard, timezone, hostname, etc. Each tag is of the form <CHANGE_YOUR_xxxx>. These tags must be replaced with your specific information.

Once you have a kickstart file customized for your installation, place that file in a location that can be accessed by NFS, FTP, HTTP, or HTTPS. After booting from the installation medium, when the grub menu appears, press ‘e’ to edit the grub entry as you normally would to add the “nomodeset” option. In addition to “nomodeset”, add an option in the format “inst.ks=<URL>”. For example: inst.ks=https://192.168.1.2/kickstart/dgx-a100-cfg.ks

Lastly, after using these kickstart files -- remember to reboot the system one final time to apply all settings.

For more information on using kickstart files with Red Hat 8, refer to the Starting Kickstart Installations chapter in Red Hat’s documentation.

Disk Partitioning for DGX-1, DGX Station, and DGX Station A100

Note: The screenshots in the following section are taken from a DGX-1. The screens for the DGX Station and DGX Station A100 installations can present slightly different information for such things as disk size, disk space available, interface names, etc.
  1. At the Installation Destination screen, select the first drive (sda) to install on.

    Under Storage Configuration, click the Custom radio button and then click Done.

    This brings up the Manual Partitioning window.

  2. Expand the drop-down menu for the device you’ve selected and delete all existing partitions until there are none remaining.
  3. Click the + button on the bottom left to create a new partition.

    Create the /boot/efi partition with a size of 512 MiB.

  4. Select Standard Partition for the Device Type.

    Under Devices, ensure only the drive you chose in step 1 is selected. Click Update Settings to confirm your changes.

  5. Click the + button on the bottom left again to create another new partition.

    Create the / partition, this time leaving the Desired Capacity field empty. This lets the installer know to use the remaining capacity of the disks.

  6. For the / partition, again select Standard Partition for the Device Type.

    Under Devices, ensure that only the drive you chose in step 1 is selected. For the File System, select XFS. Click Update Settings to confirm your changes.

  7. Click Done.

    This causes a yellow warning bar to appear on the bottom because no swap partition has been created.

  8. Click Done again and then click Accept Changes to write all of our customizations to disk.

  9. Return to step 5 in the Installing Red Hat Enterprise Linux section.

Disk Partitioning with Encryption for DGX-1, DGX Station, and DGX Station A100

Note: The screenshots in the following section are taken from a DGX-1. The screens for the DGX Station and DGX Station A100 installations can present slightly different information for such things as disk size, disk space available, interface names, etc.
  1. At the Installation Destination screen, select the first drive (sda) to install on. Under Storage Configuration, click the Custom radio button and then click Done.

    This brings up the Manual Partitioning window.

  2. Expand the drop-down menu for the device you’ve selected and delete all existing partitions until there are none remaining.

  3. Click the + button on the bottom left to create a new partition.

    Create the /boot/efi partition with a size of 512 MiB.

  4. Select Standard Partition for the Device Type.

    Under Devices, ensure only the drive you chose in step 1 is selected.

    Click Update Settings to confirm your changes.

  5. Click the + button on the bottom left again to create another new partition.

    Create the /boot partition with a size of 2 GiB.

  6. For the /boot partition, again select Standard Partition for the Device Type.

    Under Devices, ensure that only the drive you chose in step 1 is selected. For the File System, select XFS.

    Click Update Settings to confirm your changes.

  7. Click the + button on the bottom left again to create another new partition.

    Create the / partition, this time leaving the Desired Capacity field empty. This lets the installer know to use the remaining capacity of the disks.

  8. For the / partition, again select Standard Partition for the Device Type.

    Be sure to check the Encrypt checkbox, and choose luks2 for the LUKS Version.

    For the File System, select XFS. Again confirm that this partition uses both of the devices you selected in step 2.

    Click Update Settings to confirm your changes.

    A prompt will now appear, asking for a LUKS password.

  9. Be sure to choose a strong and secure password.

    After entering your password twice, click Save Passphrase.

  10. Click Done.

    This causes a yellow warning bar to appear on the bottom because no swap partition has been created.

  11. Click Done again and then click Accept Changes to write all of our customizations to disk.

  12. Return to step 5 in the Installing Red Hat Enterprise Linux section.

Disk Partitioning for DGX-2 and DGX A100

Note: The screenshots in the following section are taken from a DGX A100. The screens for the DGX-2 installation can present slightly different information for such things as disk size, disk space available, interface names, etc.
  1. At the Installation Destination screen, select both M.2 disks (that is, the 894,25GB drives for DGX-2, or the 1.8 TB drives for DGX A100).

    Under Storage Configuration, click the Custom radio button and then click Done.

    This brings up the Manual Partitioning window.

  2. Expand the drop-down menu for the device you’ve selected and delete all existing partitions until there are none remaining.
  3. Click the + button on the bottom left to create a new partition.

    Create the /boot/efi partition with a size of 512 MiB.

  4. Change the Device Type to RAID, change the RAID Level to RAID1, then click Update Settings and confirm that this partition covers both of the devices you selected in step 2.

  5. Click the + button on the bottom left again to create another new partition.

    Create the / partition, this time leaving the Desired Capacity field empty. This lets the installer know to use the remaining capacity of the disks.

  6. For the / partition, again select RAID for the Device Type, RAID1, and the RAID Level.

    For the File System, select XFS.

    Click Update Settings to confirm this partition uses both of the devices you selected in step 2.

  7. Click Done.

    This causes a yellow warning bar to appear on the bottom because no swap partition has been created.

  8. Click Done again and then click Accept Changes to write all of our customizations to disk.

  9. Return to the instructions in the Installing Red Hat Enterprise Linux section.

    This should be at the step to configure Ethernet.

Disk Partitioning with Encryption for DGX-2 and DGX A100

Note: The screenshots in the following section are taken from a DGX A100. The screens for the DGX-2 installation can present slightly different information for such things as disk size, disk space available, interface names, etc.
  1. At the Installation Destination screen, select both M.2 disks (that is, the 894,25GB drives for DGX-2, or the 1.8 TB drives for DGX A100).

    Under Storage Configuration, click the Custom radio button and then click Done.

    This brings up the Manual Partitioning window.

  2. Expand the drop-down menu for the device you’ve selected and delete all existing partitions until there are none remaining.

  3. Click the + button on the bottom left to create a new partition.

    Create the /boot/efi partition with a size of 512 MiB.

  4. Change the Device Type to RAID, change the RAID Level to RAID1, and confirm that this partition covers both of the devices you selected in step 2 by clicking Modify in the Device(s) section and making sure both disks are still selected.

    Note that the partition information on the left may not reflect both devices yet.

    Click Update Settings to confirm your changes, and verify that the /boot/efi partition shown lists the partition name and not the individual device.

  5. Click the + button on the bottom left again to create another new partition.

    Create the /boot partition with a size of 2 GiB.

  6. For the /boot partition, again select RAID for the Device Type, RAID1, and the RAID Level.

    For the File System, select XFS.

    Again confirm that this partition uses both of the devices you selected in step 2 by clicking Modify in the Device(s) section and making sure both disks are still selected.

    Click Update Settings to confirm your changes.

  7. Click the + button on the bottom left again to create another new partition.

    Create the / partition, this time leaving the Desired Capacity field empty. This lets the installer know to use the remaining capacity of the disks.

  8. For the / partition, again select RAID for the Device Type, RAID1 and the RAID Level.

    Be sure to check the Encrypt checkbox, and choose luks2 for the LUKS Version.

    For the File System, select XFS. Again confirm that this partition uses both of the devices you selected in step 2.

    Click Update Settings to confirm your changes, and Done to begin exiting the partition menu.

    A prompt will now appear asking for a LUKS password.

  9. Be sure to choose a strong and secure password.

    After entering your password twice, click Save Passphrase.

  10. Click Done.

    This causes a yellow warning bar to appear on the bottom because no swap partition has been created.

  11. Click Done again and then click Accept Changes to write all of our customizations to disk.

  12. Return to step 5 in the Installing Red Hat Enterprise Linux section.