Modify to display VNC Port number?

asked 2013-09-09 12:08:56 -0500

rizzpatel gravatar image

updated 2013-09-09 12:24:22 -0500


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, I would VNC to $OPENSTACK:5900.. If VM#2 is on Port 5907 I VNC to $OPENSTACK:5907 to get a console.

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


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(or any bash command..I will tailor it.). This way our users will no longer need to manage(console) to their VMs using their web browser. They will be able to find out which VNC port it's running on, and VNC directly to openstack on that given port to reach their VM.

Heres an example of what I am looking for:

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

answered 2013-09-10 11:38:24 -0500

rizzpatel gravatar image

I figured out an awesome solution for this, and I might blow some minds. Will post the results and the code soon if anyone else wants to use it.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-09-09 12:08:56 -0500

Seen: 250 times

Last updated: Sep 10 '13