[SOLVED] Nvidia gpu 43 error with x-vga and cpu -hypervisor flag

gerhardt

New Member
Mar 29, 2020
7
0
1
32
I installed a win10 guest and passed throught a nvidia gpu to it. Everything works fine with the following configuration:
Code:
bios: ovmf
boot: d
cores: 12
cpu: host
hostpci0: 0a:00,pcie=1
hostpci1: 01:00,pcie=1,x-vga=1
hostpci2: 05:00,pcie=1
machine: q35
memory: 49152
name: Win10
net0: e1000=E2:D2:23:F8:9F:4E,bridge=vmbr2
numa: 0
onboot: 1
ostype: win10
scsi1: /dev/disk/by-id/usb-EAGET_G70_HDD_000000004974-0:0,size=976762584K
scsihw: virtio-scsi-pci
smbios1: uuid=b1b0d04a-ddb2-4f6b-a9f4-9c878479e23b
sockets: 1
usb0: host=1-3,usb3=1
usb1: host=1-4,usb3=1
usb2: host=1-7,usb3=1
usb3: host=1-14,usb3=1
vmgenid: 45c3067b-f47b-41a1-9cb0-79a626e44c66

I enable the nested virtualization and edit the vm config file to remove the hypervisor flag from cpu with args:
Code:
args: -cpu host,-hypervisor

then when I start the vm, the nvidia gpu stops working with 43 error. Does the x-vga conflict with the cpu args? Why it stops working when I just added a flag to cpu with the x-vga remains on?

Can anyone please help out making the gpu working with the hypervisor flag removed from cpu?

Thanks in advance.
 
Last edited:
Your "-cpu" argument overrides everything PVE does to make sure your VM is working with passthrough. If you want to do this, try as follows:
  1. Run qm showcmd <vmid> --pretty with the working configuration
  2. Copy the "-cpu blabla" argument that the command above gives
  3. Use that argument with ",-hypervisor" appended in your "args" line instead of just "-cpu host,-hypervisor"
 
Your "-cpu" argument overrides everything PVE does to make sure your VM is working with passthrough. If you want to do this, try as follows:
  1. Run qm showcmd <vmid> --pretty with the working configuration
  2. Copy the "-cpu blabla" argument that the command above gives
  3. Use that argument with ",-hypervisor" appended in your "args" line instead of just "-cpu host,-hypervisor"
It works! Thank you for your help.
 

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!