Setting up VNCauthproxy

151 views
Skip to first unread message

Anuj AJ

unread,
Sep 26, 2013, 8:16:05 PM9/26/13
to ganeti...@googlegroups.com
Greetings chaps. 

I have the ganeti web up and running on 0.10.2 version, and right now trying to include the VNC capability for console. 

So i ended up cloning the git repo to my /usr/local dir. 

Here is what my problem is - 

root@exec01:/usr/local/twisted_vncauthproxy# ls
COPYING  LICENSE  MANIFEST.in  README.mkd  setup.py  twisted  vncap

root@exec01:/usr/local/twisted_vncauthproxy# twistd --pidfile=/tmp/proxy.pid -n vncap
Traceback (most recent call last):
  File "/usr/bin/twistd", line 14, in <module>
    run()
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 652, in run
    runApp(config)
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
    _SomeApplicationRunner(config).run()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 386, in run
    self.application = self.createOrGetApplication()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 446, in createOrGetApplication
    ser = plg.makeService(self.config.subOptions)
  File "/usr/local/twisted_vncauthproxy/twisted/plugins/vncap_proxy.py", line 27, in makeService
    from vncap.control import ControlFactory
  File "/usr/local/twisted_vncauthproxy/vncap/control.py", line 10, in <module>
    from txws import WebSocketFactory
ImportError: No module named txws


since this is production environment, i did export the PYTHONPATH variable to "." from the folder. 

root@exec01:/usr/local/twisted_vncauthproxy# printenv | grep PYTHON
PYTHONPATH=.
root@exec01:/usr/local/twisted_vncauthproxy#

I do believe i could export the variable to be PYTHONPATH=/usr/local/twisted_vncauthproxy/

Meanwhile, i havent been able to run the VNCauthproxy app yet. 


On the side note, i have also replaced localhost to my server FQDN in the settings.py under ganeti web manager. 


Hope someone can help me with this

Here is more info on the clone - 

root@exec01:/usr/local/twisted_vncauthproxy# git log
commit 3163a2ec77768dd14f986681bec4b9e5e8e4e2e3
Merge: 6bf5ad4 7032a0b
Author: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Date:   Wed Dec 19 15:11:22 2012 -0800

    Merge remote-tracking branch 'github/master'



AJ

Chance Zibolski

unread,
Sep 27, 2013, 2:48:07 PM9/27/13
to ganeti...@googlegroups.com
You need to use the virtualenv. In the root of the project, run
`source venv/bin/activate` and you'll notice your prompt change. Then
it shouldnt matter what directory your in, and the dependencies will
be available, so you can run twistd -n vncap and you'll be able to get
VNCAuthProxy running.
> --
> You received this message because you are subscribed to the Google Groups
> "ganeti-webmgr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ganeti-webmg...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Anuj AJ

unread,
Sep 27, 2013, 6:43:57 PM9/27/13
to ganeti...@googlegroups.com
Ahhh .. it works now .. problem was it wasnt clear where the python venv needed to be sourced. 
I should have realized that there was not venv folder under the clone of the VNCProxyauth app.

Both servers came up .. the vncap and flashpolicy .. 
Although i still have issue 

Each time i try to access console of a virtual machine from the web manager. It only responds back with >>>>>> "Must set host and port"

I see these ports are open 

tcp        0      0 *:843                   *:*                     LISTEN
and
tcp        0      0 localhost:8888          *:*                     LISTEN

I can telnet to port 843 from my laptop to the server. 

other ports are allowed as well at the moment. 

Any suggestion what that message is all about ??

Thanks
ANUJ

Chance Zibolski

unread,
Sep 29, 2013, 3:21:22 PM9/29/13
to ganeti...@googlegroups.com

Can you connect with a standalone vnc client? (not using the Web interface)

Message has been deleted

Chance Zibolski

unread,
Oct 4, 2013, 2:47:41 PM10/4/13
to ganeti...@googlegroups.com
You say that you don't see any ports in these ranges open. Could you
please provide a pastebin of the command + output your running to
determine this? Also, when you run the VNCAuthProxy, could you paste
the output of the command your using plus the output of it for that as
well?

On Thu, Oct 3, 2013 at 12:51 PM, Anuj AJ <anu...@outlook.com> wrote:
> Tried a couple of things ...
>
> Im using VNC viewer ..
>
> There is a setting to use VNC Proxy to connect to the server.
> For the test -
>
> I had both the vncap and flashpolicy running on the ganeti webmanager server
> ... say ip - 10.3.8.10
> Through the documentation i saw that the proxy should open a port from 7000
> - 8000 for vnc proxy.
>
> problem is i dont see any port between that range open. Other than 8000
> (since im using a web server on that port).
> On the second hand, for test im using http proxy connection ... does that
> need authentication ? I tried both with a user pass and with none. But no
> luck.
>
> Hope you can help
>
> AJ
Reply all
Reply to author
Forward
0 new messages