[pve-devel] [PATCH common 0/2, qemu-server 0/1] fix #1229

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Apr 24 15:51:59 CEST 2017


Apparently it's possible to bind to *:1234 while another process is
already bound to [::1]:1234, while any overlapping scenario results in
EADDRINUSE, this is particularly bad when we're looking for ports on
ipv4 if qemu finds (and uses) ::1 for 'localhost' which we tell it to
use for spice.
So, since we want qemu to use 'localhost' we should also be checking for
ports bound specifically to 'localhost' (and tell it the numerical
address to bind to rather than the name) to fix that.

Wolfgang Bumiller (2):
  tools: unused ports: optional address parameter
  tools: add addr_to_ip helper

 src/PVE/Tools.pm | 39 +++++++++++++++++++++++++--------------
 1 file changed, 25 insertions(+), 14 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list