No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei IN200 NIC User Guide 07

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Modifying the GRUB Configuration File

Modifying the GRUB Configuration File

Depending on the Linux distributions, the system Grand Unified Boot Loader (GRUB) configuration file may be grub.conf or grub.cfg.

This section describes how to configure the iommu and intel_iommu parameters in the SR-IOV passthrough mode.
  • To enable SR-IOV in the kernel, add intel_iommu=on to the GRUB file.
  • To avoid memory mapping and performance problems on the host, add iommu=pt to the GRUB file when SR-IOV is enabled.

Procedure

This section uses RHEL 7.4 as an example to describe how to modify the system GRUB configuration file.

  1. Run the following command to check whether SR-IOV is enabled:

    cat /proc/cmdline

    Check whether "intel_iommu=on iommu=pt" is displayed in the command output.

    • If yes, no further action is required.
    • If no, go to 2.

  2. Run the following command to search for the GRUB file.

    find /boot/ -name grub.cfg

    If the following information is displayed, the grub.cfg file exists in the /boot/efi/EFI/redhat/ directory.

    /boot/efi/EFI/redhat/grub.cfg

  3. Edit the grub.cfg file

    vi /boot/efi/EFI/redhat/grub.cfg

    Press I to edit the file and add the intel_iommu=on iommu=pt system startup command at the location specified in the following figure.

    After the modification is complete, press Esc to exit the editing mode and enter :wq! to save the settings and exit.

  4. Run the following command to restart the system.

    reboot

  5. Run the following command to check whether intel_iommu=on iommu=pt is added to /proc/cmdline.

    cat /proc/cmdline

    Check whether "intel_iommu=on iommu=pt" is displayed in the command output.

    • If yes, no further action is required.
    • If no, repeat 2 to 5.

Translation
Download
Updated: 2019-11-19

Document ID: EDOC1100063073

Views: 9252

Downloads: 51

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next