Hi
I'm new to Proxmox. I have everything prepared to passthrough my AMD GPU to a VM. After a Proxmox reboot I can successfully start the VM and get video output from the VM. However this does not survive VM reboots and/or VM start/stop cycles. Hence I tried to install gnif's vendor-reset.
Unfortunately I can not manage to get vendor-reset to run properly. I always get the following error:
What am I missing, or doing wrong? Any help is highly appreciated. Thank you!
Bellow my current config:
I'm new to Proxmox. I have everything prepared to passthrough my AMD GPU to a VM. After a Proxmox reboot I can successfully start the VM and get video output from the VM. However this does not survive VM reboots and/or VM start/stop cycles. Hence I tried to install gnif's vendor-reset.
Unfortunately I can not manage to get vendor-reset to run properly. I always get the following error:
Code:
root@gateway:~# systemctl status vreset.service
× vreset.service - AMD GPU reset method to 'device_specific'
Loaded: loaded (/etc/systemd/system/vreset.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2025-09-14 21:25:33 CEST; 10h ago
Duration: 28ms
Invocation: 7bdb5094ad924146b4e7e76aa62a360d
Process: 2571 ExecStart=/usr/bin/bash -c echo device_specific > /sys/bus/pci/devices/0000:c5:00.0/reset_method (code=exited, status=1/FAILURE)
Main PID: 2571 (code=exited, status=1/FAILURE)
Mem peak: 1.7M
CPU: 5ms
Sep 14 21:25:33 gateway systemd[1]: Started vreset.service - AMD GPU reset method to 'device_specific'.
Sep 14 21:25:33 gateway bash[2571]: /usr/bin/bash: line 1: echo: write error: Invalid argument
Sep 14 21:25:33 gateway systemd[1]: vreset.service: Main process exited, code=exited, status=1/FAILURE
Sep 14 21:25:33 gateway systemd[1]: vreset.service: Failed with result 'exit-code'.
root@gateway:~#
What am I missing, or doing wrong? Any help is highly appreciated. Thank you!
Bellow my current config:
Code:
root@gateway:~# cat /etc/modprobe.d/vfio.conf
options vfio-pci ids=1002:150e,1002:1640
root@gateway:~# cat /etc/modules
# /etc/modules is obsolete and has been replaced by /etc/modules-load.d/.
# Please see modules-load.d(5) and modprobe.d(5) for details.
#
# Updating this file still works, but it is undocumented and unsupported.
vendor-reset
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
softdep radeon pre: vfio-pci
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci
root@gateway:~# uname -r
6.14.11-2-pve
root@gateway:~# grep -E 'CONFIG_FTRACE|CONFIG_KPROBES|CONFIG_PCI_QUIRKS|CONFIG_KALLSYMS|CONFIG_KALLSYMS_ALL|CONFIG_FUNCTION_TRACER' /boot/config-$(uname -r)
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set
CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y
CONFIG_KPROBES=y
CONFIG_KPROBES_ON_FTRACE=y
CONFIG_PCI_QUIRKS=y
CONFIG_FTRACE=y
CONFIG_FUNCTION_TRACER=y
CONFIG_FTRACE_SYSCALLS=y
CONFIG_FTRACE_MCOUNT_RECORD=y
CONFIG_FTRACE_MCOUNT_USE_CC=y
# CONFIG_FTRACE_RECORD_RECURSION is not set
# CONFIG_FTRACE_VALIDATE_RCU_IS_WATCHING is not set
# CONFIG_FTRACE_STARTUP_TEST is not set
# CONFIG_FTRACE_SORT_STARTUP_TEST is not set
root@gateway:~# cat /etc/default/grub
# If you change this file or any /etc/default/grub.d/*.cfg file,
# run 'update-grub' afterwards to update /boot/grub/grub.cfg.
# For full documentation of the options in these files, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`( . /etc/os-release && echo ${NAME} )`
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt"
GRUB_CMDLINE_LINUX=""
# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE/GOP/UGA
# you can see them in real GRUB with the command `videoinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
root@gateway:~# cat /etc/modprobe.d/blacklist.conf
blacklist amdgpu
blacklist radeon
root@gateway:~# cat /etc/pve/qemu-server/100.conf
agent: 1
balloon: 8192
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 4
cpu: host
efidisk0: local-lvm:vm-100-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:c5:00.0,pcie=1,romfile=vbios_hx370_ubu.bin,x-vga=1
hostpci1: 0000:c5:00.1,pcie=1,romfile=AMDGopDriver.rom
ide2: none,media=cdrom
machine: q35
memory: 16384
meta: creation-qemu=10.0.2,ctime=1757711069
name: test-igpu
net0: virtio=BC:24:11:00:85:5D,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-100-disk-1,iothread=1,size=32G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=cf2e806a-26b0-4510-bde3-64904dbeae24
sockets: 1
usb0: host=3-1
usb1: host=3-2
usb2: host=3-4
usb3: host=7-1
vga: none
vmgenid: e11c3cba-1b52-463f-b46c-80d93c625020
root@gateway:~#