Red Hat Bugzilla – Bug 913244
Create valid command line for QEMU with only SPICE TLS autoport specified
Last modified: 2013-11-21 03:46:46 EST
Description of problem: When autoport and port aren't specified, but tlsPort is set to '-1', the tls-port parameter specified in QEMU command-line is set to '1' instead of valid port. Version-Release number of selected component (if applicable): libvirt-0.10.2 How reproducible: 100% Steps to Reproduce: 1. create a domain with: <graphics type='spice' tlsPort='-1' autoport='no' listen='0' keymap='en-us'> 2. try to start the domain Actual results: Guest will not start Expected results: Guest should start
I can reproduce this with build: libvirt-0.10.2-18.el6.x86_64 step: 1.config tls env. 2.edit guest xml: .... <graphics type='spice' tlsPort='-1' autoport='no' listen='0' keymap='en-us'> <listen type='address' address='0'/> </graphics> .... 3.start guest > virsh start $guest error: Failed to start domain win2012 error: internal error Process exited while reading console log output: char device redirected to /dev/pts/2 ((null):4157): Spice-Warning **: reds.c:3173:reds_init_socket: reds_init_socket: binding socket to 0:1 failed failed to initialize spice server
verify with build: libvirt-0.10.2-19.el6.x86_64 step: 1.config tls env. 2.edit guest xml: .... <graphics type='spice' tlsPort='-1' autoport='no' listen='0' keymap='en-us'> <listen type='address' address='0'/> </graphics> .... 3.start guest,check qemu cmd: ..... -spice port=0,tls-port=5901,addr=0.0.0.0,disable-ticketing,x509-dir=/etc/pki/libvirt-spice,seamless-migration=on ..... verification passed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1581.html