VNC console ? does it support for KVM instance ?

Asked by Hugo Kou

Bonjour~

as title...

I installed dashboard successfully

but there's no VNC button in my instance page...

http://4.bp.blogspot.com/-6hpnNtJ0KaY/TafH71sptrI/AAAAAAAACk4/2MNWqcpUmds/s1600/3.PNG

mine is KVM hypervisor .....

does it work for KVM ???

Thanks

Hugo Kuo

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Solved by:
Rafael Durán Castañeda
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Rafael Durán Castañeda (rafadurancastaneda) said :
#1
Revision history for this message
Hugo Kou (tonytkdk) said :
#2

Thanks man
You're so kind .....

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

Thanks Rafael Durán Castañeda, that solved my question.

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

Rafael Durán Castañeda

Could you plz give me some clue about nova-vncproxy.....?

and what should I install for VNC console feature.

Just merge the branch which you gave me , and there's a VNC console Button in Dashboard...

but I'm sure it will not work , bcz there's no nova-vncproxy in my OPENSTACK environment.

I try to find some docs , but it's lack of information about this.

I find nova-vncproxy binary in https://code.launchpad.net/~vishvananda/nova/vnc_console.

But I have no idea how to install that :\

OPENSTACK nova installed from PPA instead of source code . So I can not merge it :<

thanks

Revision history for this message
Rafael Durán Castañeda (rafadurancastaneda) said :
#5

I'm still stuck getting VNC console, but I can give you some clues:
- As you already know, you need merge vnc_console branch in dashboard
- You also need to get openstack nova source code, you can try: bzr branch lp:nova/cactus
- You'll get a nova dir where you can find bin dir. Now you have all bin you need.
- In addition, you can use all nova componenets from packages and just run nova-vncproxy
- Check nova-vncproxy code to know how to set up flagfile
- nova-vncproxy needs custom noVNC, you can download from git://github.com/openstack/noVNC.git
 - And here is where I'm stuck, you can check for updates here: https://answers.launchpad.net/nova/+question/153266

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

thanks Rafael~

I did something as below

1. cp nova-vncproxy /usr/bin/ ; cp stack /usr/bin/
2. put noVNC into /var/lib/nova/noVNC
3.set vnc flag in nova.conf
            --vnc_console_proxy_url=http://192.168.1.1:6080
            --vnc_enabled=True
            --vncproxy_host=192.168.1.1

4.excute nova-vncproxy manually :\
            /usr/bin/python /usr/bin/nova-vncproxy --flagfile=/etc/nova/nova.conf --logfile=/var/log/nova/nova-vncproxy.log

==Question================
1.Need I copy any other files or moudles to somewhere? ex. /cactus/nova/vnc/ ...I saw proxy.py overthere.....

2.How colud I using "#service openstack-nova-vncproxy [options]" to control nova-vncproxy?

3.grep vncproxy_url /var/log/nova/nova-vncproxy.log
         2011-04-21 18:19:02,956 DEBUG nova [-] vncproxy_url : http://127.0.0.1:6080

4.Where should I run nova-vncproxy? work with which component? bcz I have 3 machines,
Host1 [api+objectstore+glance+dashboard+mysql]
Host2 [network+scheduler+volume]
Host3 [compute nodes]

==================

I'll keep searching~

Revision history for this message
Best Rafael Durán Castañeda (rafadurancastaneda) said :
#7

I'm sorry I can't help you longer, but I think I shared all I know with you. Your questions now would fit better in openstack nova answers, you can use the link I give you before or try to open another answer. And my final clue is if you are going to check stack before going back once more to dashboard, you need to run nova-direct-api too.

Bye

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

thanks for you clue , it's working now :)

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

Thanks Rafael Durán Castañeda, that solved my question.

Revision history for this message
koolhead17 (koolhead17) said :
#10

Does firefox/chrome browser has permission to read/execute the the files in the directory?

Revision history for this message
koolhead17 (koolhead17) said :
#11

please ignore my earlier comment.

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

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

Revision history for this message
antiError (zhonghuabaima0913) said :
#13

I am very sorry to trouble you.I have the same question that vncproxy process cann't work.You said that we need to install custom noVNC.I have git https://github.com/managedit/openstack-novnc-ubuntu, but there is no anything can install.Can you help me ?
nova.conf:
--vnc_console_proxy_url=http://192.168.77.105:6080
--vncproxy_wwwroot=/var/lib/nova/noVNC
--vnc_enabled=true
--vncproxy_host=192.168.77.105

Thanks

Revision history for this message
Rafael Durán Castañeda (rafadurancastaneda) said :
#14

You are using packaging repository not the code, you are better with https://github.com/cloudbuilders/noVNC and you can run it using something like that:
$ cd /path/to/noVNC/utils
$ ./launch.sh --vnc localhost:6080

Revision history for this message
antiError (zhonghuabaima0913) said :
#15

Sorry,it didn't work properly either.I have tried to git https://github.com/cloudbuilders/noVNC,and done something like that:

$git clone https://github.com/cloudbuilders/noVNC.git
$cd noVNC
$git checkout diablo
1.配置 noVNC 服务
向/etc/nova/nova.conf 添加如下内容:
#nova-vncproxy
--vnc_enabled=True
--vncproxy_url=http://192.168.77.105:6080
--vncproxy_wwwroot=/home/testcloud/noVNC
--vncproxy_manager=nova.vnc.auth.VNCProxyAuthManager

 2. 建立 noVNC 服务启动程序软链接
ln -sv /opt/noVNC/utils/nova-wsproxy.py /usr/bin/nova-wsproxy

3. 建立 noVNC 服务启动脚本配置文件
在/etc/init/下建立名为 nova-vncproxy.conf 文件,内容如下:
description "Nova VNC proxy"
author "Vishvananda Ishaya <email address hidden>"

start on (filesystem and net-device-up IFACE!=lo)
stop on runlevel [016]

exec su -c "nova-wsproxy 6080 --web /opt/noVNC --flagfile=/etc/nova/nova.conf" nova
4. 建立 noVNC 启动脚本
ln -sv /lib/init/upstart-job /etc/init.d/nova-vncproxy

5. 重启相关服务
/etc/init.d/nova-api restart
/etc/init.d/nova-vncproxy start

But /etc/init.d/nova-vncproxy will automaticly stop.By the way, all the processes(keysthone,dashboard,nova-compute,nova-scheduler,glance,nova-network and so on) are usring package repository.