Ask Your Question
0

Display VNC Port in Dashboard

asked 2013-09-09 12:05:52 -0600

anonymous user

Anonymous

updated 2013-09-10 17:44:40 -0600

smaffulli gravatar image

Hi,

first of all this is with a DEVSTACK install.

I am trying to figure out how to create a new column in the instances list that will display the VNC port number that the VM is assigned to.

We are currently VNCing directly to the VMs using "$OPENSTACK_IP:590x". So for example if VM#1 is running on VNc port 5900, VM#2 is on Port 5901.

In the instances list page, I added a "VNC PORT" column by modifying file:

/opt/stack/horizon/openstack_dashboard/dashboards/project/instances/tables.py

But I am seriously a python newbie. I am trying to figure out a way to have the fields uner the "VNC Port" column to be the result of the "netstat -tupan | grep 590*" bash command. This way our users will no longer need to manage their VMs using the web GUI. They will be able to find out which VNC port it's running on, and VNC directly to openstack on that given port.

Any idea if this is possible? Thanks for any help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-12-22 23:12:27 -0600

fifieldt gravatar image

For security reasons, OpenStack has some features that aim to prevent users from directly connecting to the VNC server of the hypervisor.

Users can get a direct console URL using something like " openstack console url show INSTANCE_NAME ":

http://docs.openstack.org/user-guide/...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-09-09 12:05:52 -0600

Seen: 301 times

Last updated: Dec 22 '16