openxenmanager
openxenmanager copied to clipboard
Openxenmanager on Mac console not working
Openxenmanager on Mac console not working. It just has a blank screen area (screenshot attached). I installed vncviewer and updated my config file to that one and have the latest gtk+ on python 2.7.8.

I think I'm missing something, but not sure what. Any guidance would be helpful here. Whenever I click a button in the console, I get the following errors in my terminal:
"Send Ctrl-Alt-Del":
Traceback (most recent call last):
File "./src/OXM/window_vm.py", line 85, in on_btsendctraltdel_clicked
self.on_menuitem_tools_cad_activate(widget, data)
File "./src/OXM/window_menuitem.py", line 995, in on_menuitem_tools_cad_activate
self.tunnel.send_data("\xfe\x01\x00\x00\x00\x00\x00\x1d")
File "./src/OXM/tunnel.py", line 109, in send_data
self.server_fd.send(data)
AttributeError: 'NoneType' object has no attribute 'send'
"Copy selected text":
Traceback (most recent call last):
File "./src/OXM/window_vm.py", line 115, in on_btcopytext_clicked
clipboard = self.vnc.get_clipboard(gtk.gdk.SELECTION_CLIPBOARD)
AttributeError: oxcWindow instance has no attribute 'vnc'
"Enter fullscreen": (This does open it in a new window, but nothing is in it)
Traceback (most recent call last):
File "./src/OXM/window_vm.py", line 150, in on_btenterfullscreen_clicked
self.builder.get_object("console_area").remove(self.vnc)
AttributeError: oxcWindow instance has no attribute 'vnc'
"Undock":(This does open it in a new window, but nothing is in it)
Traceback (most recent call last):
File "./src/OXM/window_vm.py", line 132, in on_btundockconsole_clicked
self.builder.get_object("console_area").remove(self.vnc)
AttributeError: oxcWindow instance has no attribute 'vnc'
Thanks for the report. Console suport on both Windows and Mac is rather flakey as OpenXenManager currently has to launch an ouside VNC viewer.
I've been able to test Windows okay... but not Mac as I don't have one... Hopefully you might be able to help point me in the right direction!
Currently we open vncviewer using the following:
elif sys.platform == "darwin":
# Run ./vncviewer with host, vm renf and session ref
self.tunnel = Tunnel(self.xc_servers[host].session_uuid, location)
port = self.tunnel.get_free_port()
Thread(target=self.tunnel.listen, args=(port,)).start()
time.sleep(1)
os.spawnl(os.P_NOWAIT, "./vncviewer", "vncviewer", "localhost::%s" % port)
console_area = self.builder.get_object("console_area")
console_alloc = console_area.get_allocation()
I suspect the error may lay in the os.spawnl line, possibly the second parameter which based upon my Linux experience is looking for vncviewer in the same directory e.g: ./
Hopefully you might be able to give me some pointers on how vncviewer is launched on Mac from a terminal
As for the buttons, I'm aware there are some major problems with these... and they are on the to-do list!
Daniel,
Thanks for replying. No problem about the buttons, I just waned to give you more information if it helps.
I'm using a command line executable : /usr/local/bin/vncviewer
In options, I have: [options] vnc_viewer = '/usr/local/bin/vncviewer'
When I run it, I get the attached screenshot.
The command lines for vncviewer are:
TigerVNC Viewer 64-bit v1.3.1 (20141016) Built on Oct 16 2014 at 11:36:23 Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt) See http://www.tigervnc.org for information on TigerVNC.
usage: ./vncviewer [parameters] [host:displayNum] [parameters] ./vncviewer [parameters] -listen [port] [parameters]
Parameters can be turned on with - or off with -=0
Parameters which take a value can be specified as -
Global Parameters:
ZlibLevel - Zlib compression level (default=-1)
Log - Specifies which log output should be directed to which
target logger, and the level of output to log. Format is
Let me know if I can provide anything else to help.
Manish
On Oct 16, 2014, at 12:16 PM, Daniel Lintott [email protected] wrote:
Thanks for the report. Console suport on both Windows and Mac is rather flakey as OpenXenManager currently has to launch an ouside VNC viewer.
I've been able to test Windows okay... but not Mac as I don't have one... Hopefully you might be able to help point me in the right direction!
Currently we open vncviewer using the following:
elif sys.platform == "darwin": # Run ./vncviewer with host, vm renf and session ref self.tunnel = Tunnel(self.xc_servers[host].session_uuid, location) port = self.tunnel.get_free_port() Thread(target=self.tunnel.listen, args=(port,)).start() time.sleep(1) os.spawnl(os.P_NOWAIT, "./vncviewer", "vncviewer", "localhost::%s" % port) console_area = self.builder.get_object("console_area") console_alloc = console_area.get_allocation() I suspect the error may lay in the os.spawnl line, possibly the second parameter which based upon my Linux experience is looking for vncviewer in the same directory e.g: ./
Hopefully you might be able to give me some pointers on how vncviewer is launched on Mac from a terminal
As for the buttons, I'm aware there are some major problems with these... and they are on the to-do list!
— Reply to this email directly or view it on GitHub.
One more note - I ended up linking /usr/local/bin/vncviewer to my directory where openxenmanager resides.
Now it gives me this when I click on console, but nothing still displays.
TigerVNC Viewer 64-bit v1.3.1 (20141016) Built on Oct 16 2014 at 11:36:23 Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt) See http://www.tigervnc.org for information on TigerVNC.
Thu Oct 16 12:25:02 2014 CConn: connected to host localhost port 56851
:)
On Oct 16, 2014, at 12:16 PM, Daniel Lintott [email protected] wrote:
Thanks for the report. Console suport on both Windows and Mac is rather flakey as OpenXenManager currently has to launch an ouside VNC viewer.
I've been able to test Windows okay... but not Mac as I don't have one... Hopefully you might be able to help point me in the right direction!
Currently we open vncviewer using the following:
elif sys.platform == "darwin": # Run ./vncviewer with host, vm renf and session ref self.tunnel = Tunnel(self.xc_servers[host].session_uuid, location) port = self.tunnel.get_free_port() Thread(target=self.tunnel.listen, args=(port,)).start() time.sleep(1) os.spawnl(os.P_NOWAIT, "./vncviewer", "vncviewer", "localhost::%s" % port) console_area = self.builder.get_object("console_area") console_alloc = console_area.get_allocation() I suspect the error may lay in the os.spawnl line, possibly the second parameter which based upon my Linux experience is looking for vncviewer in the same directory e.g: ./
Hopefully you might be able to give me some pointers on how vncviewer is launched on Mac from a terminal
As for the buttons, I'm aware there are some major problems with these... and they are on the to-do list!
— Reply to this email directly or view it on GitHub.
Okay... I've just made a small edit so that it'll read the vnc_viewer variable on Mac now.
I shall have to take more of a look into why the console isn't actually displaying
One more note - I ended up linking /usr/local/bin/vncviewer to my directory where openxenmanager resides.
Now it gives me this when I click on console, but nothing stil
TigerVNC Viewer 64-bit v1.3.1 (20141016) Built on Oct 16 2014 at 11:36:23 Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt) See http://www.tigervnc.org for information on TigerVNC.
Thu Oct 16 12:25:02 2014 CConn: connected to host localhost port 56851
:)
Thanks Daniel.
When do you think you would be able to look at it? I'm somewhat dependent on this to set up my servers.
On Oct 16, 2014, at 12:31 PM, Daniel Lintott [email protected] wrote:
Okay... I've just made a small edit so that it'll read the vnc_viewer variable on Mac now.
I shall have to take more of a look into why the console isn't actually displaying
— Reply to this email directly or view it on GitHub.
I shall endevour to look into it in the next few days
Cool.
On Thu, Oct 16, 2014 at 2:22 PM, Daniel Lintott [email protected] wrote:
I shall endevour to look into it in the next few days
— Reply to this email directly or view it on GitHub https://github.com/OpenXenManager/openxenmanager/issues/45#issuecomment-59406463 .
Another item I tried is I loaded Ubuntu 14.04 into Virtualbox and tried it on there. I'm seeing the same issue as well where the console does not display anything.
On Oct 16, 2014, at 2:22 PM, Manish Shah [email protected] wrote:
Cool.
On Thu, Oct 16, 2014 at 2:22 PM, Daniel Lintott [email protected] wrote: I shall endevour to look into it in the next few days
— Reply to this email directly or view it on GitHub.
When I click on the console tab I get:
Traceback (most recent call last):
File "./src/OXM/window.py", line 1023, in on_tabbox_focus_tab
viewer = self.config['options']['vnc_viewer']
File "/usr/local/lib/python2.7/site-packages/configobj.py", line 554, in __getitem__
val = dict.__getitem__(self, key)
KeyError: 'options'
Which config file am I supposed to edit? The one in src/OXM/oxc.conf? I tried setting it /usr/local/bin/vncviewer made no difference
The correct file to edit will be in ~/openxenmanager/oxc.conf
I created the directory ~/openxenmanager and created a file oxc.conf in that location with the contents of:
[options]
vnc_viewer = '/usr/local/bin/vncviewer'
However, I still get the error above
Hmm... That's odd! I have started adding some debugging code, that will hopefully help solve this issue
@craigcarnell the config file on Mac OS X is actually ~/.config/openxenmanager/oxc.conf. I was able to get this working after setting the path to vncviewer in that config.
@mcm correct. But if anyone still has any dudes, follow my tutorial (https://github.com/OpenXenManager/openxenmanager/issues/107) or feel free to make a question to me here.
Running iMac HighSierra v10.13.6
Getting the following when trying to access the console of a VM
Built on: 2019-05-09 12:32
Copyright (C) 1999-2015 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Thu May 9 12:46:57 2019
CConn: connected to host localhost port 51011
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/site-packages/openxenmanager-0.1b1-py2.7.egg/OXM/tunnel.py", line 51, in listen
data = self.server_fd.recv(17)
error: [Errno 54] Connection reset by peer```