Append/postfix args? How to issue command line argument to QEMU AFTER devices have been specified?

Pegasus

Renowned Member
Aug 29, 2013
64
1
73
Las Vegas, USA
Hello everyone.

I have a situation in one of my VMs that requires disabling MSI-X in order to use the Virtio network device. I only need to add the flag -set device.eth0.vectors=0 to Args but it must come after the flags that define the network devices (net0 in my case) otherwise I just get the error that net0 doesn't exist. Apparently the Args: parameter goes before everything else in the VM's .conf file.

Is there any way to do this?
 
Please file a feature request at https://bugzilla.proxmox.com/
Although I'm not sure whether it's better to add an additional option or just move args to the end, considering conflicting args will break either way and I currently can't remember any good use case for which `args` need to come first.
 
Unless/until later we can append the args directly to the net0 line, try:

Record your existing net0 MAC address if you wish to duplicate the interface; else prepare a new MAC;
Remove the net0 device from the VM's hardware config;
and the following args line to your VM's config file with the corrected MAC address:

Code:
args: -device virtio-net-pci,netdev=net0,mac=FF:FF:FF:FF:FF:FF,vectors=0