args: Parameter modification for VM

Aksine

Member
Jun 13, 2021
4
0
6
28
Hello Proxmox forum,

I have some questions regarding the args: parameter

For example for one of my VMs that i want to modify

here's what proxmox generates ,the raw qemu command ,removed unnecessary lines to highlight what i want to remove specifically

Code:
qm showcmd 120 --pretty
/usr/bin/kvm \
  -id 120 \
....
  -m 2048 \
  -object 'iothread,id=iothread-virtio0' \
  -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' \
  -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' \
....



Do you know how i can delete/remove/modify this particular line -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' \with an args: override or something else ?

The only way i currently can do this is modifying the perl script as shown here:https://forum.proxmox.com/threads/igd-passthrough-and-hard-coded-pci-bridges.68285/

Thank you
Regards,Aksine
 
Last edited:
Hi,
The only way i currently can do this is modifying the perl script as shown here:https://forum.proxmox.com/threads/igd-passthrough-and-hard-coded-pci-bridges.68285/
the bug that was filed in that thread was already fixed: https://bugzilla.proxmox.com/show_bug.cgi?id=2794
So the question is why that doesn't work for you. Did you try using the legacy-igd option? Please share the VM configuration qm config 120, the full error message and the output of pveversion -v.
 
Hi,

the bug that was filed in that thread was already fixed: https://bugzilla.proxmox.com/show_bug.cgi?id=2794
So the question is why that doesn't work for you. Did you try using the legacy-igd option? Please share the VM configuration qm config 120, the full error message and the output of pveversion -v.
Oh i was not aware of the legacy-igd option ,i'll give that a try to see how the configuration changes .

I actually dont have any error messages ,its just that the OVMF splash does not display ,if i dont modify the perlscript to remove the pci bridge at that location. I'll give legacy-igd option a try

just for information

qm config 120
Code:
agent: 0
args: -drive 'if=pflash,unit=0,format=raw,readonly,file=/root/bios/OVMFintelGOP/OVMF_CODE.fd' -drive 'if=pflash,unit=1,format=raw,id=drive-efidisk0,file=/root/bios/OVMFintelGOP/OVMF_VARS.fd' -device vfio-pci,host=00:02.0,id=hostdev0,bus=pci.0,addr=0x2,x-vga=on,x-igd-opregion=on,x-igd-gms=1,romfile=vbios_gvt_uefi.rom -machine dump-guest-core=on   -smp '4,sockets=1,cores=2,threads=2,maxcpus=4' -cpu host,hv-time=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,hv-vpindex=on,hv-runtime=on,hv-synic=on,hv-stimer=on,hv-stimer-direct=on,hv-reset=on,hv-frequencies=on,hv-reenlightenment=on,hv-tlbflush=on,hv-ipi=on,host-cache-info=on,l3-cache=off
balloon: 0
bios: seabios
boot: order=virtio0;ide2
cores: 4
cpu: host
description: idleVm=no%0AvmCpus=2,3%0AmiscCpus=0,1%0AcpuGovernor=powersave%0Ahookscript%3A isostore%3Asnippets/pinning-hook-genric.sh
hostpci0: 0000:00:14.0
hostpci1: 0000:00:1f.3
ide2: none,media=cdrom
localtime: 0
machine: pc-i440fx-7.2
memory: 2048
meta: creation-qemu=7.2.0,ctime=1689492646
name: hp1-vfio
net0: virtio=36:26:74:C2:9A:72,bridge=vmbr0
numa: 0
ostype: win11
scsihw: virtio-scsi-single
smbios1: uuid=48f9ef79-51f9-4fc2-866d-95570ea11380
sockets: 1
tablet: 0
vga: none
virtio0: local-lvm:vm-120-disk-0,cache=unsafe,iothread=1,size=35G
vmgenid: d85f8333-5e6d-4b6e-866f-272b99a3bd77

pveversion -v


Code:
proxmox-ve: 7.4-1 (running kernel: 5.15.116-1-pve)
pve-manager: 7.4-16 (running version: 7.4-16/0f39f621)
pve-kernel-5.15: 7.4-6
pve-kernel-5.15.116-1-pve: 5.15.116-1
pve-kernel-5.15.108-1-pve: 5.15.108-2
pve-kernel-5.15.102-1-pve: 5.15.102-1
ceph: 17.2.6-pve1
ceph-fuse: 17.2.6-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx4
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4.1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.4-2
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.7
libpve-storage-perl: 7.4-3
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.4.3-1
proxmox-backup-file-restore: 2.4.3-1
proxmox-kernel-helper: 7.4-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.7.3
pve-cluster: 7.3-3
pve-container: 4.4-6
pve-docs: 7.4-2
pve-edk2-firmware: 3.20230228-4~bpo11+1
pve-firewall: 4.3-5
pve-firmware: 3.6-5
pve-ha-manager: 3.6.1
pve-i18n: 2.12-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-2
qemu-server: 7.4-4
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
zfsutils-linux: 2.1.11-pv
 
Alright , legacy-igd=1 does remove the pci-bridge ,however ,is there any way to pass these arguments x-igd-opregion=on,x-igd-gms=1 through proxmox ?
 

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!