<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>Re Santanu's post:<br><br><blockquote><font color="#000000">Hi there,</font><br><font color="#000000">
</font><br><font color="#000000">
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:</font><br></blockquote><font color="#000000">

<blockquote>
  <pre>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
</pre>
</blockquote></font><br>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.<br><br>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.<br><br>- Ian<br><br></div></body></html>