From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: [PATCH] Use vnc-listen setting specified in xend config file Date: Wed, 11 Mar 2009 12:43:45 -0600 Message-ID: <49B80661.5000002@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020705040609070209090106" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------020705040609070209090106 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Use the vnc-listen address specified in xend configuration file when updating vfb location setting. Currently the hardcoded value 'localhost' is used. Signed-off-by: Jim Fehlig --------------020705040609070209090106 Content-Type: text/x-patch; name="xend-vnclisten.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xend-vnclisten.patch" diff -r a4274d1e85a3 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Wed Mar 11 13:11:21 2009 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Wed Mar 11 12:34:37 2009 -0600 @@ -1410,7 +1410,8 @@ class XendDomainInfo: for dev_uuid, (dev_type, dev_info) in self.info['devices'].items(): if dev_type == 'vfb': old_location = dev_info.get('location') - listen_host = dev_info.get('vnclisten', 'localhost') + listen_host = dev_info.get('vnclisten', + XendOptions.instance().get_vnclisten_address()) new_location = '%s:%s' % (listen_host, str(vnc_port)) if old_location == new_location: break --------------020705040609070209090106 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------020705040609070209090106--