Re: [Openstack] What is the correct config for vnc or novnctosuccessfully enable VNC CONSOLE in a browser?
thanks for your answer. the option of --vncserver_listen is always 0.0.0.0 during I having any change for other vnc's options in nova.conf by the way ,if I set --vncserver_listen to controlnote's IP ,can novnc work fine when instance is in compute-note?? thanks dming -- Original -- From: Anthony Youngsleepsonthefl...@gmail.com; Date: Mon, Apr 9, 2012 02:23 PM To: .。o 0 O泡泡501640...@qq.com; Cc: openstackopenstack@lists.launchpad.net; Subject: Re: [Openstack] What is the correct config for vnc or novnctosuccessfully 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.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??? 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 Inneski...@managedit.ie; Date: Sat, Apr 7, 2012 07:15 PM To: Eric Luostaywithmyhe...@gmail.com; Cc: openstackopenstack@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.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 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, Kiall Sent 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-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 module 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 |
Re: [Openstack] What is the correct config for vnc or novnctosuccessfully enable VNC CONSOLE in a browser?
I think--vncserver_listen must be one of the ips of compute-node.-openstack-bounces+gongysh=cn.ibm@lists.launchpad.net wrote: -To: "Anthony Young" sleepsonthefl...@gmail.comFrom: ".。o 0 O泡泡" 501640...@qq.comSent by: openstack-bounces+gongysh=cn.ibm@lists.launchpad.netDate: 04/09/2012 06:16PMCc: openstack openstack@lists.launchpad.netSubject: Re: [Openstack] What is the correct config for vnc or novnctosuccessfully enable VNC CONSOLE in a browser?thanks for your answer.the option of--vncserver_listen is always 0.0.0.0 during I having any change for other vnc's options in nova.confby the way ,if I set--vncserver_listen to controlnote's IP ,can novnc work fine when instance is in compute-note??thanksdming--Original--From: "Anthony Young"sleepsonthefl...@gmail.com;Date: Mon, Apr 9, 2012 02:23 PMTo: ".。o 0 O泡泡"501640...@qq.com; Cc: "openstack"openstack@lists.launchpad.net; Subject: Re: [Openstack] What is the correct config for vnc or novnctosuccessfully 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 module flags.DEFINE_boolean('verbose', False,AttributeError: 'module' object has no attribute