I'm running a PVE host on consumer grade hardware and can't get VFIO VGA passthrough to work right.
CPU: Core i7-950
Mobo: Asus P6X58D-Premium
RAM: 10GB non ECC
GPU: Nvidia Quadro FX 1800
Here is the Guest OS hardware
Here's the error I get when trying to start the VM
Any idea what I'm doing wrong?
CPU: Core i7-950
Mobo: Asus P6X58D-Premium
RAM: 10GB non ECC
GPU: Nvidia Quadro FX 1800
Here is the Guest OS hardware
Code:
cat /etc/pve/nodes/VMnode0/qemu-server/100.confballoon: 64
bootdisk: virtio0
cores: 2
cpu: host
memory: 3072
name: devmachine
net0: virtio=AA:1E:18:73:AB:80,bridge=vmbr0
ostype: l26
sockets: 1
virtio0: lvm0:vm-100-disk-1,size=60G
machine: q35
hostpci0: 02:00.0,pcie=1,driver=vfio
Here's the error I get when trying to start the VM
Code:
[COLOR=#000000][FONT=tahoma]kvm: -device vfio-pci,host=04:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0: vfio: failed to set iommu for container: Operation not permitted[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]kvm: -device vfio-pci,host=04:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0: vfio: failed to setup container for group 16[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]kvm: -device vfio-pci,host=04:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0: vfio: failed to get group 16[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]kvm: -device vfio-pci,host=04:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0: Device initialization failed.[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]kvm: -device vfio-pci,host=04:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0: Device 'vfio-pci' could not be initialized[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -name devmachine -smp 'sockets=1,cores=2' -nodefaults -boot 'menu=on' -vga cirrus -cpu host,+x2apic -k en-us -m 3072 -readconfig /usr/share/qemu-server/pve-q35.cfg -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'vfio-pci,host=04:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:804b6a81ca7e' -drive 'file=/dev/lvm0/vm-100-disk-1,if=none,id=drive-virtio0,aio=native,cache=none' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=AA:1E:18:73:AB:80,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -machine 'type=q35'' failed: exit code 1[/FONT][/COLOR]
Any idea what I'm doing wrong?