2,904 瀏覽數

RHEL6 – VT-d

增加 RHEL 6 的 VT-d 核心參數,參考了下面的文章

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/chap-Virtualization-PCI_passthrough.html

原文敘述的較詳細,簡單的來說在 Boot kernel 加入 intel_iommu=on(Intel Platform) 或是 amd_iommu=on(AMD Platform) 即可支援 Intel VT-D 或是 AMD IOMMU.
Intel Platform

  1. Enable the Intel VT-d extensions
    The Intel VT-d extensions provides hardware support for directly assigning a physical devices to guest.The VT-d extensions are required for PCI device assignment with Red Hat Enterprise Linux. The extensions must be enabled in the BIOS. Some system manufacturers disable these extensions by default.These extensions are often called various terms in BIOS which differ from manufacturer to manufacturer. Consult your system manufacturer's documentation.
  2. Activate Intel VT-d in the kernel
    Activate Intel VT-d in the kernel by appending the intel_iommu=on parameter to the kernel line of the kernel line in the /boot/grub/grub.conf file.The example below is a modified grub.conf file with Intel VT-d activated.

    [root@benjr Desktop]# vi /boot/grub/grub.conf
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title Red Hat Enterprise Linux Server (2.6.32-36.x86-645)
    root (hd0,0)
    kernel /vmlinuz-2.6.32-36.x86-64 ro root=/dev/VolGroup00/LogVol00 rhgb quiet intel_iommu=on
    initrd /initrd-2.6.32-36.x86-64.img
    
  3. Ready to use
    Reboot the system to enable the changes. Your system is now PCI device assignment capable.

AMD Platform

  1. Enable AMD IOMMU extensions
    The AMD IOMMU extensions are required for PCI device assignment with Red Hat Enterprise Linux. The extensions must be enabled in the BIOS. Some system manufacturers disable these extensions by default.
  2. Enable IOMMU kernel support
    Add append amd_iommu=on to the kernel line so that AMD IOMMU extensions are enabled at boot.

發表迴響