# virt-manager:Unable to connect to libvirt

**URL:** <https://forums.suse.com/t/virt-manager-unable-to-connect-to-libvirt/23148>\
**Category:** SLES Virtualization\
**Created:** [September 29, 2012, 6:44am UTC](https://forums.suse.com/t/virt-manager-unable-to-connect-to-libvirt/23148 "2012-09-29T06:44:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fangtuo90](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fangtuo90](https://forums.suse.com/u/fangtuo90)\
**Post date:** [September 29, 2012, 6:44am UTC](https://forums.suse.com/t/virt-manager-unable-to-connect-to-libvirt/23148/1 "2012-09-29T06:44:35Z")

</div>

[SIZE=3]hello,everybody. Recently I installed the latest suse 12.2 on my dell optiplex 390. After I install the xen part and bulid virtual machine on two exactly same machine, I try to connect the other one with virt-manager in YaST, and the error “Unable to connect to libvirt” appears, the details are as below:  
[/SIZE][SIZE=2][SIZE=2]Unable to connect to libvirt.

authentication failed: polkit\56retains\_authorization\_after\_challenge=1  
Authorization requires authentication but no agent is available.

Verify that the ‘libvirtd’ daemon is running  
on the remote host.

Details:  
Unable to connect to libvirt.

authentication failed: polkit\56retains\_authorization\_after\_challenge=1  
Authorization requires authentication but no agent is available.

Verify that the ‘libvirtd’ daemon is running  
on the remote host.

Libvirt URI is: xen+ssh://elab2@192.168.0.66/

Traceback (most recent call last):  
File “/usr/share/virt-manager/virtManager/connection.py”, line 1027, in \_open\_thread  
self.vmm = self.\_try\_open()  
File “/usr/share/virt-manager/virtManager/connection.py”, line 1009, in \_try\_open  
flags)  
File “/usr/lib64/python2.7/site-packages/libvirt.py”, line 102, in openAuth

[/SIZE][SIZE=3]Above is under the condition that libvirtd.conf been all commented. Libvirtd service is running. VNC is enabled. rsa\_keys is copied. Googled many results, but none solved my problem. Anybody met such a question? Please share your wisdom with me, thanks.

[/SIZE][/SIZE][SIZE=3]Plus, When try to start virt-manager in console, the result is as below:  
[/SIZE]\*\* (virt-manager:7835): WARNING \*\*: Trying to register gtype ‘GMountMountFlags’ as enum when in fact it is of type ‘GFlags’

\*\* (virt-manager:7835): WARNING \*\*: Trying to register gtype ‘GDriveStartFlags’ as enum when in fact it is of type ‘GFlags’

\*\* (virt-manager:7835): WARNING \*\*: Trying to register gtype ‘GSocketMsgFlags’ as enum when in fact it is of type ‘GFlags’

(virt-manager:7835): GConf-WARNING \*\*: Client failed to connect to the D-BUS daemon:  
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 4, 2012, 3:30pm UTC](https://forums.suse.com/t/virt-manager-unable-to-connect-to-libvirt/23148/2 "2012-10-04T15:30:21Z")

</div>

fangtuo90,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)\
**Post date:** [October 9, 2012, 8:46pm UTC](https://forums.suse.com/t/virt-manager-unable-to-connect-to-libvirt/23148/3 "2012-10-09T20:46:59Z")

</div>

[QUOTE=fangtuo90;9213][SIZE=3]hello,everybody. Recently I installed the latest suse 12.2 on my dell optiplex 390. After I install the xen part and bulid virtual machine on two exactly same machine, I try to connect the other one with virt-manager in YaST, and the error “Unable to connect to libvirt” appears, the details are as below:  
[/SIZE][SIZE=2][SIZE=2]Unable to connect to libvirt.[/QUOTE]

Not 100% sure about this, but I specifically choose to use a Xen connection when remote connecting virt-manager to a Xen host (using SSH RSA keys) and when the host is running as KVM host, then select the default QEMU/libvirt.

So I’d suspect you are choosing the wrong option to connect with.

Cheers,  
Willem
