VNC Console in OpenStack Dashboard

Asked by Kanthi Kiran N

I have installed and configured OpenStack with FlatDHCPManager on a single server and its working fine so far , using tty and ubuntu uec images. I also configure dashboard . I am able to launch instances form dashboard. I am unable see vnc console option on my dashboard interface unlike shown in this demo (http://www.openstack.org/blog/2011/03/openstack-dashboard-demonstration-video/) I am not sure if this requires any additional configuration . Guidance on getting this worked is appreciated.

Regards

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Kanthi Kiran N
Solved:
Last query:
Last reply:
Revision history for this message
Hugo Kou (tonytkdk) said :
#1
Revision history for this message
Kanthi Kiran N (nkanthikiran) said :
#2

Thank You. I shall try this and get back to you.

Revision history for this message
Hugo Kou (tonytkdk) said :
#3

cd ~/src/openstack-dashboard/trunk
bzr merge lp:~sleepsonthefloor/openstack-dashboard/vnc_console

I think we have to install nova-vncproxy and run it up , but I can not find any method to install nova-vncproxy .

I installed nova from trunk PPA , but there's no nova-vncproxy package .

So confusing now.....

Revision history for this message
Kanthi Kiran N (nkanthikiran) said :
#4

OpenStack Cactus release mentions the below point as one of its new features ..

"Thanks to the VNC Proxy, users can now access their instances through a websocket enabled browser (like Google Chrome)"

I assume vncproxy is available by default now. Please correct me if I am wrong.

Also wondering there is not mention about this in cactus docs.

Revision history for this message
Kanthi Kiran N (nkanthikiran) said :
#5

Hi Hugo Kou ,

I have merged dashboard vnc ... Now i get option for vnc in the dashboard. Yet as you said still there is lot of configuration needed.

Also I have been reading this post on the same issue https://answers.launchpad.net/openstack-dashboard/+question/153427

Please let me know if your findings .

Hope the one who has the openstack dashboard screencast with vnc working can help us out to resolve this isssue.

I too shall keep digging more to understand it.

Regards,
Kanthi

Revision history for this message
Hugo Kou (tonytkdk) said :
#6

dude ~

run up nova-direct-api
run up nova-vncproxy
set flag --vncproxy_url= in nova.conf

and VNC console will l works for you

Revision history for this message
Kanthi Kiran N (nkanthikiran) said :
#7

Hi Hugo,

Can you please brief the above steps and help me understand them. I have currently a working openstack dashboard with vnc merged into it.

When I tried to run nova-vncproxy i have the following error

root@openstack-manual:~/cactus/cactus/bin# ./nova-vncproxy
/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py:8: UserWarning: Module nova was already imported from /root/cactus/cactus/nova/__init__.pyc, but /usr/lib/pymodules/python2.6 is being added to sys.path
  import pkg_resources
2011-04-25 02:06:38,234 AUDIT nova.vnc-proxy [-] Starting nova-vnc-proxy node (version 2011.2-LOCALBRANCH:LOCALREVISION)
2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] Missing vncproxy_wwwroot (version /var/lib/nova/noVNC/)
2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] You need a slightly modified version of noVNC to work with the nova-vnc-proxy
2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] Check out the most recent nova noVNC code: git://github.com/sleepsonthefloor/noVNC.git
2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] And drop it in /var/lib/nova/noVNC/

Revision history for this message
Vish Ishaya (vishvananda) said :
#8

you need to do what it says in the error and you also need to add the flag:
--vncproxy_url=http://<ip of vnc proxy>:6080

and you should run vncproxy with flagfile as well: ./nova-vncproxy --flagfile=/path/to/flagfile

On Apr 24, 2011, at 11:08 PM, Kanthi Kiran N wrote:

> Question #153498 on OpenStack Compute (nova) changed:
> https://answers.launchpad.net/nova/+question/153498
>
> Status: Answered => Open
>
> Kanthi Kiran N is still having a problem:
> Hi Hugo,
>
> Can you please brief the above steps and help me understand them. I have
> currently a working openstack dashboard with vnc merged into it.
>
> When I tried to run nova-vncproxy i have the following error
>
>
> root@openstack-manual:~/cactus/cactus/bin# ./nova-vncproxy
> /usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py:8: UserWarning: Module nova was already imported from /root/cactus/cactus/nova/__init__.pyc, but /usr/lib/pymodules/python2.6 is being added to sys.path
> import pkg_resources
> 2011-04-25 02:06:38,234 AUDIT nova.vnc-proxy [-] Starting nova-vnc-proxy node (version 2011.2-LOCALBRANCH:LOCALREVISION)
> 2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] Missing vncproxy_wwwroot (version /var/lib/nova/noVNC/)
> 2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] You need a slightly modified version of noVNC to work with the nova-vnc-proxy
> 2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] Check out the most recent nova noVNC code: git://github.com/sleepsonthefloor/noVNC.git
> 2011-04-25 02:06:38,235 INFO nova.vnc-proxy [-] And drop it in /var/lib/nova/noVNC/
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Kanthi Kiran N (nkanthikiran) said :
#9

Thank You Vish and Hugo. I got it now

Revision history for this message
Davor Cubranic (cubranic) said :
#10

Since Cactus release, Openstack Dashboard supports VNC without having to merge in the ~sleepsonthefloor/openstack-dashboard/vnc_console branch.

So the steps for those running the Cactus release are:

- get the dashboard (http://docs.openstack.org/cactus/openstack-compute/admin/content/installing-openstack-dashboard.html)
- install the custom noVNC (http://github.com/sleepsonthefloor/noVNC)
- configure "-vncproxy_host" in nova.conf
- and install and run nova-vncproxy as described here