Recently I got a small server, installed pve, and installed win7 and centos. I want to use the set display pass-through to win7. It is very convenient to make a pve hardware pass-through. Record it.
1. Modify grub, edit the file /etc/default/grub, modify the line "GRUB_CMDLINE_LINUX_DEFAULT="quiet" to "GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on", if it is amd cpu, please change it to: GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_DEFAULT="quiet amd_ on". Execute the command "update-grub" to make the modification effective.
~# vi /etc/default/grub
~# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.17-1-pve
Found initrd image: /boot/initrd.img-4.15.17-1-pve
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
Adding boot menu entry for EFI firmware configuration
done
2. Add new modules. Modify the file /etc/modules and add the following line
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
3. Restart
4. Add PCI device to the pve web panel, find the corresponding device, and you are done!
5. Start win7, the download driver wizard has detected that the graphics card driver is not installed, install the graphics card driver~
----------------------------------------Updated on April 28, 2020--- -------------------------------------
I didn't explain the environment and follow-up when I wrote this article. My environment is
Motherboard: dq77kb
CPU:E3-1265L
PVE version: 5.3-8 The
blue screen when the graphics card driver is installed and restarted:
I tried a variety of solutions, but I didn’t solve it. Later, people said on the forum that the 2-3 generation cpu core showed that PVE could not be directly connected, okay~~~
————————————————
Copyright Disclaimer: This article is the original article of the CSDN blogger "__BoBo". It follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement for reprinting.
Original link: https://blog.csdn.net/xiaobo060/article/details/88564025