* Automatic spice port selection
@ 2014-03-26 16:15 Fabio Fantoni
2014-04-14 8:13 ` Fabio Fantoni
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Fantoni @ 2014-03-26 16:15 UTC (permalink / raw)
To: qemu-devel@nongnu.org, spice-devel, xen-devel
Time ago I have read somewhere that there is an option to automatically
spice port in qemu as for vnc.
I started to write a libxl patch to add this feature like the vnc one:
https://github.com/Fantu/Xen/commit/63c54f354a34e7eb27b1c69016789a372a75843c
Testing this patch lead to a missing "to=" parameter and I didn't found
nothing else.
Is there someone that can tell me that if it is possible to let qemu
automatically assign a spice port like for vnc?
Thanks for any reply.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Automatic spice port selection
2014-03-26 16:15 Automatic spice port selection Fabio Fantoni
@ 2014-04-14 8:13 ` Fabio Fantoni
2014-04-18 7:42 ` Christophe Fergeau
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Fantoni @ 2014-04-14 8:13 UTC (permalink / raw)
To: qemu-devel@nongnu.org, spice-devel, xen-devel
Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
> Time ago I have read somewhere that there is an option to
> automatically spice port in qemu as for vnc.
> I started to write a libxl patch to add this feature like the vnc one:
> https://github.com/Fantu/Xen/commit/63c54f354a34e7eb27b1c69016789a372a75843c
>
>
> Testing this patch lead to a missing "to=" parameter and I didn't
> found nothing else.
>
> Is there someone that can tell me that if it is possible to let qemu
> automatically assign a spice port like for vnc?
>
> Thanks for any reply.
Ping
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Automatic spice port selection
2014-04-14 8:13 ` Fabio Fantoni
@ 2014-04-18 7:42 ` Christophe Fergeau
2014-04-18 8:12 ` Fabio Fantoni
0 siblings, 1 reply; 7+ messages in thread
From: Christophe Fergeau @ 2014-04-18 7:42 UTC (permalink / raw)
To: Fabio Fantoni; +Cc: spice-devel, xen-devel, qemu-devel
----- Mail original -----
> Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
> > Time ago I have read somewhere that there is an option to
> > automatically spice port in qemu as for vnc.
> > I started to write a libxl patch to add this feature like the vnc one:
> > https://github.com/Fantu/Xen/commit/63c54f354a34e7eb27b1c69016789a372a75843c
> >
> >
> > Testing this patch lead to a missing "to=" parameter and I didn't
> > found nothing else.
> >
> > Is there someone that can tell me that if it is possible to let qemu
> > automatically assign a spice port like for vnc?
libvirt does automatic port assignemnt for SPICE, but I think it does it 'manually' (with no support from SPICE). I don't think spice-server/qemu has magic to automatically allocate the spice port to be used.
Christophe
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Automatic spice port selection
2014-04-18 7:42 ` Christophe Fergeau
@ 2014-04-18 8:12 ` Fabio Fantoni
2014-04-22 6:51 ` [Qemu-devel] " Markus Armbruster
0 siblings, 1 reply; 7+ messages in thread
From: Fabio Fantoni @ 2014-04-18 8:12 UTC (permalink / raw)
To: Christophe Fergeau; +Cc: spice-devel, xen-devel, qemu-devel@nongnu.org
[-- Attachment #1.1: Type: text/plain, Size: 1010 bytes --]
2014-04-18 9:42 GMT+02:00 Christophe Fergeau <cfergeau@redhat.com>:
>
>
> ----- Mail original -----
> > Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
> > > Time ago I have read somewhere that there is an option to
> > > automatically spice port in qemu as for vnc.
> > > I started to write a libxl patch to add this feature like the vnc one:
> > >
> https://github.com/Fantu/Xen/commit/63c54f354a34e7eb27b1c69016789a372a75843c
> > >
> > >
> > > Testing this patch lead to a missing "to=" parameter and I didn't
> > > found nothing else.
> > >
> > > Is there someone that can tell me that if it is possible to let qemu
> > > automatically assign a spice port like for vnc?
>
> libvirt does automatic port assignemnt for SPICE, but I think it does it
> 'manually' (with no support from SPICE). I don't think spice-server/qemu
> has magic to automatically allocate the spice port to be used.
>
> Christophe
>
Thanks for reply.
Can someone add spice automatic port selection on qemu similar to vnc ones
please?
[-- Attachment #1.2: Type: text/html, Size: 1709 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Automatic spice port selection
2014-04-18 8:12 ` Fabio Fantoni
@ 2014-04-22 6:51 ` Markus Armbruster
2014-04-22 8:35 ` Gerd Hoffmann
0 siblings, 1 reply; 7+ messages in thread
From: Markus Armbruster @ 2014-04-22 6:51 UTC (permalink / raw)
To: Fabio Fantoni
Cc: spice-devel, xen-devel, qemu-devel@nongnu.org, Christophe Fergeau
Copying Gerd.
Fabio Fantoni <fabio.fantoni@m2r.biz> writes:
> 2014-04-18 9:42 GMT+02:00 Christophe Fergeau <cfergeau@redhat.com>:
>
>>
>>
>> ----- Mail original -----
>> > Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
>> > > Time ago I have read somewhere that there is an option to
>> > > automatically spice port in qemu as for vnc.
>> > > I started to write a libxl patch to add this feature like the vnc one:
>> > >
>> https://github.com/Fantu/Xen/commit/63c54f354a34e7eb27b1c69016789a372a75843c
>> > >
>> > >
>> > > Testing this patch lead to a missing "to=" parameter and I didn't
>> > > found nothing else.
>> > >
>> > > Is there someone that can tell me that if it is possible to let qemu
>> > > automatically assign a spice port like for vnc?
>>
>> libvirt does automatic port assignemnt for SPICE, but I think it does it
>> 'manually' (with no support from SPICE). I don't think spice-server/qemu
>> has magic to automatically allocate the spice port to be used.
>>
>> Christophe
>>
>
> Thanks for reply.
> Can someone add spice automatic port selection on qemu similar to vnc ones
> please?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Automatic spice port selection
2014-04-22 6:51 ` [Qemu-devel] " Markus Armbruster
@ 2014-04-22 8:35 ` Gerd Hoffmann
2014-04-22 9:42 ` Fabio Fantoni
0 siblings, 1 reply; 7+ messages in thread
From: Gerd Hoffmann @ 2014-04-22 8:35 UTC (permalink / raw)
To: Markus Armbruster
Cc: spice-devel, Fabio Fantoni, xen-devel, Christophe Fergeau,
qemu-devel@nongnu.org
Hi,
> > Can someone add spice automatic port selection on qemu similar to vnc ones
> > please?
Not so easy as this is handled by spice-server not qemu, so this
requires some new interfaces to communicate the listening address to
qemu. Otherwise you can't see the port selected in 'info spice', which
would make the whole thing pretty pointless.
Also note that the automatic port selection code in qemu is rarely used
in practice due to libvirt doing the port selection in typical setups.
And it is a bit flaky. I've seen it happily grab port 5900 in ipv6
space even though it was in use in ipv4 space. Which is probably not
the behavior expected by most users ...
cheers,
Gerd
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Automatic spice port selection
2014-04-22 8:35 ` Gerd Hoffmann
@ 2014-04-22 9:42 ` Fabio Fantoni
0 siblings, 0 replies; 7+ messages in thread
From: Fabio Fantoni @ 2014-04-22 9:42 UTC (permalink / raw)
To: Gerd Hoffmann, Markus Armbruster
Cc: spice-devel, xen-devel, qemu-devel@nongnu.org, Christophe Fergeau
Il 22/04/2014 10:35, Gerd Hoffmann ha scritto:
> Hi,
>
>>> Can someone add spice automatic port selection on qemu similar to vnc ones
>>> please?
> Not so easy as this is handled by spice-server not qemu, so this
> requires some new interfaces to communicate the listening address to
> qemu. Otherwise you can't see the port selected in 'info spice', which
> would make the whole thing pretty pointless.
>
> Also note that the automatic port selection code in qemu is rarely used
> in practice due to libvirt doing the port selection in typical setups.
> And it is a bit flaky. I've seen it happily grab port 5900 in ipv6
> space even though it was in use in ipv4 space. Which is probably not
> the behavior expected by most users ...
>
> cheers,
> Gerd
Thanks for your reply.
In xen I always used the vnc automatic port selection, which use the
qemu's auto port selection.
Now I'm switching from vnc to spice on xen production systems, and I
need an automatic port selection like vnc.
I believe that lot of xen users will like this feature and part of them
still stuck on vnc due to the lack of it.
Could any one help to add this feature?
Why not implement it on libxl? (awaiting xen-devel feedback)
Thanks for any reply.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-04-22 9:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 16:15 Automatic spice port selection Fabio Fantoni
2014-04-14 8:13 ` Fabio Fantoni
2014-04-18 7:42 ` Christophe Fergeau
2014-04-18 8:12 ` Fabio Fantoni
2014-04-22 6:51 ` [Qemu-devel] " Markus Armbruster
2014-04-22 8:35 ` Gerd Hoffmann
2014-04-22 9:42 ` Fabio Fantoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).