Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?

2012-04-09 Thread Yong Sheng Gong

		About configuration items in nova.conf
	
		
			

	#read by nova-compute to compose vnc-console URL
	# for novnc
	novncproxy_base_url=http://controlnode:6080/vnc_auto.html
	# for xvpvnc
	xvpvncproxy_base_url=http://controlnode:6081/console
	#read by nova-compute to instantiate VMs
	vncserver_listen=controlnode
	
	#read by libvirt driver to compute vnc-console URL
	vncserver_proxyclient_address=controlnode 
	-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: .。o 0 O泡泡 <501640...@qq.com>From: Anthony Young Sent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/09/2012 02:23PMCc: openstack Subject: Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?See below:
but I get some thing strange for:if I set --vnc_enabled=true--novncproxy_base_url=http://localhost:6080/vnc_auto.html
--vncserver_proxyclient_address=localhost--vncserver_listen=0.0.0.0in nova.conf that it return 
Oops! Google Chrome could not connect to localhost:6080 in dashboard,but work fine when I use command nova get-vnc-console demo novnc  ..It return a url as http://localhost:6080/vnc_auto.html?token=XX..
then I enter this url in chrome with http://172.18.187.110:6080/vnc_auto.html?token=XX 
ps:172.18.187.110 is the public ip of my openstack server..It can return my VM's screen ..
however,when I set
--vnc_enabled=true--novncproxy_base_url=http://172.18.187.110:6080/vnc_auto.html
--vncserver_proxyclient_address=172.18.187.110--vncserver_listen=0.0.0.0and restart all the services ..
both dashboard and url from command nova get-vnc-console demo novnc returns server connot connect I am wondering how would localhost and 172.18.187.110 be not the same???
If you launched this instance before you specified --vncserver_listen, then the instance's vnc server will bind 127.0.0.1.  Furthermore, this configuration will be baked into the instances libvirt.xml file, so changes to --vncserver_listen in your nova.conf will not have any effect for already existing instances.
Did you happen to launch this instance before you set --vncserver_listen to 0.0.0.0?  If so, you may try to launch another instance and see if vnc is working properly.Just for the record, --vncserver_listen is generally set to the hosts management ip, rather than the public ip or 0.0.0.0, for security reasons.
 
thanksdming 
-- Original --From:  "Kiall Mac Innes"<ki...@managedit.ie>;
Date:  Sat, Apr 7, 2012 07:15 PMTo:  "Eric Luo"<staywithmyhe...@gmail.com>;Cc:  "openstack"<openstack@lists.launchpad.net>;
Subject:  Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser? For anyone else who might be hng the same issue.. These two packages, combined with these options will get novnc working on precise..--vnc_enabled=true--novncproxy_base_url=http://78.153.XXX.XXX:6080/vnc_auto.html--vncserver_proxyclient_address=78.153.XXX.XXX
--vncserver_listen=0.0.0.0I've intentionally kept the version numbers identical to the packages currently in the precise repo's. This will hopefully let apt "do the right thing" once an official update is released..
http://dl.dropbox.com/u/1400487/novnc_2012.1~e3%2Bdfsg-1_amd64.debhttp://dl.dropbox.com/u/1400487/python-novnc_2012.1~e3%2Bdfsg-1_all.deb Thanks,KiallOn Sat, Apr 7, 2012 at 11:14 AM, Kiall Mac Innes <ki...@managedit.ie> wrote:

The novnc package included in 12.04 is outdated/broken.I know Chuck is planning to fix it ASAP..In the meantime, I hacked together a fixed .deb.. I can stick it somewhere for you to download if you like?
Thanks,KiallSent from my phone.On Apr 7, 2012 9:31 a.m., "Eric Luo" <staywithmyhe...@gmail.com> wrote:

Hello ,allI installed Openstack as a all-in-one solution ,I got everything runs correctly ,I can ssh to my VMs etc. But there is a problem here: I can not use the VNC tag in dashboard.
I have installed the nova-consoleauth and novnc by "apt-get" .but I can not statrt the nova-novncproxy service (by the way ,the nova-vncproxy service always runs OK),When I use the command root@ubuntu:~# service novnc start
I got the following with nothing else:* Starting OpenStack NoVNC proxy nova-novncproxyIt only says "starting",but does not say "started"!
actually it is not started ,by command service novnc status, it says: * nova-novncproxy is not running.when I use command nova-novncproxy --flagfile=/etc/nova/nova.conf ,I got the following:
WARNING: no 'numpy' module, HyBi protocol support disabledTraceback (most recent call last):File "/usr/bin/nova-novncproxy", line 40, in 
flags.DEFINE_boolean('verbose', False,AttributeError: 'module' object has no attribute

Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?

2012-04-08 Thread Anthony Young
See below:

>
> but I get some thing strange for:
> if I set
> --vnc_enabled=true
> --novncproxy_base_url=http://localhost:6080/vnc_auto.html<http://78.153.xxx.xxx:6080/vnc_auto.html>
> --vncserver_proxyclient_address=localhost
> --vncserver_listen=0.0.0.0
> in nova.conf that it return
> Oops! Google Chrome could not connect to 
> localhost:6080<http://192.168.0.202:6080/>
>
> in dashboard,but work fine when I use command *nova get-vnc-console demo
> novnc  ..*It return a url as
> http://localhost:6080/vnc_auto.html?token=XX..
> then I enter this url in chrome with
> http://172.18.187.110:6080/vnc_auto.html?token=XX
> ps:172.18.187.110 is the public ip of my openstack server..
> *It can return my VM's screen ..*
> *
> *
> however,when I set
> --vnc_enabled=true
> --novncproxy_base_url=http://172.18.187.110:6080/vnc_auto.html<http://78.153.xxx.xxx:6080/vnc_auto.html>
> --vncserver_proxyclient_address=172.18.187.110
> --vncserver_listen=0.0.0.0
>
> and restart all the services ..
> both dashboard and url from command *nova get-vnc-console demo novnc *returns
> server connot connect
> **
>
> *I am wondering how would localhost and 172.18.187.110 be not the same???*
> *
> *
>


If you launched this instance before you specified --vncserver_listen, then
the instance's vnc server will bind 127.0.0.1.  Furthermore, this
configuration will be baked into the instances libvirt.xml file, so changes
to --vncserver_listen in your nova.conf will not have any effect for
already existing instances.

Did you happen to launch this instance before you set --vncserver_listen to
0.0.0.0?  If so, you may try to launch another instance and see if vnc is
working properly.

Just for the record, --vncserver_listen is generally set to the hosts
management ip, rather than the public ip or 0.0.0.0, for security reasons.


> **
> thanks
>
> dming
>
> -- Original ------
> *From: * "Kiall Mac Innes";
> *Date: * Sat, Apr 7, 2012 07:15 PM
> *To: * "Eric Luo";**
> *Cc: * "openstack";**
> *Subject: * Re: [Openstack] What is the correct config for vnc or novnc
> tosuccessfully enable VNC CONSOLE in a browser?
>
> For anyone else who might be hng the same issue.. These two packages,
> combined with these options will get novnc working on precise..
>
> --vnc_enabled=true
> --novncproxy_base_url=http://78.153.XXX.XXX:6080/vnc_auto.html<http://78.153.xxx.xxx:6080/vnc_auto.html>
> --vncserver_proxyclient_address=78.153.XXX.XXX
> --vncserver_listen=0.0.0.0
>
> I've intentionally kept the version numbers identical to the packages
> currently in the precise repo's. This will hopefully let apt "do the right
> thing" once an official update is released..
>
> http://dl.dropbox.com/u/1400487/novnc_2012.1~e3%2Bdfsg-1_amd64.deb
>
> http://dl.dropbox.com/u/1400487/python-novnc_2012.1~e3%2Bdfsg-1_all.deb
>
> Thanks,
> Kiall
>
>
> On Sat, Apr 7, 2012 at 11:14 AM, Kiall Mac Innes 
>  wrote:
>
>> The novnc package included in 12.04 is outdated/broken.
>>
>> I know Chuck is planning to fix it ASAP..
>>
>> In the meantime, I hacked together a fixed .deb.. I can stick it
>> somewhere for you to download if you like?
>>
>> Thanks,
>> Kiall
>>
>> Sent from my phone.
>> On Apr 7, 2012 9:31 a.m., "Eric Luo"  wrote:
>>
>>> Hello ,all
>>> I installed Openstack as a all-in-one solution ,I got everything runs
>>> correctly ,I can ssh to my VMs etc. But there is a problem here: I can not
>>> use the VNC tag in dashboard.
>>> I have installed the nova-consoleauth and novnc by "apt-get" .but I can
>>> not statrt the nova-novncproxy service (by the way ,the nova-vncproxy
>>> service always runs OK),
>>> When I use the command root@ubuntu:~# *service novnc start*
>>> I got the following with nothing else:
>>> * Starting OpenStack NoVNC proxy nova-novncproxy
>>>
>>> It only says "starting",but does not say "started"!
>>>
>>> actually it is not started ,by command *service novnc status, *it says:
>>> * nova-novncproxy is not running.
>>>
>>> when I use command *nova-novncproxy --flagfile=/etc/nova/nova.conf* ,I
>>> got the following:
>>>
>>> WARNING: no 'numpy' module, HyBi protocol support disabled
>>> Traceback (most recent call last):
>>> File "/usr/bin/nova-novncproxy", line 40, in 
>>> flags.DEFINE_boolean('verbose', False,
>>> AttributeError: 'module' object has 

Re: [Openstack] What is the correct config for vnc or novnc tosuccessfully enable VNC CONSOLE in a browser?

2012-04-08 Thread .。o 0 O泡泡
thanks kiall


with your two packages that novnc work fine .


but I get some thing strange for:
if I set 
--vnc_enabled=true

--novncproxy_base_url=http://localhost:6080/vnc_auto.html
--vncserver_proxyclient_address=localhost

--vncserver_listen=0.0.0.0
in nova.conf that it return 

Oops! Google Chrome could not connect to localhost:6080 
in dashboard,but work fine when I use command nova get-vnc-console demo novnc  
..It return a url as http://localhost:6080/vnc_auto.html?token=XX..
then I enter this url in chrome with 
http://172.18.187.110:6080/vnc_auto.html?token=XX 
ps:172.18.187.110 is the public ip of my openstack server..
It can return my VM's screen ..


however,when I set
--vnc_enabled=true

--novncproxy_base_url=http://172.18.187.110:6080/vnc_auto.html
--vncserver_proxyclient_address=172.18.187.110

--vncserver_listen=0.0.0.0



and restart all the services ..
both dashboard and url from command nova get-vnc-console demo novnc returns 
server connot connect
 
I am wondering how would localhost and 172.18.187.110 be not the same???


thanks


dming
 
-- Original --
From:  "Kiall Mac Innes";
Date:  Sat, Apr 7, 2012 07:15 PM
To:  "Eric Luo";
Cc:  "openstack";
Subject:  Re: [Openstack] What is the correct config for vnc or novnc 
tosuccessfully enable VNC CONSOLE in a browser?

 
For anyone else who might be hng the same issue.. These two packages, combined 
with these options will get novnc working on precise..

--vnc_enabled=true
--novncproxy_base_url=http://78.153.XXX.XXX:6080/vnc_auto.html
--vncserver_proxyclient_address=78.153.XXX.XXX
--vncserver_listen=0.0.0.0


I've intentionally kept the version numbers identical to the packages currently 
in the precise repo's. This will hopefully let apt "do the right thing" once an 
official update is released..


http://dl.dropbox.com/u/1400487/novnc_2012.1~e3%2Bdfsg-1_amd64.deb


http://dl.dropbox.com/u/1400487/python-novnc_2012.1~e3%2Bdfsg-1_all.deb 

Thanks,
Kiall


On Sat, Apr 7, 2012 at 11:14 AM, Kiall Mac Innes  wrote:

The novnc package included in 12.04 is outdated/broken.

I know Chuck is planning to fix it ASAP..

In the meantime, I hacked together a fixed .deb.. I can stick it somewhere for 
you to download if you like?


Thanks,
Kiall

Sent from my phone.
On Apr 7, 2012 9:31 a.m., "Eric Luo"  wrote:


Hello ,allI installed Openstack as a all-in-one solution ,I got everything runs 
correctly ,I can ssh to my VMs etc. But there is a problem here: I can not use 
the VNC tag in dashboard.
I have installed the nova-consoleauth and novnc by "apt-get" .but I can not 
statrt the nova-novncproxy service (by the way ,the nova-vncproxy service 
always runs OK),
When I use the command root@ubuntu:~# service novnc start
I got the following with nothing else:
* Starting OpenStack NoVNC proxy nova-novncproxy


It only says "starting",but does not say "started"!


actually it is not started ,by command service novnc status, it says: * 
nova-novncproxy is not running.


when I use command nova-novncproxy --flagfile=/etc/nova/nova.conf ,I got the 
following:


WARNING: no 'numpy' module, HyBi protocol support disabled
Traceback (most recent call last):
File "/usr/bin/nova-novncproxy", line 40, in 
flags.DEFINE_boolean('verbose', False,
AttributeError: 'module' object has no attribute 'DEFINE_boolean'



When I use command nova get-vnc-console testVM novnc




+---++
| Type | Url |
+---++
| novnc | 
http://192.168.0.202:6080/vnc_auto.html?token=e1095862-deb9-4cb5-9ec9-44aa0200342e
 |
+---++



but When pasted the url above into my chrome ,I got the following :

Oops! Google Chrome could not connect to 192.168.0.202:6080

Suggestions:

Try reloading the page

Search on Google:when I click the "VNC " tag in dashboard ,I got the folloing :




This webpage is not available
Google Chrome's connection attempt to 192.168.0.202 was rejected. The website 
may be down, or your network may not be properly configured.

Here are some suggestions:

Reload this webpage later.

Check your Internet connection. Restart any router, modem, or other network 
devices you may be using.

Add Google Chrome as a permitted program in your firewall's or antivirus 
software's settings. If it is already a permitted program, try deleting it from 
the list of permitted programs and adding it again.

If you use a proxy server, check your proxy settings or contact your network 
administrator to make sure the proxy server is working. If you don't believe 
you should be using a proxy server, adjust your pr