• news
  • pics
  • linux
  • windows
  • proxmox
  • game
  • news
  • pics
  • linux
  • windows
  • proxmox
  • game
Home
proxmox

how to passthough gpu card in proxmox

Virtual graphics card performance is too weak.we need to use real graphics card to improve display performance.

Before starting passthough gpu card.Make sure something right first.

1 your passthough card is AMD card.
Because NVDIA company made a check in their video card drivers.If it found that the system is VM system.The driver will stop working.Although there is a way to bypass the drive blockade, it is troublesome.AMD gpu cards don’t have this problem.

2 Your gpu card support UEFI bios.
Although traditional seabios can also be passthough successful.But there are always strange problems.
For example.My card RX560.Running score under real system can reach 70,000 points.It can work normal under UEFI mode and reach 68,000 points.But only get 7,000 points under seabios mode.And if I run GPU-Z. The guest system windows get blue screen crash and whole system crash completely.

Now we can start passthough work.

1 enable UEFI boot in your Physical machine bios.
If your machine do not suport UEFI mode.It doesn’t matter.We can dump gpu card bios and use it as a file in proxmox.

2 modify /etc/default/grub
vi /etc/default/grub
found GRUB_CMDLINE_LINUX_DEFAULT="quiet" line.
intel cpu: modify to GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt video=efifb:off"
amd cpu: modify to GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt video=efifb:off"
Then save the file and run update-grub.

3 modify /etc/modules
vi /etc/modules
add following things.it can’t change the order

 vfio
 vfio_iommu_type1
 vfio_pci
 vfio_virqfd

Then save and run update-initramfs -u -k all.

4 add gpu card ID.
how to get gpu card id.
first run lspci. we can get a list about pci devices.

We can found that the line which start with “02:00” is my gpu card.
02:00.0 is gpu device.
02:00.1 is hdmi audio device that on gpu card.

02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Polaris11] (rev cf)

02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aae0

Then we run lspci -n -s 02:00 to get card ID.

[email protected]:~# lspci -n -s 02:00

02:00.0 0300: 1002:67ff (rev cf)

02:00.1 0403: 1002:aae0

[email protected]:~#
Run commands.

echo "options vfio-pci ids=1002:67ff,1002:aae0" > /etc/modprobe.d/vfio.conf
echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/vfio_iommu_type1.conf

modprobe kvm ignore_msrs=y
modprobe kvm_intel nested=y ept=y

5 modify /etc/modprobe.d/pve-blacklist.conf

check which drive that your videocard used.

lspci -k -i 02:00


add content to blacklist drivers

blacklist amdgpu
blacklist snd_hda_intel

Then run update-initramfs -u -k all
After thest.Reboot your proxmox system.

6 Configure your guest system configuration (test that not need on higher than 5.4 pve)
copy your UEFI bios which dump from gpu card(Use gpu-z to dump it or it can download from other web site) to /usr/share/kvm dir with vbios.bin name.

add pci device in hardware list.




The rom-file parameter can’t set by web mode.
You can modify VM config file directly after add pci device.
All VM guest config files are in /etc/pve/nodes/pve/qemu-server/.
Modify conf file with guest system id.
Likevi /etc/pve/nodes/pve/qemu-server/105.conf

After these.Your can find your gpu-card in your guest system.Install driver and works.

Previous article how to passthough harddisk in Proxmox
Next article how to configure local Yum source and external network source in Linux

therock

20 Comments

  1. keto reset diet
    July 7, 2021 at 9:08 am

    keto for dummies

  2. can you eat nuts on keto diet
    July 6, 2021 at 10:29 pm

    cheap keto diet

  3. keto blueberry muffins
    July 6, 2021 at 10:20 pm

    fat bombs keto

  4. dating agencies free
    June 25, 2021 at 7:49 am

    lesbian dating site free

  5. dating site free usa
    June 24, 2021 at 6:38 pm

    free lesbian dating sites online

  6. free chatting and dating site
    June 24, 2021 at 6:01 am

    free cowboy dating site

  7. free dating london
    June 24, 2021 at 3:42 am

    free midget dating sites

  8. Usescedge
    June 15, 2021 at 5:18 am

    finpecia

  9. Usescedge
    June 14, 2021 at 1:43 am

    order methyl prenisone without rx

  10. 100 free sex dating sites
    June 2, 2021 at 1:39 am

    free to use bbw dating online

  11. too many fish free dating
    June 2, 2021 at 12:10 am

    english dating sites free

  12. free tattoo dating sites
    June 1, 2021 at 7:54 pm

    zoosk free dating website

  13. free adult dating sites reviews
    June 1, 2021 at 6:40 pm

    free brazilian dating sites online

  14. best 100 percent free online dating sites
    May 21, 2021 at 12:39 am

    free japanese dating games in english

  15. free dating sites for asians
    May 20, 2021 at 8:07 pm

    free dating websites u.s.a

  16. free cougar dating website uk
    May 20, 2021 at 6:46 pm

    dating ariane free play

  17. sa free dating
    May 19, 2021 at 11:45 pm

    liverpool free dating

  18. free 100% dating sites
    May 19, 2021 at 10:48 pm

    free full dating sites

  19. better than tinder uk
    May 16, 2021 at 2:22 pm

    better than tinder uk

    how to passthough gpu card in proxmox – rock funs

  20. super tinder
    May 15, 2021 at 4:58 pm

    super tinder

    how to passthough gpu card in proxmox – rock funs

Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Categories
  • game
  • linux
  • news
  • pics
  • proxmox
  • windows
Recent Posts
  • proxmox7.3直通显卡
  • Proxmox VE 直通显卡方案及解决N卡Code43
  • Linux系统出现:You have new mail in /var/spool/mail/root 的原因及解决办法
  • debian系统解决中文乱码
  • pve添加git和pvetools
Recent Comments
  • EdgarTot on proxmox7.3直通显卡
  • Ashvem on proxmox7.3直通显卡
  • Tedvem on proxmox7.3直通显卡
  • Jackvem on proxmox7.3直通显卡
  • Miavem on proxmox7.3直通显卡
Archives
  • March 2023 (1)
  • December 2022 (4)
  • November 2022 (6)
  • April 2022 (1)
  • February 2022 (5)
  • January 2022 (2)
  • December 2021 (3)
  • November 2021 (1)
  • October 2021 (2)
  • September 2021 (1)
  • August 2021 (1)
  • July 2021 (8)
  • June 2021 (14)
  • May 2021 (2)
  • April 2021 (2)
  • March 2021 (10)
  • January 2021 (4)
  • December 2020 (4)
  • November 2020 (13)
  • April 2020 (276)
  • March 2020 (1)
  • June 2019 (5)
  • May 2019 (10)
  • December 2015 (1)