[libvirt-users] TCP connection works for only remote host

Martin Kletzander mkletzan at redhat.com
Tue Jun 10 12:29:48 UTC 2014


On Tue, Jun 10, 2014 at 03:15:37PM +0530, usha basavaraju wrote:
>Restarted libvirt to listen at tcp
>$ sudo /etc/init.d/libvirt-bin stop
>[sudo] password for fluent:
>Rather than invoking init scripts through /etc/init.d, use the service(8)
>utility, e.g. service libvirt-bin stop
>
>Since the script you are attempting to invoke has been converted to an
>Upstart job, you may also use the stop(8) utility, e.g. stop libvirt-bin
>libvirt-bin stop/waiting
>$ sudo libvirtd -d --listen
>
>
>
>Now am getting this error :
>
>libvirt: XML-RPC error : authentication failed: Failed to start SASL
>negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File
>"/home/fluent/cvt/convirt-enterprise/tg2env/local/lib/python2.7/site-packages/libvirt.py",
>line 239, in open
>    if ret is None:raise libvirtError('virConnectOpen() failed')
>libvirt.libvirtError: authentication failed: Failed to start SASL
>negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
>

Because you have authentication set up and you're not calling
OpenAuth() you have to change one of those.

Martin

>
>
>On Tue, Jun 10, 2014 at 2:32 PM, usha basavaraju <usha.basavaraju at gmail.com>
>wrote:
>
>> tcp connection working only for remote host . for localhost raising the
>> following error
>>
>> >>> con=libvirt.open("qemu+tcp:///system")
>> libvirt: XML-RPC error : unable to connect to server at 'localhost:16509':
>> Connection refused
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File
>> "/home/fluent/cvt/convirt-enterprise/tg2env/local/lib/python2.7/site-packages/libvirt.py",
>> line 239, in open
>>     if ret is None:raise libvirtError('virConnectOpen() failed')
>> libvirt.libvirtError: unable to connect to server at 'localhost:16509':
>> Connection refused
>> >>>
>> Is there any other params to be set for local host connection..? please
>> help
>>

>_______________________________________________
>libvirt-users mailing list
>libvirt-users at redhat.com
>https://www.redhat.com/mailman/listinfo/libvirt-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140610/44701ac8/attachment.sig>


More information about the libvirt-users mailing list