Screamfox

New Member
Mar 19, 2019
5
0
1
32
Hello everyone,

Today i'm co-fronting a issue, i have followed the tutorial like step by step but i can use my Nvidia Geforce on the VM with x-vga i don't know why

my configs,

vm103.conf
Code:
agent: 1
bios: seabios
boot: cdn
bootdisk: virtio0
cores: 10
cpu: host
hostpci0: 02:00.0,x-vga=1,pcie=1
ide2: local:iso/ubuntu-18.04.2-live-server-amd64.iso,media=cdrom,size=834M
localtime: 1
machine: q35
memory: 65536
name: vm02
net0: virtio=3A:D7:CD:8B:CC:DE,bridge=vmbr0
numa: 0
onboot: 1
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=94e6fafb-72de-42b3-823a-4cd853f883fa
sockets: 2
vga: std
virtio0: local:103/vm-103-disk-0.vmdk,cache=writethrough,size=750G
vmgenid: 99041c17-21aa-4b63-be38-fb6cc89ccbc0

dmesg | grep ecap to be sure than remaping is supported/or not supported
Code:
root@dedi01:~# dmesg | grep ecap[    0.000000] DMAR: dmar0: reg_base_addr fbffc000 ver 1:0 cap 8d2078c106f0466 ecap f020de
[    0.000000] DMAR: dmar1: reg_base_addr c7ffc000 ver 1:0 cap 8d2078c106f0466 ecap f020de
[   98.903050] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[ 7989.067359] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[ 8046.047689] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[ 9694.411987] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[ 9833.356933] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[ 9858.317117] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[10221.619562] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[10535.808950] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[10573.725126] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900
[10764.806080] vfio_ecap_init: 0000:02:00.0 hiding ecap 0x19@0x900

my /iommu_unsafe_interrupts.conf
Code:
options vfio_iommu_type1 allow_unsafe_interrupts=1

my nvidia id,
Code:
02:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 640] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)

so now i get my hex id, lspci -n -s 02:00
Code:
02:00.0 0300: 10de:0fc1 (rev a1)
02:00.1 0403: 10de:0e1b (rev a1)

Code:
options vfio-pci ids=10de:0fc1,10de:0e1b

so at the end when i try to power up/start my VM i get this output error;

Code:
kvm: -device vfio-pci,host=02:00.0,id=hostpci0,bus=ich9-pcie-port-1,addr=0x0,rombar=0,x-vga=on: vfio error: 0000:02:00.0: failed getting region info for VGA region index 8: Invalid argument
device does not support requested feature x-vga
 

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!