Red Hat Bugzilla – Bug 1276485
qemu: VM name can't contain '='
Last modified: 2016-05-16 10:35:29 EDT
Description of problem:
(I did this through virt-maanger)
If you create a VM with the name 'debug-threads=on' it ends up running qemu with
which doesn't set the name, it just turns an option on.
ends up with qemu failing to start complaining that --pool is unknown
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use virt-manager to create a vm
2. Give it a name like --pool=foo
qemu doesn't start
Either something rejects the name or it gets passed as -name guest=--pool=foo
Note that -name foo is equivalent to -name guest=foo
I added debug-threads= about a year or so ago, and rewrote -name to use QemuOpts, but it's been able to take: -name foo,process=bob for a while before that.
Oops, forgot to mention bz 1140121 is a request to get libvirt to have an easy way to turn debug-threads on, I just didn't mean this easy :-)
Patches sent upstream:
Author: Cole Robinson <email@example.com>
Date: Fri Apr 22 18:39:09 2016 -0400
qemu: command: Use -name guest= if available
-name guest= is the explicit parameter for passing a VM name. Using
it is required to allow a VM with an '=' in the name