First, some background:
We have a number of large hosts which run KVM for virtual machines. All these machines are remote, as in more than 1000 miles away. The host systems all run Redhat 5.6. We access our systems remotely using putty.
The problem is in how to run virt-manager remotely, easily.
First, install putty. You can download it here
Second, install Xming locally; you can download it here. You can either use the included plink.exe or install putty. plink.exe is a console program, so we install putty on all our systems, and those which need, install Xming.
Finally, when you start putty, before you start the putty session, go into the Connection->SSH->X11 options and enable X11 forwarding
In order to for virt-manager to be able to access the libvirt management daemon, it has to have root permissions. We do with using sudo, and use the following alias to both set up the xauth permissions and run the virt-manager:
alias vmanager='xauth list | while read line; do sudo -i xauth add $line; done; sudo -i virt-manager'
Once this alias is set, all you need to do is type:
and the virt-manager will start. If necessary, sudo will ask you for your password. It will then set up the xauth list and start virt-manager.