Displaying 20 results from an estimated 78 matches for "virconnectopenauth".
2013 Apr 11
2
How can I open a libvirt remote connection with ssh
Hi,
When I use 'virConnectOpenAuth' function to connect to '192.168.1.102' libvirtd with ssh,
Code below, the screen print the dialog "root at 192.168.1.102's password:" , and only
After I type the password, the connection can be created.
How can I connect to libvirtd with ssh automatically? No need to t...
2008 Aug 29
0
problems with virt-manager and xen 3.3.0
...or failed to connect to xend
error: failed to connect to the hypervisor
when i start virt-manager from the console, local and remotly, xen is disconnected to the host.
if i try to connect it, it shows this message
Unable to open connection to hypervisor URI 'xen:///':
libvirt.libvirtError virConnectOpenAuth() failed
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py", line 427, in _open_thread
None], flags)
File "/usr/lib/python2.4/site-packages/libvirt.py", line 98, in openAuth
if ret is None:raise libvirtError('virConnectOpe...
2012 Oct 13
2
Proposed libguestfs API for implementing libvirt virConnectOpenAuth
As in the example code below.
static void
do_auth (guestfs_h *g,
void *opaque,
uint64_t event,
int event_handle,
int flags,
const char *buf, size_t buf_len,
const uint64_t *array, size_t array_len)
{
char **creds;
size_t i;
char *prompt;
char *reply;
size_t replylen;
// buf will be the libvirt URI. It is always \0-terminated so
2015 Apr 27
2
[Libvirt Users]how to provide password authentication for qemu driver
Dell Customer Communication
Hi All,
I am using
Compiled against library: libvirt 1.2.9
Using library: libvirt 1.2.9
Using API: QEMU 1.2.9
Running hypervisor: QEMU 2.1.2
I want user to provide username and password authentication to virConnectPtr
virConnectOpenAuth(const char *name,
virConnectAuthPtr auth,
unsigned int flags) to login remotely for the qemu hypervisor.
But it is not taking user provided username and driver. Because internally it is calling below qemu driver function,
static virDrvOpenStatus qemuConnectO...
2016 Jan 08
2
Re: operation forbidden Read Only Access
Hi,
I found an answer :
Use virConnectOpenAuth() instead of virConnectOpenReadOnly().
As my piece of code is running silently (without user connected) , by using virConnectOpenAuth() ,
is it possible to avoid to prompt user to get user /password ?
Thx.
J.P.
-----Message d'origine-----
DeĀ : libvirt-users-bounces@redhat.com [mailto...
2016 Jan 11
0
Re: operation forbidden Read Only Access
On 08.01.2016 14:30, Jean-Pierre Ribeauville wrote:
> Hi,
>
> I found an answer :
>
> Use virConnectOpenAuth() instead of virConnectOpenReadOnly().
>
> As my piece of code is running silently (without user connected) , by using virConnectOpenAuth() ,
> is it possible to avoid to prompt user to get user /password ?
Yes it is. You basically need just to pass a callback that will supply
cred...
2011 Aug 23
1
libvirt ruby binding with vmware
Hi,
I've been trying to use the ruby libvirt binding with vmware esx on F15,
however it doesnt seems to work, I get:
Libvirt::ConnectionError: Call to virConnectOpen failed: Cannot access CA
certificate '/etc/pki/CA/cacert.pem': No such file or directory
I've using the same uri with virsh and it works.
it seems like somehow the no_verify is not passed, or we are back to old
2013 Apr 11
0
reboot command lost?
...; Subject: [libvirt-users] How can I open a libvirt remote connection
> with ssh
> Message-ID:
> <87B246BB5ED53A4C98E4F9A35839EDE128F1136D at nkgeml506-mbs.china.huawei.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> When I use 'virConnectOpenAuth' function to connect to '192.168.1.102' libvirtd with ssh,
> Code below, the screen print the dialog "root at 192.168.1.102's password:" , and only
> After I type the password, the connection can be created.
>
> How can I connect to libvirtd with ssh automat...
2012 Jan 24
1
[Problem] C# virDomainShutdown
...l some issues im confronted with. I use libvirt in C# and I'm running a 32-bit machine on Windows 7. Actually my worst problem is, is that I'm not able to Shutdown on machine no matter which command I'm using. virDomainShutdown isn't working nor virDomainDestroy. Basically I use the virConnectOpenAuth example to make a test on this. You'll find a code-excerpt in the attachment. Everything else is working. Like Domain.GetName etc. - i just can't figure out the failure and I wanted to ask if the mistake is in the API since it's not tested on a 32-bit Windows. Already thanks for the sup...
2010 Jun 02
2
libvirt 0.8.1
...xen:///
Traceback (most recent call last):
File "/usr/local/share/virt-manager/virtManager/connection.py", line
971, in _try_open
None], flags)
File "/usr/lib/python2.6/dist-packages/libvirt.py", line 111, in openAuth
if ret is None:raise libvirtError(''virConnectOpenAuth() failed'')
libvirtError: no hypervisor driver available for xen:///
Any ideas?
Thanks
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
2011 Sep 05
5
Unable to connect
...#39;: Connection refused
Traceback
(most recent call last):
File
"/usr/share/virt-manager/virtManager/connection.py", line 983, in
_try_open
None], flags)
File
"/usr/lib64/python2.7/site-packages/libvirt.py", line 107, in openAuth
if ret is None:raise libvirtError(''virConnectOpenAuth()
failed'')
libvirtError: unable to connect to ''localhost:8000'': Connection
refused"
I do not remember having that problem before and the first
time I booted the machine I was able to connect and start the new
machine creation. Anyone can give-me a hint please?
Gr...
2014 Nov 07
2
Re: libguestfs-tools with libvirt SASL authentication
....c#L192
(3) Finally if you are using the libvirt backend (which you are not on
Ubuntu) then there would be a third connection to run the appliance, although it uses the same code as (2).
I believe the problem here is that (1) does not pass an auth handler.
ie. it calls virConnectOpenReadonly, not virConnectOpenAuth. It's my understanding that virConnectOpenReadonly bypasses the policy kit and SASL stuff, but Dan Berrange (CC'd) will be able to tell me if I'm correct about that.
If that was the case then you would see an error when virt-df tries to get a list of domains.
Anyway, if it turns out...
2015 Apr 27
0
Re: [Libvirt Users]how to provide password authentication for qemu driver
...Customer Communication
> Hi All,
>
> I am using
>
> Compiled against library: libvirt 1.2.9
> Using library: libvirt 1.2.9
> Using API: QEMU 1.2.9
> Running hypervisor: QEMU 2.1.2
>
> I want user to provide username and password authentication to virConnectPtr
> virConnectOpenAuth(const char *name,
> virConnectAuthPtr auth,
> unsigned int flags) to login remotely for the qemu hypervisor.
>
> But it is not taking user provided username and driver. Because
> internally it is calling below qemu driver function,
>
> s...
2010 Sep 30
1
Ruby-libvirt and openAuth
Hello,
It looks like the Ruby bindings do not support virConnectOpenAuth. Is this
true? If so, is there any reason why? or plans to?
Thanks,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100930/b4267ba7/attachment.htm>
2011 Feb 04
1
Making multiple connections from an application using libvirt-0.6.3-20.1.el5_4
...ss a thread in the archives that seems to suggest that
multiple connections can be made from a single application,although I am
unsure what version(s) of libvirt support it.
https://www.redhat.com/archives/libvirt-users/2010-March/msg00074.html
I'd like to know if multiple connections(for eg,virConnectOpenAuth())
can be made from an application using libvirt-0.6.3-20.1.el5_4 .
Thanks
2014 Jun 23
1
qemu+tls question
...",
line 1056, 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 102, in
openAuth if ret is None:raise libvirtError('virConnectOpenAuth
() failed') libvirtError: Unable to read TLS confirmation:
Input/output error
Any suggestions?
--
Fl@sh
2015 Feb 11
1
Hyper-V 2008 R2 support ?
Hi,
I'm trying libvirt to connect to Hyper-V servers. It works fine for
Hyper-V 2012 servers, however it doesn't work for Hyper-V 2008 R2 (the
exact error is |
Call to virConnectOpenAuth failed: internal error: Transport error
during enumeration: Could not connect (7) (Libvirt::ConnectionError)|.).
I'm using the code provided by libvirt documentation
(http://libvirt.org/ruby/examples/open_auth.rb) and have authorized
basic auth plus unencrypted connection on both 2008 R2 &...
2014 Jan 02
0
[PATCH] libvirt-auth: Provide a friendlier wrapper around virConnectAuthPtrDefault (RHBZ#1044014).
...%s, auth = %s, flags = %u",
- uri ? uri : "NULL",
- authdataptr == virConnectAuthPtrDefault
- ? "virConnectAuthPtrDefault" : "<virConnectAuth *>",
- flags);
+ uri ? uri : "NULL", authtype, flags);
- conn = virConnectOpenAuth (uri, authdataptr, flags);
+ conn = virConnectOpenAuth (uri, &authdata, flags);
if (conn)
debug (g, "successfully opened libvirt handle: conn = %p", conn);
--
1.8.4.2
2012 Feb 13
1
virt-manager thru window's remote desktop
...39;:
authentication failed
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/connection.py",
line 992, in_try_open
None],flags)
File "/usr/lib64/python2.6/site-packages/libvirt.py",line
111,in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth()
failed')
libvirtError: authentication failed
-- end --
Hisao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virt-manager-thru-xrdp-error.png
Type: image/png
Size: 118132 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/...
2014 Nov 13
0
Re: libguestfs-tools with libvirt SASL authentication
...ing patch?
diff --git a/df/domains.c b/df/domains.c
index b2d9537..6cbc0f9 100644
--- a/df/domains.c
+++ b/df/domains.c
@@ -77,7 +77,8 @@ get_all_libvirt_domains (const char *libvirt_uri)
size_t i;
/* Get the list of all domains. */
- conn = virConnectOpenReadOnly (libvirt_uri);
+ conn = virConnectOpenAuth (libvirt_uri, virConnectAuthPtrDefault,
+ VIR_CONNECT_RO);
if (!conn) {
err = virGetLastError ();
fprintf (stderr,
Rich.
>
> -----Original Message-----
> From: Richard W.M. Jones [mailto:rjones@redhat.com]
> Sent: Wednesday, November 05, 2014...