View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2365 Location: Kentucky
|
Posted: Sat Dec 13, 2014 1:46 am Post subject: HELP - virt-manager: Unable to connect to libvirt |
|
|
After updating libvirtd and virt-manager (among a bunch of other things), I can no longer connect virt-manager to libvirtd. This renders a bunch of virtual machines totally useless.
I get the following message in a pop-up:
Code: |
Unable to connect to libvirt.
'module' object has no attribute 'VIR_CRED_AUTHNAME'
|
It also says:
Code: |
Unable to connect to libvirt.
'module' object has no attribute 'VIR_CRED_AUTHNAME'
Libvirt URI is: qemu:///system
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 1002, in _open_thread
self.vmm = self._try_open()
File "/usr/share/virt-manager/virtManager/connection.py", line 980, in _try_open
[[libvirt.VIR_CRED_AUTHNAME,
AttributeError: 'module' object has no attribute 'VIR_CRED_AUTHNAME'
|
Everything was working fine until the last update.
I do seem to remember the emerge showing something about libvirtd or virt-manager and a socket or something, but it scrolled off the screen and is now gone.
Anybody know how to fix this? _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Sat Dec 13, 2014 5:54 am Post subject: |
|
|
Ouch, looks like a lot of people are running into a similar problem, probably need to file a bug on bugs.gentoo.org:
https://forums.gentoo.org/viewtopic-t-1006150-highlight-.html
(I saw both variants of VIR_CRED_AUTHNAME and VIR_DOMAIN_BLOCKED while messing with it... odd.)
I'm always worried about upgrading qemu / libvirt now, just in case it kills my virtual server... A lot of dependencies: the virtual server, and the underlying VM host... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Mon Dec 15, 2014 2:48 pm Post subject: |
|
|
Heh - same here at a newly amd64-hardened : Code: | Error starting Virtual Machine Manager: 'module' object has no attribute 'VIR_DOMAIN_BLOCKED'
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager", line 274, in <module>
main()
File "/usr/share/virt-manager/virt-manager", line 226, in main
from virtManager.engine import vmmEngine
File "/usr/share/virt-manager/virtManager/engine.py", line 36, in <module>
from virtManager.clone import vmmCloneVM
File "/usr/share/virt-manager/virtManager/clone.py", line 30, in <module>
from virtManager.storagebrowse import vmmStorageBrowser
File "/usr/share/virt-manager/virtManager/storagebrowse.py", line 26, in <module>
from virtManager import host
File "/usr/share/virt-manager/virtManager/host.py", line 33, in <module>
from virtManager.connection import vmmConnection
File "/usr/share/virt-manager/virtManager/connection.py", line 38, in <module>
from virtManager.domain import vmmDomain
File "/usr/share/virt-manager/virtManager/domain.py", line 41, in <module>
libvirt.VIR_DOMAIN_BLOCKED: "state_running",
AttributeError: 'module' object has no attribute 'VIR_DOMAIN_BLOCKED'
| app-emulation/virt-manager-1.1.0 + app-emulation/libvirt-1.2.10-r2
Update[/b]: upgrading to app-emulation/libvirt-1.2.11 doesn't help |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Mon Dec 15, 2014 9:31 pm Post subject: |
|
|
well, update to dev-python/libvirt-python-1.2.11 is necessary, although the next issue is then : Code: | 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 968, in _open_thread
self._backend.open(self._do_creds_password)
File "/usr/share/virt-manager/virtinst/connection.py", line 158, in open
open_flags)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 105, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory |
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9677 Location: almost Mile High in the USA
|
Posted: Tue Dec 16, 2014 12:12 am Post subject: |
|
|
A bit pedantic here, after rebuilding both libvirt and libvirt-python (probably libvirt-python first, then libvirt again), did you restart libvirtd (/etc/init.d/libvirtd restart or systemctl restart libvirtd) and did it successfully start? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Tue Dec 16, 2014 8:46 am Post subject: |
|
|
eccerr0r wrote: | A bit pedantic here, after rebuilding both libvirt and libvirt-python (probably libvirt-python first, then libvirt again), did you restart libvirtd (/etc/init.d/libvirtd restart or systemctl restart libvirtd) and did it successfully start? | no -it is not pedantic - and yes, I restarted libvirtd.
Still no luck to connect to it still now.
my fault:, there was a file /etc/libvirt/qemu, whereas the new libvirtd expected a directory instead : Code: | # /usr/sbin/libvirtd
2014-12-17 21:20:20.765+0000: 4158: info : libvirt version: 1.2.11
2014-12-17 21:20:20.765+0000: 4158: error : virFirewallValidateBackend:195 : direct firewall backend requested, but /sbin/ip6tables is not available: No such file or directory
2014-12-17 21:20:20.765+0000: 4158: error : virFirewallApply:944 : out of memory
2014-12-17 21:20:20.832+0000: 4158: error : virDomainObjListLoadAllConfigs:20144 : Failed to open dir '/etc/libvirt/qemu': Not a directory
2014-12-17 21:20:20.832+0000: 4158: error : virStateInitialize:748 : Initialization of QEMU state driver failed: Failed to open dir '/etc/libvirt/qemu': Not a directory
2014-12-17 21:20:20.832+0000: 4158: error : daemonRunStateInit:921 : Driver state initialization failed
| solved in https://bugs.gentoo.org/show_bug.cgi?id=532892
Last edited by toralf on Thu Dec 18, 2014 10:41 pm; edited 1 time in total |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
|
Back to top |
|
|
Moriah Advocate
Joined: 27 Mar 2004 Posts: 2365 Location: Kentucky
|
Posted: Sat Jan 03, 2015 10:12 pm Post subject: |
|
|
I forget how I resolved this, probably just re-emerged sync and then re-emerged the package and it started working. Anyway, its working now. _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|