| Summary: | Unable to connect to libvirt: F17-Branched | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Frank Murphy <frankly3d> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | berrange, clalancette, crobinso, dougsland, itamar, jforbes, laine, libvirt-maint, veillard, virt-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-13 14:15:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Frank Murphy
2012-02-12 09:06:04 UTC
/etc/libvirtd.conf As a result of Google "libvirt-sock" # This is enabled by default, uncomment this to disable it listen_tls = 0 No difference to missing sock. Solution given on mailing list. Needed avahi-daemon running. Spoke too soon: libvirt wont start on boot. due to dependency on avahi. There doesn't appear to be an avahi.target libvirtd.service After=avahi.target After=dbus.target Just avahi-daemon.service, avahi-daemon.socket Similar for dbus Maybe these need to be changed to relevant *.service Avahi won't start due to: ]# /usr/sbin/avahi-daemon Found user 'avahi' (UID 70) and group 'avahi' (GID 70). Successfully dropped root privileges. avahi-daemon 0.6.30 starting up. dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory WARNING: Failed to contact D-Bus daemon. avahi-daemon 0.6.30 exiting. avahi-daemon.service shows pre=/usr/sbin/avahi-daemon -s but running that shows nothing, and does nothing. Going by systemctl status avahi-daemon.service Am available for more testing. I think there were some patches upstream about avahi deps, Laine probably has more info 1: enable dbus.service
2. enable avahi-daemon.service
3. start libvirtd.service
on command line:
systemctl status libvirtd.service
libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
Active: active (running) since Mon, 13 Feb 2012 14:07:21 +0000; 18s ago
Main PID: 1830 (libvirtd)
CGroup: name=systemd:/system/libvirtd.service
├ 1830 /usr/sbin/libvirtd
└ 1935 /sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --ex...
Feb 13 14:07:23 testvm libvirtd[1830]: 2012-02-13 14:07:23.694+0000: 1841: error : virCommandWait:2308 : internal error Child proce...ebtables
Feb 13 14:07:23 testvm libvirtd[1830]: cmd='$EBT -t nat -L'
Feb 13 14:07:23 testvm libvirtd[1830]: eval res=\$\("${cmd} 2>&1"\)
Feb 13 14:07:23 testvm libvirtd[1830]: if [ $? -ne 0 ]; then echo "Failure to execute command '${cmd}' : '${res}'."; exit 1;fi
Feb 13 14:07:23 testvm libvirtd[1830]: ) status unexpected: exit status 1
Feb 13 14:07:23 testvm libvirtd[1830]: 2012-02-13 14:07:23.773+0000: 1841: error : virCommandWait:2308 : internal error Child proce...p6tables
Feb 13 14:07:23 testvm libvirtd[1830]: cmd='$IPT -n -L FORWARD'
Feb 13 14:07:23 testvm libvirtd[1830]: eval res=\$\("${cmd} 2>&1"\)
Feb 13 14:07:23 testvm libvirtd[1830]: if [ $? -ne 0 ]; then echo "Failure to execute command '${cmd}' : '${res}'."; exit 1;fi
Feb 13 14:07:23 testvm libvirtd[1830]: ) status unexpected: exit status 1
in virt-manager window:
Unable to connect to libvirt:
authentication failed: Not authorized.
Could not detect a local session: if you are
running virt-manager over ssh -X or VNC, you
may not be able to connect to libvirt as a
regular user. Try running as root.
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/lib64/python2.7/site-packages/libvirt.py", line 102, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: authentication failed: Not authorized.
But it should let me in due to:
/var/lib/polkit-1/localauthority/50-local.d/virt-manager.pkl
[Local virt-manager Permissions]
Identity=unix-user:frank
Action=org.libvirt.unix.*
ResultAny=no
ResultInactive=no
ResultActive=yes
Frank, that's a separate issue, please file a different bug. (In reply to comment #6) > Frank, that's a separate issue, please file a different bug. Apologies, just saw it from here. |