Description of problem:
The libvirt qemu driver allows you to create domain names which
contain a ',' (comma) character.
However qemu will not allow these domains to start up. The
reason is that the qemu -name parameter must not contain a
comma, since that might be used to delimit other suboptions
The error message you get is:
error: Failed to start domain ,
error: internal error process exited while connecting to monitor: Unknown suba
rgument to -name
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a qemu or KVM domain where the name contains a comma.
Rather, libvirt should be fixed to borrow ideas from this commit, and use those ideas to properly escape commas in domain names:
Author: Eric Blake <firstname.lastname@example.org>
Date: Fri Mar 9 16:13:30 2012 -0300
qemu: support disk filenames with comma
If there is a disk file with a comma in the name, QEmu expects a double
comma instead of a single one (e.g., the file "virtual,disk.img" needs
to be specified as "virtual,,disk.img" in QEmu's command line). This
patch fixes libvirt to work with that feature. Fix RHBZ #801036.
Based on an initial patch by Crístian Viana.
Patches sent upstream:
Upstream now, last patch was:
Author: Cole Robinson <email@example.com>
Date: Fri Apr 22 18:27:44 2016 -0400
qemu: command: escape commas in chardev socket path
After this, a default virt-manager VM will startup with a comma
in the VM name: