Commit 19498d6c authored by Guido Trotter's avatar Guido Trotter
Browse files

kvm: use the correct vnc bind address

There is a bug in kvm, when binding vnc to a specific address the
constant 'vnc_bind_address' is passed in, instead of the actual
requested address. This patch fixes it.

Reviewed-by: iustinp
parent e0eb13de
......@@ -301,7 +301,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
if vnc_bind_address == '':
vnc_arg = ':%d' % (display)
vnc_arg = '%s:%d' % (constants.HV_VNC_BIND_ADDRESS, display)
vnc_arg = '%s:%d' % (vnc_bind_address, display)
logging.error("Network port is not a valid VNC display (%d < %d)."
" Not starting VNC" %
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment