virt-manager can not start due to missing permissions

Bug #985625 reported by holzkeil
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
community.linuxmint.com
Invalid
Undecided
Unassigned

Bug Description

using LMDE 1204 RC stock sources

trying to start virt-manager
after getting rid of https://bugs.launchpad.net/community.linuxmint.com/+bug/985567

another error window shows

Unable to connect to libvirt.

Verify that the 'libvirtd' daemon is running.

Details
####################################
####################################
Unable to connect to libvirt.

Verify that the 'libvirtd' daemon is running.

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1185, in _open_thread
    self.vmm = self._try_open()
  File "/usr/share/virt-manager/virtManager/connection.py", line 1167, in _try_open
    flags)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
    if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Keine Berechtigung
####################################
####################################

editing /etc/libvirt/libvirtd.conf
i relaxed the permissions to "0777"
i did not change anything with policykit (/etc/polkit-1)

# Set the UNIX socket permissions for the R/W socket. This is used
# for full management of VMs
#
# Default allows only root. If PolicyKit is enabled on the socket,
# the default will change to allow everyone (eg, 0777)
#
# If not using PolicyKit and setting group ownership for access
# control then you may want to relax this to:
unix_sock_rw_perms = "0777"
#unix_sock_rw_perms = "0770"

i did not change anything with policykit (/etc/polkit-1)

after that a
/etc/init.d/libvirt-bin restart

and connecting was successful

maybe this isn't the right way, but is has solved the issue for now

Revision history for this message
Oskar Wallgren (oskar.wallgren) wrote :

Hi!

I'm glad you could make this run 'but'... This is the bugtracker for the community.linuxmint.com sites software.
I believe yours is a support case and I invite you to bring up those and other questions you might have on the Mint Forum:
http://forums.linuxmint.com/index.php

"after getting rid of https://bugs.launchpad.net/community.linuxmint.com/+bug/985567"
The same is true for this bug. I close both of them as invalid.

:-)

Changed in community.linuxmint.com:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.