参考1:http://hi.baidu.com/chenshake/blog/item/3083282aac011a185243c135.html
For anyone else who might be having 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
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 <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 | 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
--novnc_enabled=true
--vncserver_listen=127.0.0.1
--vncserver_proxyclient_address=127.0.0.1
--novncproxy_base_url=http://192.168.0.202:6080/vnc_auto.html
--xvpvncproxy_base_url=http://192.168.0.202:6081/console
--xvpvncproxy_port=6081
--novncproxy_port=65535
root@Controller:~# apt-cache policy novnc
novnc:
Installed: 2012.1~e3+dfsg+1-2
Candidate: 2012.1~e3+dfsg+1-2
Version table:
*** 2012.1~e3+dfsg+1-2 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
按照这个方法设置VNC以后,dashboard中进行访问,出现了一个错误图形如下:
以上用的是FF,换CHrome,出现错误"fail to connect to server",看错误提示,和在FF中部一样,看来有戏。
-------------------------------------------------------------------------------------------------------------------------------------------------
参考2:http://nova.openstack.org/runnova/vncconsole.html