Skip to content

Instantly share code, notes, and snippets.

@oetiker
Created April 9, 2026 15:37
Show Gist options
  • Select an option

  • Save oetiker/e0cfa30181e3d5609f8a756c44a05231 to your computer and use it in GitHub Desktop.

Select an option

Save oetiker/e0cfa30181e3d5609f8a756c44a05231 to your computer and use it in GitHub Desktop.
AMD Ryzen AI MAX+ PRO 395 / Radeon 8060S (Strix Halo) GPU Passthrough on Proxmox 9

Radeon 8060S (Strix Halo) GPU Passthrough on Proxmox 9

Guide for passing through the integrated Radeon 8060S GPU from an AMD Ryzen AI MAX+ PRO 395 to a Linux VM on Proxmox 9.x.

Hardware & IOMMU Layout

IOMMU Group PCI Address Device ID Pass through
15 c3:00.0 GPU (Radeon 8060S) 1002:1586 Yes -- required
16 c3:00.1 HDMI/DP Audio 1002:1640 Yes -- needed for display audio
17 c3:00.2 CCP/ASP (crypto) 1022:17e0 Yes -- required for PSP firmware
18 c3:00.4 USB 3.1 controller 1022:1587 Optional -- for direct keyboard/mouse

Note: PCI addresses may differ on your system. Always verify with lspci -nn | grep -i amd.

Critical: The CCP/ASP device (c3:00.2) must be passed through. The GPU's Platform Security Processor (PSP) runs on this co-processor. Without it, the amdgpu driver fails with Failed to wait for trust OS ready for ring creation and the GPU never initializes. Passing this device through disables fTPM on the host.

Known Limitations

  • Dynamic VRAM is unstable -- set a fixed VRAM amount in BIOS and never change it at OS level.
  • Reset bug -- on Proxmox 9 with Linux guests this seems avoidable, but if the VM crashes hard, a full host reboot may be needed.
  • Guest kernel 6.15+ required -- older kernels will produce amdgpu driver errors.
  • After blacklisting the amdgpu and ccp drivers, the Proxmox host will have no local display output and no fTPM. Access is via the web UI or SSH only.

Prerequisites

  • Proxmox VE 9.x with kernel 6.17.2-pve or newer (uname -r to check, apt dist-upgrade to update)
  • A Linux guest ISO with kernel 6.15+ (Ubuntu 26.04, CachyOS, Fedora 42+)

Verified Working Configuration

Component Version
Proxmox VE 9.1.1
Host kernel 6.17.2-1-pve
QEMU 10.1.2 (pve-qemu-kvm)
Guest OS Ubuntu 26.04
Guest kernel 7.0.0-12-generic

Step 0: BIOS Configuration

Enter your system BIOS/UEFI and ensure the following are enabled:

  • IOMMU / AMD-Vi -- enabled
  • SVM (Secure Virtual Machine) -- enabled
  • Resizable BAR -- enabled
  • UEFI boot mode
  • Fixed VRAM allocation -- set to your desired amount (e.g. 16 GB, 32 GB, 64 GB)

Save and reboot.

Step 1: Extract VBIOS

This must be done before blacklisting the amdgpu driver.

The iGPU has no physical ROM chip, so the VBIOS must be extracted from the running system. The simplest method uses the amdgpu debug interface:

# Mount debugfs if not already mounted
mount -t debugfs none /sys/kernel/debug 2>/dev/null

# Find your GPU's debug path (adjust PCI address if needed)
cat /sys/kernel/debug/dri/0000:c3:00.0/amdgpu_vbios > /usr/share/kvm/vbios.bin

Verify the extraction:

hexdump -C /usr/share/kvm/vbios.bin | head -3
ls -la /usr/share/kvm/vbios.bin
  • The file must start with bytes 55 AA.
  • For the 8060S iGPU, ~17 KB is the expected size (the UEFI firmware handles most initialization).

Alternative: VFCT ACPI Table Method

If the above doesn't work, you can extract from the ACPI VFCT table using a small C program. Check if the table exists:

ls -la /sys/firmware/acpi/tables/VFCT

If present, create a file vbios.c:

#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>

typedef uint32_t ULONG;
typedef uint8_t UCHAR;
typedef uint16_t USHORT;

typedef struct {
    ULONG Signature;
    ULONG TableLength;
    UCHAR Revision;
    UCHAR Checksum;
    UCHAR OemId[6];
    UCHAR OemTableId[8];
    ULONG OemRevision;
    ULONG CreatorId;
    ULONG CreatorRevision;
} AMD_ACPI_DESCRIPTION_HEADER;

typedef struct {
    AMD_ACPI_DESCRIPTION_HEADER SHeader;
    UCHAR TableUUID[16];
    ULONG VBIOSImageOffset;
    ULONG Lib1ImageOffset;
    ULONG Reserved[4];
} UEFI_ACPI_VFCT;

typedef struct {
    ULONG PCIBus;
    ULONG PCIDevice;
    ULONG PCIFunction;
    USHORT VendorID;
    USHORT DeviceID;
    USHORT SSVID;
    USHORT SSID;
    ULONG Revision;
    ULONG ImageLength;
} VFCT_IMAGE_HEADER;

typedef struct {
    VFCT_IMAGE_HEADER VbiosHeader;
    UCHAR VbiosContent[1];
} GOP_VBIOS_CONTENT;

int main(int argc, char** argv) {
    FILE* fp_vfct;
    FILE* fp_vbios;
    UEFI_ACPI_VFCT* pvfct;
    char vbios_name[0x400];

    if (!(fp_vfct = fopen("/sys/firmware/acpi/tables/VFCT", "r"))) {
        perror(argv[0]);
        return -1;
    }
    if (!(pvfct = malloc(sizeof(UEFI_ACPI_VFCT)))) {
        perror(argv[0]);
        return -1;
    }
    if (sizeof(UEFI_ACPI_VFCT) != fread(pvfct, 1, sizeof(UEFI_ACPI_VFCT), fp_vfct)) {
        fprintf(stderr, "%s: failed to read VFCT header!\n", argv[0]);
        return -1;
    }

    ULONG offset = pvfct->VBIOSImageOffset;
    ULONG tbl_size = pvfct->SHeader.TableLength;

    if (!(pvfct = realloc(pvfct, tbl_size))) {
        perror(argv[0]);
        return -1;
    }
    if (tbl_size - sizeof(UEFI_ACPI_VFCT) !=
        fread(pvfct + 1, 1, tbl_size - sizeof(UEFI_ACPI_VFCT), fp_vfct)) {
        fprintf(stderr, "%s: failed to read VFCT body!\n", argv[0]);
        return -1;
    }
    fclose(fp_vfct);

    while (offset < tbl_size) {
        GOP_VBIOS_CONTENT* vbios = (GOP_VBIOS_CONTENT*)((char*)pvfct + offset);
        VFCT_IMAGE_HEADER* vhdr = &vbios->VbiosHeader;
        if (!vhdr->ImageLength) break;

        snprintf(vbios_name, sizeof(vbios_name), "vbios_%x_%x.bin",
                 vhdr->VendorID, vhdr->DeviceID);

        if (!(fp_vbios = fopen(vbios_name, "wb"))) {
            perror(argv[0]);
            return -1;
        }
        if (vhdr->ImageLength !=
            fwrite(&vbios->VbiosContent, 1, vhdr->ImageLength, fp_vbios)) {
            fprintf(stderr, "%s: failed to dump vbios %x:%x\n",
                    argv[0], vhdr->VendorID, vhdr->DeviceID);
            return -1;
        }
        fclose(fp_vbios);
        printf("dump vbios %x:%x to %s\n", vhdr->VendorID, vhdr->DeviceID, vbios_name);

        offset += sizeof(VFCT_IMAGE_HEADER);
        offset += vhdr->ImageLength;
    }
    return 0;
}

Compile and run:

gcc vbios.c -o vbios
./vbios
cp vbios_1002_1586.bin /usr/share/kvm/vbios.bin

Step 2: Configure Host for Passthrough

2a. Kernel Command Line

Edit /etc/kernel/cmdline and append to the existing line:

iommu=pt initcall_blacklist=sysfb_init

2b. Blacklist GPU and CCP Drivers

Create /etc/modprobe.d/pve-blacklist.conf:

blacklist radeon
blacklist amdgpu
blacklist snd_hda_intel
blacklist ccp

2c. Bind GPU, Audio, and CCP to VFIO

Create /etc/modprobe.d/vfio.conf:

options vfio-pci ids=1002:1586,1002:1640,1022:17e0 disable_vga=1

Note: All three device IDs are required: GPU (1002:1586), HDMI audio (1002:1640), and CCP/ASP (1022:17e0).

2d. Load VFIO Modules at Boot

Create /etc/modules-load.d/vfio.conf:

vfio
vfio_iommu_type1
vfio_pci

2e. Apply and Reboot

proxmox-boot-tool refresh
reboot

proxmox-boot-tool refresh automatically rebuilds the initramfs via its hook scripts -- no need to run update-initramfs separately.

2f. Verify

After reboot, confirm the GPU, audio, and CCP are bound to vfio-pci:

lspci -nnk -s c3:00

Expected output should show Kernel driver in use: vfio-pci for:

  • c3:00.0 (GPU)
  • c3:00.1 (HDMI/DP audio)
  • c3:00.2 (CCP/ASP)

Step 3: Create the VM (Initial Setup Without GPU)

Create a VM in the Proxmox web UI with:

  • Machine: q35
  • BIOS: OVMF (UEFI)
  • CPU: host
  • RAM: 64 GB (or as needed), ballooning disabled
  • Display: default (for initial installation via Proxmox console)
  • ISO: a Linux distro with kernel 6.15+ (Ubuntu 26.04 confirmed working)

Boot the VM and complete the OS installation through the Proxmox console. Update the guest system fully before proceeding.

Do not add GPU passthrough yet.

Step 4: Add GPU Passthrough

Shut down the VM. Edit /etc/pve/qemu-server/<VMID>.conf:

machine: q35,viommu=virtio
cpu: host
vga: none

# GPU passthrough
hostpci0: 0000:c3:00.0,pcie=1,romfile=vbios.bin,x-vga=1

# HDMI/DP audio
hostpci1: 0000:c3:00.1,pcie=1,rombar=0

# CCP/ASP — required for PSP firmware initialization
hostpci2: 0000:c3:00.2,pcie=1,rombar=0

# Optional: USB controller for direct keyboard/mouse
# hostpci3: 0000:c3:00.4,pcie=1,rombar=0

Key settings:

  • vga: none -- must be none, not std. An emulated VGA device conflicts with the passthrough GPU.
  • hostpci2 (CCP/ASP) -- without this, the PSP co-processor is inaccessible and the GPU will fail to initialize.
  • x-vga=1 -- marks the passthrough GPU as the primary display.

Important: Adjust PCI addresses to match your lspci output.

Step 5: Boot and Verify

Start the VM. The display should appear on your physical monitor.

You may see kvm: vfio: Cannot reset device 0000:c3:00.2, depends on group 18 which is not owned. on VM start -- this is a harmless warning about the USB controller (group 18) not being passed through.

Inside the guest, verify:

lspci | grep -i amd              # Should show the GPU
ls /dev/dri/                     # Should show card0 and renderD128
dmesg | grep amdgpu | tail -5    # Should show successful initialization
glxinfo | grep "OpenGL"          # Should show AMD/RADEON (if installed)
vulkaninfo | head -20            # Should show RDNA 3.5 (if installed)

Expected dmesg output on success:

[drm] Initialized amdgpu 3.64.0 for 0000:01:00.0 on minor 0
amdgpu 0000:01:00.0: [drm] fb0: amdgpudrmfb frame buffer device

For remote access after setup, consider installing Sunshine/Moonlight or using SSH.

Troubleshooting

PSP firmware loading failed / trust OS not ready

[drm:psp_v13_0_ring_create] *ERROR* Failed to wait for trust OS ready for ring creation
amdgpu: PSP firmware loading failed
amdgpu: hw_init of IP block <psp> failed -22

This means the CCP/ASP device (c3:00.2) is not passed through to the VM. The GPU's Platform Security Processor runs on the CCP and cannot initialize without it. Fix:

  1. Add 1022:17e0 to vfio-pci ids= in /etc/modprobe.d/vfio.conf
  2. Add blacklist ccp to /etc/modprobe.d/pve-blacklist.conf
  3. Add hostpci2: 0000:c3:00.2,pcie=1,rombar=0 to the VM config
  4. Run proxmox-boot-tool refresh and reboot the host

Black screen on VM start

  • Verify VBIOS starts with 55 AA: hexdump -C /usr/share/kvm/vbios.bin | head -1
  • Check that vga: is set to none, not std
  • Try the community VBIOS from the Strix Halo Wiki as a fallback
  • Check if the guest kernel is recent enough (6.15+)

amdgpu errors in guest dmesg

  • Update the guest kernel -- this is almost always a kernel version issue
  • If the VM crashes during driver init, temporarily set CPU type to x86-64-v4, boot, let drivers install, then switch back to host

VM won't start after a previous crash

  • This is the reset bug -- reboot the Proxmox host
  • On Proxmox 9 with Linux guests, graceful shutdown should avoid this

No audio over HDMI/DP

  • Ensure c3:00.1 (audio device) is passed through
  • Check aplay -l inside the guest

Slowdowns or crashes after changing VRAM

  • Dynamic VRAM allocation is unstable -- set a fixed amount in BIOS and leave it

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment