问题:
[[email protected] ~]# virt-manager 
Unable to initialize GTK: could not open display



首先检查sshd的X11转发是否开启.
[[email protected] ~]# grep X11Forwarding /etc/ssh/sshd_config 
#X11Forwarding no
X11Forwarding yes
#       X11Forwarding no
检查xorg
[[email protected] ~]# rpm -qa |grep xorg      
xorg-x11-font-utils-7.2-11.el6.x86_64
xorg-x11-drv-ati-firmware-7.5.99-3.el6.noarch

安装软件包
[[email protected] ~]# yum install -y xorg-x11-font-utils.x86_64 xorg-x11-server-utils.x86_64 xorg-x11-utils.x86_64 xorg-x11-xauth.x86_64 xorg-x11-xinit.x86_64

secureCRT中启用X转发
virt-manager x转发问题
开启后会自动export一个DISPLAY的变量
[[email protected] ~]# echo $DISPLAY
localhost:10.0


接下来就可以使用图形转发了
[[email protected] ~]# virt-manager 
Gtk-Message: Failed to load module "pk-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"
virt-manager x转发问题
Gtk-Message: Failed to load module "pk-gtk-module"
使用yum install  libpk-gtk-module.so

相关文章:

  • 2022-12-23
  • 2022-01-20
  • 2021-12-08
  • 2021-11-30
  • 2021-04-02
  • 2021-12-08
  • 2021-05-11
  • 2021-05-06
猜你喜欢
  • 2022-12-23
  • 2021-06-21
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案