when i run "virt-manager" it gives "RuntimeError: could not open display"

Solution Verified - Updated -

Issue

  • when i run virt-manager from a putty console from  a windows machine  it gives "RuntimeError: could not open display".

    [root@localhost ~]# 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

Environment

  • Red Hat enterprise Linux 5.4

  • XEN Virtualization

  • Virt-Manager

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.