Run this command to report the following error:
I am using the xshell tool to link the server:
# virt-manager
X11 connection rejected because of wrong authentication.
Traceback (most recent call last ):
File "/usr/share/virt-Manager/virt-manager.py", line 383, in <module>
Main ()
File "/usr/share/virt-Manager/virt-manager.py", line 286, in Main
Raise gtk_error
Runtimeerror: cocould not open display
Solution:
Install Yum groupinstall virtualization "virtualization client"
Install Yum install libvirt
Check whether the forwarding function is enabled for X11!
# grep X11Forwarding –color /etc/ssh/sshd_config#X11Forwarding noX11Forwarding yes# X11Forwarding no
Check whether these packages are installed!
# rpm -qa | grep xorg-x11xorg-x11-xauth-1.0.2-7.1.el6.x86_64xorg-x11-xinit-1.0.9-14.el6.x86_64xorg-x11-server-utils-7.5-13.el6.x86_64xorg-x11-font-utils-7.2-11.el6.x86_64xorg-x11-drv-ati-firmware-7.1.0-3.el6.noarch
Check whether $ display has any parameters. If not, manually add one!
# Echo $ display if the returned result is empty, it indicates that the display # display = $ yourserver_ip write Server IP address is not set! # Export display # echo $ displaylocalhost: 10.0
Run again. The result is as follows!
# virt-manager
Xlib: extension "randroid" missing on display "localhost: 10.0 ".
This article is from the "Siberian wolf" blog, please be sure to keep this source http://kernal.blog.51cto.com/8136890/1530223