Modify CPU Parameters

brando56894

New Member
Dec 7, 2017
18
1
1
38
I'm dealing with the dreaded "error 43" while passing through my GTX 1070, I've seen multiple places that the fix for this is adding hv_vendor_id=whatever

I found a post on here that said the command qm set 103 --args "-cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_vendor_id=Nvidia43FIX'" (That's my custom CPU string, not a copy and paste ;) ) will modify the CPU settings, but it actually adds another CPU for me it seems.

103.conf
Code:
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_vendor_id=Nvidia43FIX'
balloon: 8192
bios: ovmf
bootdisk: virtio0
cores: 4
cpu: host
efidisk0: VM_Storage:vm-103-disk-1,size=128K
hostpci0: 03:00,x-vga=on
ide0: iso:iso/virtio-win-0.1.141.iso,media=cdrom,size=309208K
ide2: iso:iso/Windows10.iso,media=cdrom
memory: 16384
name: HTPC-Windows
net0: virtio=0E:96:B2:5B:70:51,bridge=vmbr0,queues=4
numa: 1
ostype: win10
scsihw: virtio-scsi-single
smbios1: uuid=fc3389f5-4592-4a47-965b-f7ad1bbef899
sockets: 1
usb0: host=046d:c22b
usb1: host=046d:c22a
usb2: host=046d:c52b
usb3: host=1b1c:0c0a
virtio0: VM_Storage:vm-103-disk-2,iothread=1,size=64G

[root@proxmox qemu-server] #> qm showcmd 103|grep --color -e "-cpu '\S*'"
/usr/bin/kvm -id 103 -chardev 'socket,id=qmp,path=/var/run/qemu-server/103.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/103.pid -daemonize -smbios 'type=1,uuid=fc3389f5-4592-4a47-965b-f7ad1bbef899' -drive 'if=pflash,unit=0,format=raw,readonly,file=/usr/share/kvm/OVMF_CODE-pure-efi.fd' -drive 'if=pflash,unit=1,id=drive-efidisk0,file=/dev/zvol/nvme/vms/vm-103-disk-1' -name HTPC-Windows -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 -no-hpet -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=proxmox,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,kvm=off' -m 16384 -object 'memory-backend-ram,id=ram-node0,size=16384M' -numa 'node,nodeid=0,cpus=0-3,memdev=ram-node0' -k en-us -object 'iothread,id=iothread-virtio0' -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_vendor_id=Nvidia43FIX' -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' -device 'pci-bridge,id=pci.3,chassis_nr=3,bus=pci.0,addr=0x5' -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -readconfig /usr/share/qemu-server/pve-usb.cfg -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'vfio-pci,host=03:00.0,id=hostpci0.0,bus=pci.0,addr=0x10.0,multifunction=on' -device 'vfio-pci,host=03:00.1,id=hostpci0.1,bus=pci.0,addr=0x10.1' -device 'usb-host,vendorid=0x046d,productid=0xc22b,id=usb0' -device 'usb-host,vendorid=0x046d,productid=0xc22a,id=usb1' -device 'usb-host,vendorid=0x046d,productid=0xc52b,id=usb2' -device 'usb-host,vendorid=0x1b1c,productid=0x0c0a,id=usb3' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:359df93fc897' -drive 'file=/mnt/storage/stuff/iso/template/iso/virtio-win-0.1.141.iso,if=none,id=drive-ide0,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=200' -drive 'file=/mnt/storage/stuff/iso/template/iso/Windows10.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=201' -drive 'file=/dev/zvol/nvme/vms/vm-103-disk-2,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,iothread=iothread-virtio0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap103i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on,queues=4' -device 'virtio-net-pci,mac=0E:96:B2:5B:70:51,netdev=net0,bus=pci.0,addr=0x12,id=net0,vectors=10,mq=on,bootindex=300' -rtc 'driftfix=slew,base=localtime' -global 'kvm-pit.lost_tick_policy=discard'

How can I set it so that it doesn't add an additional CPU?
 
hi, two things

1. multiple '-cpu' paramter do not stack, but the later one overwrites the first, so it will ignore ours and use yours
2. it seems that our parameter already includes the hv_vendor_id=proxmox bit, so if you get the error 43 with this, i guess you will also get it with Nvidia43FIX (if not, please report so)
 
hey. you problably getting it because you perhaps have only one GPU and Proxmox is still using it?

try to add this argument "video=efifb:eek:ff" in your /etc/default/grub file and then do an update-grub
eg:

GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction video=efifb:eek:ff"


Hope that works for you or for anyone else
 

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!