zsy001 发表于 2019-1-27 13:54:24

xshell virt

  使用xshell连接到linux主机,使用virt-manager命令调用kvm的管理界面,结果
# virt-manager
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager.py", line 383, in
    main()
File "/usr/share/virt-manager/virt-manager.py", line 286, in main
    raise gtk_error
RuntimeError: could not open display  

  使用xclock命令,结果
# xclock
Error: Can't open display: 172.24.79.74:0.0  

  怎么解决?如下
  第一步:在xshell界面,使用快捷键ALT + P;接着选择Tunneling;接着勾选Forword X11 connections to,勾选Xmanager
  第二步:在Xmanager目录夹中,打开“Xmanager - Passive”这个软件,打开即可,神马都不要做
  第三步:在xshell中运行你要运行的命令即可
  

  以上方法在我的环境中生效,不一定在你的环境中生效
  




页: [1]
查看完整版本: xshell virt