The virt-manager displays "Gtk couldn't be initialized"
16,017
Use:
ssh -vv -X x.x.x.x
If it appears:
debug1: Remote: No xauth program; cannot forward with spoofing.
then, try with:
yum install xauth
(install it on virtual host).
Related videos on Youtube
Author by
Nan Xiao
Updated on September 18, 2022Comments
-
Nan Xiao over 1 year
I am running the
virt-manager
onRHEL 7.0
, but it always display "Gtk couldn't be initialized
":[root@dhb5 ~]# virt-manager --debug --nofork 2015-08-17 03:21:09,895 (cliutils:75): virt-manager startup 2015-08-17 03:21:09,895 (virt-manager:201): Launched as: ['/usr/share/virt-manager/virt-manager', '--debug', '--nofork'] 2015-08-17 03:21:09,896 (virt-manager:202): virt-manager version: 0.10.0 2015-08-17 03:21:09,896 (virt-manager:203): virtManager import: <module 'virtManager' from '/usr/share/virt-manager/virtManager/__init__.pyc'> ** (virt-manager:10141): WARNING **: Could not open X display 2015-08-17 03:21:09,957 (virt-manager:246): Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager", line 233, in main Gtk.Window() File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 416, in __init__ raise RuntimeError("Gtk couldn't be initialized") RuntimeError: Gtk couldn't be initialized Gtk couldn't be initialized
And the
X11
related configuration in/etc/ssh/sshd_config
is like this:[root@dhb5 ~]# grep -i x11 /etc/ssh/sshd_config X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes
I try to google many posts, and can't find the answer for my question. Could anyone can give some clues on this issue?
-
MariusMatutiae over 8 yearsvirt-manager:10141: WARNING : Could not open X display: you do not have an X display on which to open virt-manager.
-