args: Support

NetRock

Renowned Member
Apr 23, 2015
78
1
71
Hi Everyone.... ;)
Could someone please help:
How to pass '-agrs:' as an option with 'pvesh'. I have already automated creating vms (KVM) without any issues using pvesh and now, i am not able to pass args as an option to the working script.
I get an error: 'unknown option: args:'

the option I am trying to pass with 'pvesh' is:
- args: -device intel-had,id=sound5,bus=pci.0,addr=0x18 –device hda-micro,id=sound5-codec0,bus=sound5.0,cad=0 –device had-duplex,id=sound5-codec1,bus=sound5.0,cad=1

Thank you so much for your time to help.... highly appreciated!
 
Hi
you have to quote the parameter string.
Code:
pvesh set /nodes/ella/qemu/102/config --args '-device intel-had,id=sound5,bus=pci.0,addr=0x18 –device hda-micro,id=sound5-codec0,bus=sound5.0,cad=0 –device had-duplex,id=sound5-codec1,bus=sound5.0,cad=1'
 
  • Like
Reactions: NetRock