Automatic spice port selection
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.
Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
Quoted 10 lines
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/63c54f354a34e7eb27b1c69016789a372a75843cTesting 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
----- Mail original -----
Quoted 12 lines
Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
Quoted 11 lines
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/63c54f354a34e7eb27b1c69016789a372a75843cTesting 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
2014-04-18 9:42 GMT+02:00 Christophe Fergeau <[email protected]>:
Quoted 14 lines
----- Mail original -----
Quoted 5 lines
Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
Quoted 4 lines
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
Quoted 5 lines
Quoted 5 lines
Testing this patch lead to a missing "to=" parameter and I didn't found nothing else.
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
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?
Copying Gerd.
Quoted 29 lines · Fabio Fantoni
2014-04-18 9:42 GMT+02:00 Christophe Fergeau <[email protected]>:
Quoted 14 lines
----- Mail original -----
Quoted 5 lines
Il 26/03/2014 17:15, Fabio Fantoni ha scritto:
Quoted 4 lines
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
Quoted 5 lines
Quoted 5 lines
Testing this patch lead to a missing "to=" parameter and I didn't found nothing else.
Quoted 9 lines
Quoted 2 lines
Quoted 2 lines
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?
Hi,
Quoted 2 lines
Quoted 2 lines
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
Il 22/04/2014 10:35, Gerd Hoffmann ha scritto:
Quoted 9 lines
Hi,Quoted 2 lines
Quoted 2 lines
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.
Quoted 8 lines
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.