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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章