[virt-tools-list] virt-manager can't open display

Ian Soffe isoffe at oss-group.co.nz
Sun Dec 22 22:40:52 UTC 2013


Re Santanu's post: 



Hi there, 

Just installed KVM on my server without any xwindows system. Then ssh onto the server (with X11Forward on) and found virt-manager can't open display when I issue the command: 



<blockquote>
santanu pcge:~$ ssh -X root vmw01
root vmw01's password: 
Last login: Mon Nov  8 15:51:39 2010 from pcge
[root vmw01 ~]# virt-manager 
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 376, in ?
    _show_startup_error(str(run_e), "".join(traceback.format_exc()))
  File "/usr/share/virt-manager/virt-manager.py", line 52, in _show_startup_error
    import gtk
  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 76, in ?
    _init()
  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init
    _gtk.init_check()
RuntimeError: could not open display 
</blockquote>

I'm a bit rusty on my X, despite setting my DISPLAY variable I got the same error, I think my display is firewalled from the server in question. 

However, I'm using putty / ssh to acces sthe server, and if I turn on X11 forwarding, my env variable is auto-set to a correct value, and I get the X output on my PC's xterm display. 

- Ian 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20131223/0f4b0606/attachment.htm>


More information about the virt-tools-list mailing list