RE: [opensuse-virtual] How to use virt-manager as non-root? (VirtPolicyKit?)
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 <pgnet.trash+osvm@gmail.com> Date: 26/01/09 22:35 To: opensuse-virtual@opensuse.org <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:///': <class 'libvirt.libvirtError'> 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
hi, On Tue, Jan 27, 2009 at 1:24 AM, Andrew Foulsham <andrew.foulsham@imm.ox.ac.uk> wrote:
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.
yes, kdesu -c "/usr/bin/virt-manager -c xen:///" works. as for reasons, in our case, -- it's supposed to work" as non-root with PolicyKit -- the usual discouragement about running as root -- not all virt-manager users are going to be given root access -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
kdesu/gnomesu and VNC are all excellent options. I haven't tried PolicyKit, but I wouldn't expect it to work completely. virt-manager on OpenSuSE has dependencies on systems that are not PolicyKit aware. vm-install, for instance, forces the user to log in as root. I'm also not sure how well some of the resource management pieces are integrated with PolicyKit. I think the "su" and VNC options are your best bet. -- To unsubscribe, e-mail: opensuse-virtual+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-virtual+help@opensuse.org
participants (3)
-
Andrew Foulsham
-
Doug Merrill
-
PGNet