Using Xshell to connect to a Linux host, using the Virt-manager command to invoke the KVM management interface, the results
[Email protected] ~]# Virt-manager Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager.py", Li NE 383, in <module> Main () File "/usr/share/virt-manager/virt-manager.py", line 286, in main raise Gtk_errorr Untimeerror:could not open Display
Using the Xclock command, the result
[Email protected] ~]# xclock error:can ' t open display:172.24.79.74:0.0
How to solve? As follows
First step: In the Xshell interface, use the shortcut key ALT + P; then select tunneling; then tick ForWord X11 connections to, tick Xmanager
The second step: in the Xmanager folder, open the "xmanager-passive" This software, open can, God horse do not do
Step three: Run the command you want to run in Xshell
These methods take effect in my environment, not necessarily in your environment
Xshell Virt-manager "runtimeerror:could not open display"