I created and started the VM with virt-manager.  Here is what looks like the qemu cmd from /var/log/libvirt/qemu/$VM.log<div><br></div><div><div>/usr/bin/qemu-kvm -S -M pc-0.15 -cpu core2duo,+lahf_lm,</div><div>+rdtscp,+popcnt,+sse4.2,+sse4.1,+pdcm,+xtpr,+cx16,+tm2,+est,+smx,+vmx,+ds_cpl,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds -enable</div>
<div>-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -name $VMNAME -uuid 9046e3aa-81d5-028d-010f-2a755e20aa97 -nodefconfi</div><div>g -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/$VMNAME.monitor,server,nowait -mon chardev=c</div>
<div>harmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -device virtio-serial-pci,id=virtio-serial0,bus=pci.</div><div>0,addr=0x5 -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x8 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0</div>
<div>,addr=0x9 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0xa -device ich9-usb-uhci3,masterbus=usb.0,f</div><div>irstport=4,bus=pci.0,addr=0xb -drive file=/vm/$VMNAME.img,if=none,id=drive-virtio-disk0,format=raw -device virtio-bl</div>
<div>k-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/iso/virtio-win-0.1-2</div><div>2.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1</div>
<div>-0,id=ide0-1-0 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=27 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:5</div><div>4:00:43:e6:dd,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev </div>
<div>spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,</div><div>name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice port=$PORT,tls-port=$SPORT,addr=127.0.0.1,x509-dir=/etc/pki/lib</div>
<div>virt-spice -k en-us -vga qxl -global qxl-vga.vram_size=67108864 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device h</div><div>da-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=ch</div>
<div>arredir0,id=redir0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7</div><div><br></div><div>Also in the log I see the following messages for everytime I try to connect using SSL:</div><div><br></div><div><div>
reds_handle_ssl_accept: SSL_accept failed, error=1</div><div>reds_handle_ssl_accept: SSL_accept failed, error=1</div></div><div><br></div><div>Here are the package versions I&#39;m running:</div><div><br></div><div><div>spice-xpi-2.7-2.fc16.x86_64</div>
<div>spice-gtk3-0.11-4.fc16.x86_64</div><div>spice-gtk-tools-0.11-4.fc16.x86_64</div><div>spice-client-0.10.1-1.fc16.x86_64</div><div>spice-server-0.10.1-1.fc16.x86_64</div><div>spice-gtk-python-0.11-4.fc16.x86_64</div><div>
spice-gtk-0.11-4.fc16.x86_64</div><div>spice-protocol-0.10.1-1.fc16.noarch</div><div>spice-glib-0.11-4.fc16.x86_64</div><div><div>libvirt-0.9.10-2.fc16.x86_64</div><div>libvirt-python-0.9.10-2.fc16.x86_64</div><div>libvirt-client-0.9.10-2.fc16.x86_64</div>
</div></div><div><div>qemu-system-x86-1.0-7.fc16.x86_64</div><div>gpxe-roms-qemu-1.0.1-4.fc16.noarch</div><div>qemu-common-1.0-7.fc16.x86_64</div><div>qemu-img-1.0-7.fc16.x86_64</div></div><div><div>virt-manager-common-0.9.1-2.fc16.noarch</div>
<div>virt-manager-0.9.1-2.fc16.noarch</div></div><div><br></div><div>The host is running Fedora 16 with the updates-testing virt-preview repos enabled.</div><div><br></div><br><div class="gmail_quote">On Fri, Mar 23, 2012 at 6:58 AM, David Jaša <span dir="ltr">&lt;<a href="mailto:djasa@redhat.com">djasa@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Anthony James píše v Pá 23. 03. 2012 v 06:46 -0400:<br>
<div class="im">&gt; David,<br>
&gt;<br>
&gt;<br>
&gt; I just tried about 20 times in a row, same error.  When you say it&#39;s a<br>
&gt; known bug in spicec when connecting manually, what is the alternative<br>
&gt; to connecting manually?  Is this bug present in spicy or<br>
&gt; remote-viewer?  Thanks in advance.<br>
<br>
</div>I don&#39;t recall hitting it with remote-viewer. FTR, remote-viewer&#39;s<br>
invocation format differs from that of spicec and spicy:<br>
<br>
remote-viewer &lt;options&gt; spice://&lt;host&gt;/?port=&lt;port&gt;&amp;tls-port=&lt;sport&gt;<br>
<br>
you can get the complete list of of options with:<br>
<br>
remote-viewer --help-all<br>
<br>
Speaking about it, it might be also the libvirt/qemu bug that both fired<br>
up with main channel forced to SSL/TLS but without setting up tls-port<br>
on which would qemu actually listen. Could you post qemu command line<br>
here so we can rule it out?<br>
<div class="HOEnZb"><div class="h5"><br>
David<br>
&gt;<br>
&gt; On Fri, Mar 23, 2012 at 6:37 AM, David Jaša &lt;<a href="mailto:djasa@redhat.com">djasa@redhat.com</a>&gt; wrote:<br>
&gt;         Anthony James píše v Pá 23. 03. 2012 v 06:26 -0400:<br>
&gt;         &gt; David,<br>
&gt;         &gt;<br>
&gt;         &gt; Thanks for the reply.  I&#39;ve tried adding --ca-file to the<br>
&gt;         spicec<br>
&gt;         &gt; command line but still receive the same error.  Here is the<br>
&gt;         command:<br>
&gt;         &gt;<br>
&gt;         &gt; spicec -h localhost -p $PORT -s $SPORT --secure-channels all<br>
&gt;         &gt; --host-subject &quot;$HOSTSUBJECT&quot; --ca-file ca-cert.pem -w<br>
&gt;         $PASSWD<br>
&gt;         &gt;<br>
&gt;         &gt; Same error:<br>
&gt;         &gt;<br>
&gt;         &gt; Error: failed to connect w/SSL, ssl_error<br>
&gt;         &gt; error:00000001:lib(0):func(0):reason(1)<br>
&gt;         &gt; 140613653984512:error:14090086:SSL<br>
&gt;         &gt; routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify<br>
&gt;         &gt; failed:s3_clnt.c:1063:<br>
&gt;         &gt; Warning: SSL Error:<br>
&gt;<br>
&gt;<br>
&gt;         Hi Anthony,<br>
&gt;<br>
&gt;         try several times. It&#39;s a known bug in spicec that when you&#39;re<br>
&gt;         connecting manually, the connection fails several times before<br>
&gt;         it is<br>
&gt;         established. Actually it&#39;s more frequent if you specify<br>
&gt;         --secure<br>
&gt;         channels all or if you omit -p altogether (both have the same<br>
&gt;         effect).<br>
&gt;<br>
&gt;         David<br>
&gt;         &gt;<br>
&gt;         &gt; On Fri, Mar 23, 2012 at 6:06 AM, David Jaša<br>
&gt;         &lt;<a href="mailto:djasa@redhat.com">djasa@redhat.com</a>&gt; wrote:<br>
&gt;         &gt;         Hi Anthony,<br>
&gt;         &gt;<br>
&gt;         &gt;         Anthony James píše v Čt 22. 03. 2012 v 15:40 -0400:<br>
&gt;         &gt;         &gt; I&#39;m having problems connecting to a spice virtual<br>
&gt;         machine<br>
&gt;         &gt;         using SSL.<br>
&gt;         &gt;         &gt;  I use the following command to connect:<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; spicec -h localhost -p $PORT -s $SPORT<br>
&gt;         --secure-channels all<br>
&gt;         &gt;         &gt; --host-subject &quot;$HOSTSUBJECT&quot; -w $PASSWD<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         You&#39;re missing --ca-file $CA_CERTIFICATE_FILE in<br>
&gt;         your command<br>
&gt;         &gt;         line.<br>
&gt;         &gt;<br>
&gt;         &gt;         David<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; The error I receive is:<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; Error: failed to connect w/SSL, ssl_error<br>
&gt;         &gt;         &gt; error:00000001:lib(0):func(0):reason(1)<br>
&gt;         &gt;         &gt; 139699632096512:error:14090086:SSL<br>
&gt;         &gt;         &gt; routines:SSL3_GET_SERVER_CERTIFICATE:certificate<br>
&gt;         verify<br>
&gt;         &gt;         &gt; failed:s3_clnt.c:1063:<br>
&gt;         &gt;         &gt; Warning: SSL Error:<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; I have followed the instructions from the<br>
&gt;         following 2 sites<br>
&gt;         &gt;         to<br>
&gt;         &gt;         &gt; configure the SSL certs:<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; <a href="http://www.spice-space.org/page/SSLConnection" target="_blank">http://www.spice-space.org/page/SSLConnection</a><br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         <a href="http://fedoraproject.org/w/index.php?title=QA:Testcase_Virtualization_Manually_set_spice_listening_port_with_TLS_port_set&amp;oldid=255162" target="_blank">http://fedoraproject.org/w/index.php?title=QA:Testcase_Virtualization_Manually_set_spice_listening_port_with_TLS_port_set&amp;oldid=255162</a><br>

&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; Any help would be greatly appreciated, I&#39;m sure<br>
&gt;         I&#39;m missing<br>
&gt;         &gt;         something.<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt;<br>
&gt;         &gt;         &gt; Thanks,<br>
&gt;         &gt;         &gt; Tony<br>
&gt;         &gt;<br>
&gt;         &gt;         &gt; _______________________________________________<br>
&gt;         &gt;         &gt; Spice-devel mailing list<br>
&gt;         &gt;         &gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt;         &gt;         &gt;<br>
&gt;         <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;         --<br>
&gt;         &gt;<br>
&gt;         &gt;         David Jaša, RHCE<br>
&gt;         &gt;<br>
&gt;         &gt;         SPICE QE based in Brno<br>
&gt;         &gt;         GPG Key:     22C33E24<br>
&gt;         &gt;         Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00<br>
&gt;         22C3 3E24<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; _______________________________________________<br>
&gt;         &gt; Spice-devel mailing list<br>
&gt;         &gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt;         &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
&gt;<br>
&gt;         --<br>
&gt;<br>
&gt;         David Jaša, RHCE<br>
&gt;<br>
&gt;         SPICE QE based in Brno<br>
&gt;         GPG Key:     22C33E24<br>
&gt;         Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Spice-devel mailing list<br>
&gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br>
--<br>
<br>
David Jaša, RHCE<br>
<br>
SPICE QE based in Brno<br>
GPG Key:     22C33E24<br>
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>