哈哈哈,最近终于把AMD显卡透传做完了。小论文已经写完。超级开心!!!下面附上我的显卡透传步骤:
Step by Step:
- Hardware
GPU: AMD Firepro W2100
CPU: Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
MEM: 32G
SSD: 480G
OS: CentOS7.3 + Ocata
- Update kernel for ‘CONFIG_VFIO_PCI_VGA’ and 'i915 VGA arbiter patch’
[root@host016 astute]#rpm -ivh
http://ftp.sjtu.edu.cn/centos/7/centosplus/x86_64/Packages/kernel-plus-3.10.0-514.16.1.el7.centos.plus.x86_64.rpm
[root@host016 astute]# virsh version
根据库编译:libvirt 2.0.0
使用库:libvirt 2.0.0
使用的 API: QEMU 2.0.0
运行管理程序: QEMU 2.6.0
[root@host016 astute]# uname -a
Linux host016 3.10.0-514.16.1.el7.centos.plus.x86_64 #1 SMP Wed Apr 26 15:25:40 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@host016 gpu]# grep CONFIG_VFIO_PCI_VGA /boot/ -r
/boot/config-3.10.0-514.16.1.el7.centos.plus.x86_64:CONFIG_VFIO_PCI_VGA=y
- Modify grub parameter for intel_iommu and i915
[root@host016 gpu]# vi /etc/default/grub
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet idel=poll idel=poll
intel_iommu=on i915.enable_hd_vgaarb=1
modprobe.blacklist=nouveau"
[root@host016 gpu]#
grub2-mkconfig -o /boot/grub2/grub.cf
g
####
GRUB2不再使用 menu.list,而是使用全新的配置文件 /boot/grub2/grub.cfg,文件权限为 444,其目的就是为避免手动更新,我们可以借助 grub2-mkconfig -o /boot/grub2/grub.cfg 命令来更新.
- Set default boot kernel
[root@host016 home]# cat /boot/grub2/grub.cfg | grep menuentry
if [ x"${feature_menuentry_id}" &