mobaXterm上对openEuler系统执行virt-manger,虚拟机管理界面报错

报错现象如下:

pot@localhost ssh] Unable to init server:无法连接:拒绝连接
able to init server: 无法连接:拒绝连接
able to init server: 无法连接:拒绝连接

virt-manager 4536):Gtk-WARNING **17:08:06.429:cannot open display:

解决方案

安装xorg-x11-xauth包

sshd_config最后添加如下行

AddressFamily inet
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
3 个赞

一定要在安装完成xorg-x11-xauth包的前提下,修改才有用

1 个赞

修改后执行virt-manager还是无法连接,还有什么办法解决吗
[root@master-1 ~]# virt-manager
[root@master-1 ~]# Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(virt-manager:4814): Gtk-WARNING **: 12:40:49.068: cannot open display:

你好,这个有解决办法了吗

连接软件也要开启x11转发