Red Hat Bugzilla – Bug 1252923
qemucmdline: Avoid duplication of qemu-kvm flags
Last modified: 2017-08-21 04:30:09 EDT
Description of problem:
After configuring qemucmdline hook and setup additional options to spice it adds to qemu-kvm two spice flags. Please start the virtual machine with only one -spice option having all parameters.
VDSM must avoid the duplication for starting correctly the virtual machine.
1. Install qemucmdline hook in the host
2. In the Engine
# engine-config -s "UserDefinedVMProperties=qemu_cmdline=^.*$"
# service ovirt-engine restart
Now go to oVirt Engine Admin Portal
-> Virtual Machines
-> Stop the virtual machine
-> Click in the VM and Edit
-> Custom Properties
Add the key qemu_cmdline and type in the box your additional param to qemu:
-> Start the virtual machine
3. In the host.
ps auxww | grep qemu-kvm and will see two -spice options.
Probably it happens not only with spice but with the others options.
note this is currently not possible.
There are libvirt hooks which also can't modify qemu command line, unfortunately
The only way seem to be to wrap /usr/libexec/qemu-kvm-rhev and alter arguments there
The only current use case I'm aware of is to supply allowed ciphers list. Feature bug 1029226 should solve it at system level
need to rely on hook and custom wrapper (https://github.com/dougsland/misc-ovirt/tree/master/ovirt-qemu-kvm-wrapper) for the timebeing