[Spice-devel] spice: connection refused

Marian Krcmarik mkrcmari at redhat.com
Mon Feb 17 03:37:00 PST 2014



----- Original Message -----
> From: "Sean Darcy" <seandarcy2 at gmail.com>
> To: spice-devel at lists.freedesktop.org
> Sent: Monday, February 17, 2014 12:25:36 AM
> Subject: Re: [Spice-devel] spice: connection refused
> 
> On 02/16/2014 05:11 PM, Marian Krcmarik wrote:
> >
> >
> > ----- Original Message -----
> >> From: "Sean Darcy" <seandarcy2 at gmail.com>
> >> To: spice-devel at lists.freedesktop.org
> >> Sent: Sunday, February 16, 2014 8:50:19 PM
> >> Subject: Re: [Spice-devel] spice: connection refused
> >>
> >> On 02/16/2014 12:10 PM, Sean Darcy wrote:
> >>> I'm trying to connect to a windows guest on an Fedora 19 host from a
> >>> Fedora 19 client.
> >>>
> >>> remote-viewer spice://10.10.11.100:5972
> >>>
> >>> (remote-viewer:19994): GSpice-WARNING **: Could not connect to
> >>> 10.10.11.100: Connection refused
> >>>
> >>> virt-viewer-0.5.6-1.fc19.x86_64
> >>>
> >>> xml for the guest has:
> >>>
> >>> <graphics type='spice' port='5972' autoport='no'/>
> >>>
> >>> Not sure how you troubleshoot this. I can ssh into the host, and connect
> >>> to the guest with vnc.
> >>>
> >>> On the F19 host:
> >>>
> >>> qemu-1.6.1-2.fc19.x86_64
> >>> rpm -qa | grep spice | sort
> >>> spice-glib-0.20-6.fc19.x86_64
> >>> spice-glib-devel-0.20-6.fc19.x86_64
> >>> spice-gtk-0.20-6.fc19.x86_64
> >>> spice-gtk3-0.20-6.fc19.x86_64
> >>> spice-gtk3-devel-0.20-6.fc19.x86_64
> >>> spice-gtk-devel-0.20-6.fc19.x86_64
> >>> spice-gtk-python-0.20-6.fc19.x86_64
> >>> spice-gtk-tools-0.20-6.fc19.x86_64
> >>> spice-parent-15-9.fc19.noarch
> >>> spice-protocol-0.12.6-1.fc19.noarch
> >>> spice-server-0.12.4-3.fc19.x86_64
> >>> spice-vdagent-0.14.0-5.fc19.x86_64
> >>> spice-xpi-2.8-3.fc19.x86_64
> >>>
> >>> On the Windows 2008R2 guest:
> >>>
> >>> virtio-win-0.1-74.iso
> >>> spice guest tools 0.74
> >>>
> >>> Any help appreciated.
> >>>
> >>> sean
> >>>
> >> On F19 host:
> >> libvirt-1.1.3.2-1.fc19.x86_64
> >>
> >>
> >> And from the log file on the host:
> >>
> >> -spice port=5972,addr=127.0.0.1,disable-ticketing,seamless-migration=on
> >
> > You specified the spice server to be binded only on localhost:5972 (the
> > option addr=127.0.0.1) but you are trying to connect to 10.10.11.100:5972,
> > so If you use only localhost connection (the host and client is the same
> > machine) try - "remote-viewer spice://localhost:5972" otherwise specify
> > correct IP address for your spice server to be binded on, try to edit the
> > domain xml to something like:
> > <graphics type='spice' port='5972' autoport='no'/>
> >        <listen type='address' address='10.10.11.100'/>
> > </graphics>
> > and then "remote-viewer spice://10.10.11.100:5972"
> > You can use address 0.0.0.0 as wildcard for all interfaces.
> >
> >>
> >> sean
> >>
> >> _______________________________________________
> >> Spice-devel mailing list
> >> Spice-devel at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> >>
> 
> Hmm. OK, I'll try that. Just to be clear the F19 host is 10.10.11.100.
> But to connect remotely, I need to specify the ip address of the host in
> the guest xml file? Does this mean I could not connect to the guest from
> the host? (which probably doesn't matter to us, but seems odd.)
You could, just use the IP address where the spice server listens, if you specify 127.0.0.1 then use 127.0.0.1 which of course will not be accessible remotely, or specify 10.10.11.100 and you can connect from your local network including localhost. The best for you would be probably to specify wildcard 0.0.0.0 and spice-server will be listening on all interfaces.
> 
> The guest network is bridged, and the guest has an ip address of
> 10.10.11.70. Would it be better to specify the _guest's_ address? That
> way, I assume, I could connect from the host.
> 
> Thanks for the prompt reply.
> 
> sean
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list