kvm图形界面 virt-manage 报错

virt-manage

问题描述:
使用xshell软件连接服务器,执行virt-manager报错:
# virt-manager
Unable to initialize GTK: could not open display




1.首先查看本机sshd是否开启X11转发
# grep X11Forwarding /etc/ssh/sshd_config
#X11Forwarding no
X11Forwarding yes
#       X11Forwarding no
2.检查xorg-x11是否安装
# 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
3.如果没有安装,则安装软件包
[root@192-168-167-52 ~]# 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




yum groupinstall “Desktop” “Desktop Platform” “X Windows System” “Fonts”


 安装xmanage5 ,在xshell端设置,



在centos上 export DISPLAY=映射主机ip:0.0,前提检查和安装如下:

发布了39 篇原创文章 · 获赞 7 · 访问量 4万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章