Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

[rhelv5-list] sudo virt-manager with ssh -X forwarding

Nikolas Lam

2008-02-15


Author LoginPost Reply
Just thought I'd share something with people who might have been
struggling with using sudo and virt-manager over ssh X forwarding.

If you've been using virt-manager, you've probably noticed it cannot
connect to another dom0 system (it's a feature scheduled to be enabled
in the future), so you need to run it locally. This means if you're not
at a local X console, you need to use, for example, X forwarding ( ssh
-X host.example.com) to run virt-manager.

If you have /usr/sbin in your $PATH and try to use sudo to run
virt-manager without specifying the full path, here's an example owhat
you'll see.

[user@(protected)
Password:
X11 connection rejected because of wrong authentication.
The application 'virt-manager.py' lost its connection to the display
localhost:10.0;
most likely the X server was shut down or you killed/destroyed
the application.
[user@(protected) ~]$


The solution (thanks to Didar from Red Hat Global Support Services) is
to use the full path to the command, i.e.

sudo /usr/sbin/virt-manager

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.