How to use virt-manager on Windows and Mac

Install virt-manager on KVM server

1
# yum install virt-manager

Use Putty and Xming on Windows

Step 1 - Download putty and Xming

Step 2 - Configure X11 forwarding in Putty

Connection –> SSH –> X11

  • Enable X11 forwarding
  • Set the X display location to localhost:0.0

Step 3 - Test the connection

1
2
[root@localhost ~]# echo $DISPLAY
localhost:10.0

Step 4 - Run virt-manager

1
# virt-manager

Use cmd.exe and Xming on Windows 10

1
2
3
4
C:\Users\Daniel>set DISPLAY=localhost:0.0
C:\Users\Daniel>mkdir \dev
C:\Users\Daniel>echo x > \dev\tty
C:\Users\Daniel>ssh -Y <user>@<hostname>

Use XQuartz on MacOS

Step 1 - Download XQuartz

Step 2 - Log in on KVM server with Terminal

1
# ssh -X <user>@<hostname>