Dual GPU 2x RX560’s on Win and Mac VM’s

guavatone

New Member
Oct 14, 2024
3
1
3
Here’s what worked for me on this hardware. Hopefully this helps others banging their heads against the wall trying to hack away. I’ve been building PCs and hackintoshes for quite some time, so I know my way around opencore a bit. I think the main bios settings are:


IGPU on rather than PEG
virtualization on
Bios Advanced>PCIe/PCI ASPM settings > ASPM disabled
Bar and 4G crypto disabled

hardware:
MSI Z490-A PRO motherboard
11700k CPU
2 MSI Radeon RX 560 AERO ITX 2G Baffin core


SSD hard drive
Old SATA HFS dives to pass through

The MAC Monterrey VM

The Definitive Guide to Running MacOS in Proxmox

Basic details here

PCI Passthrough

nano /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset initcall_blacklist=sysfb_init”

update-grub

Get your GPU ID’s

nano /etc/modprobe.d/vfio.conf

options vfio-pci ids=1002:67ff,1002:aae0 disable_vga=1

Ids=xxxxxxxxx are my particular GPU ids

nano /etc/pve/qemu-server/myVM.conf

Should read this in my case

hostpci1: 0000:01:00,pcie=1

2nd VM in my case

hostpci1: 0000:03:00,pcie=1

Unselect primary on both VM’s key to dual GPU

/etc/modules/

vfio

vfio_iommu_type1

vfio_pci

vfio_virqfd



echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf

echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf

echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf

echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf

update-initramfs -u


Reboot

pass through hard drives


Find hard drive ID by using one of these methods here:

Passthrough Physical Disk to Virtual Machine (VM)

I followed a guide that used scsi which didn’t work. Virtio was the key here

qm set 100 -virtio2 /dev/disk/by-id/ata-Hitachi_HDS722020ALA330_JK1121YAG4NEGS

Another key hiccup I had to sold was when I added the 2nd GPU My network card ID changed

Here’s what fixed it:

Adding the second GPU changed the network adapter number



ip addr (command)

showed new NAT was enp5s0

nano /etc/network/interfaces

To change both enp3s0 to enp5s0
 
  • Like
Reactions: chuck7k

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!