用xshell连接ssh在启动virt-manager时提示cannot open display,查询了需要开启X11图形界面转发。
首先配置服务器的sshd,重启服务
# vi /etc/ssh/sshd_config
X11Forwarding yes
# service sshd restart
然后在windows中安装Xserver 比如:xmanager 或者 Xming,这里选Xming
windows下的X server可以通过Xming软件来构建。
https://sourceforge.net/projects/xming/
再到xshell中设置X11转发,就可以成功开启virt-manager图形界面了。
+ 1.516388 BTC.NEXT - https://yandex.com/poll/enter/BXidu5Ewa8hnAFoFznqSi9?hs=48990e1fcac160e7d2fe6a0e521411e4& 2025/06/16 20:49
wrofdw
+ 1.758266 BTC.NEXT - https://graph.org/Payout-from-Blockchaincom-06-26?hs=48990e1fcac160e7d2fe6a0e521411e4& 2025/06/28 07:26
yysktp