At the risk of suggesting an obvious solution, why not run virt-manager via kdesu? I always log in remotely as a normal user and then use su for any admin tasks.
Best wishes
Andrew Foulsham
Powered by Intellisync
From: PGNet
Date: 26/01/09 22:35
To: opensuse-virtual@opensuse.org
Subject: [opensuse-virtual] How to use virt-manager as non-root? (VirtPolicyKit?)
I'm connecting to a remote Opensuse 11.1 box remotely, using nxclient.
Using VNC (now disable), I was able to login as root and run @KDE4,
virt-manager without problem.
xn does not permit root login, so i'm logged in as a normal user.
unfortunately, @ virt-manager launch, I get a dialog:
Unable to open a connection to the Xen hypervisor/daemon.
Verify that:
- A Xen host kernel was booted
- The Xen service has been started
Detail:
Unable to open connection to hypervisor URI 'xen:///':
unable to connect to
'/var/run/libvirt/libvirt-sock': Connection ref
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line
325, in _open_thread
self.vmm = libvirt.openReadOnly(self.uri)
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 149, in
openReadOnly
if ret is None:raise libvirtError('virConnectOpenReadOnly() failed')
libvirtError: unable to connect to '/var/run/libvirt/libvirt-sock':
Connection refused
digging, I find @
http://fedoraproject.org/wiki/Features/VirtPolicyKit
"The virt-manager application currently runs as root when managing a
local hypervisor. It uses console-helper to authentication from a
desktop session. Running GTK applications as root is evil. By
integrating with PolicyKit it will be possible to run virt-manager as
a regular user"
Obviously, for Fedora9. Does this apply for Opensuse 11.1, as well?
I'm reading thru the referenced,
http://libvirt.org/auth.html
Is this the right approach under OS 11.1?
Thanks.
--
To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-virtual+help@opensuse.org
--
To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-virtual+help@opensuse.org