[SOLVED] GPU Passthrough VMs Starten nicht mehr

Justin2266

Member
Dec 27, 2020
49
4
8
22
Ich habe diese Anleitung befolgt um GPU Passthrough mit einer GTX 760 zu machen. Diese hat dann ein Code 43 Error in Windows gezeigt. Nun habe ich es mit einer 1050 TI Probiert und diese hat ein Timeout. Was mache ich Falsch?


qm start 4096
start failed: command '/usr/bin/kvm -id 4096 -name tuto-vm -no-shutdown -chardev 'socket,id=qmp,path=/var/run/qemu-server/4096.qmp,server=on,wait=off' -mon 'chardev=qmp,mode=control' -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' -mon 'chardev=qmp-event,mode=control' -pidfile /var/run/qemu-server/4096.pid -daemonize -smbios 'type=1,uuid=57eb3dc7-49b4-431d-bf4c-cb7d06333d09' -drive 'if=pflash,unit=0,format=raw,readonly=on,file=/usr/share/pve-edk2-firmware//OVMF_CODE_4M.secboot.fd' -drive 'if=pflash,unit=1,format=qcow2,id=drive-efidisk0,file=/rpool/data/images/4096/vm-4096-disk-1.qcow2' -smp '4,sockets=1,cores=4,maxcpus=4' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga none -nographic -cpu 'kvm64,enforce,kvm=off,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep' -m 6144 -object 'memory-backend-ram,id=ram-node0,size=6144M' -numa 'node,nodeid=0,cpus=0-3,memdev=ram-node0' -readconfig /usr/share/qemu-server/pve-q35-4.0.cfg -device 'vmgenid,guid=ed8f0a12-e6f2-47b9-9ae9-f5362e052cc4' -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'vfio-pci,host=0000:0a:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on' -device 'vfio-pci,host=0000:0a:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1' -chardev 'socket,id=tpmchar,path=/var/run/qemu-server/4096.swtpm' -tpmdev 'emulator,id=tpmdev,chardev=tpmchar' -device 'tpm-tis,tpmdev=tpmdev' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:3d81458c485e' -drive 'file=/rpool/data/images/4096/vm-4096-disk-0.qcow2,if=none,id=drive-virtio0,cache=writeback,format=qcow2,aio=io_uring,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -device 'ahci,id=ahci0,multifunction=on,bus=pci.0,addr=0x7' -drive 'file=/rpool/data/template/iso/virtio-win-0.1.208.iso,if=none,id=drive-sata1,media=cdrom,aio=io_uring' -device 'ide-cd,bus=ahci0.1,drive=drive-sata1,id=sata1' -netdev 'type=tap,id=net0,ifname=tap4096i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=C2:55:89:BA:6E:86,netdev=net0,bus=pci.0,addr=0x12,id=net0' -machine 'type=q35+pve0'' failed: got timeout



cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT=

GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset textonly video=astdrmfb video=vesafb:off video=efifb:off"


cat /etc/modules

# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. vfio vfio_iommu_type1 vfio_pci vfio_virqfd


cat /etc/modprobe.d/iommu_unsafe_interrupts.conf
options vfio_iommu_type1 allow_unsafe_interrupts=1

cat /etc/modprobe.d/kvm.conf
options kvm ignore_msrs=1

cat /etc/modprobe.d/blacklist.conf
blacklist radeon blacklist nouveau blacklist nvidia


cat /etc/modprobe.d/vfio.conf
options vfio-pci ids=10de:1c82,10de:0fb9 disable_vga=1

cat /etc/pve/qemu-server/4096.conf
bios: ovmf boot: order=virtio0 cores: 4 efidisk0: speed-pool:4096/vm-4096-disk-1.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K hostpci0: 0000:0a:00,pcie=1,x-vga=1 machine: q35 memory: 6144 meta: creation-qemu=6.1.0,ctime=1642243645 name: tuto-vm net0: virtio=C2:55:89:BA:6E:86,bridge=vmbr0,firewall=1 numa: 1 ostype: l26 sata1: speed-pool:iso/virtio-win-0.1.208.iso,media=cdrom,size=543390K scsihw: virtio-scsi-pci smbios1: uuid=57eb3dc7-49b4-431d-bf4c-cb7d06333d09 sockets: 1 tpmstate0: speed-pool:4096/vm-4096-disk-2.raw,size=4M,version=v2.0 vga: none virtio0: speed-pool:4096/vm-4096-disk-0.qcow2,cache=writeback,size=128G vmgenid: ed8f0a12-e6f2-47b9-9ae9-f5362e052cc4
 
Sadly I have no clue, I needed to shutdown and restart the hole server then it worked. But I still have code 43 because of Nvidias drivers I think. My AMD RX 570 4GB worked flawlessly. As well my RX 6800 XT worked flawlessly without any configuration modifications like args -maschine or -cpu.
 

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!