search for: virconnectauthptrdefault

Displaying 20 results from an estimated 24 matches for "virconnectauthptrdefault".

2014 Jan 02
0
[PATCH] libvirt-auth: Provide a friendlier wrapper around virConnectAuthPtrDefault (RHBZ#1044014).
...needs authentication to connect to libvirt URI %s\n" + "(see also: http://libvirt.org/auth.html http://libvirt.org/uri.html)\n"), + g->saved_libvirt_uri ? g->saved_libvirt_uri : "NULL"); + g->wrapper_warning_done = true; + } + + return virConnectAuthPtrDefault->cb (cred, ncred, + virConnectAuthPtrDefault->cbdata); +} + static int exists_libvirt_auth_event (guestfs_h *g) { @@ -165,31 +194,37 @@ guestfs___open_libvirt_connection (guestfs_h *g, const char *uri, unsigned int f...
2014 Oct 30
2
[PATCH 0/2] v2v: Add --password-file parameter (RHBZ#1158526).
These patches add the --password-file parameter, allowing you to pass a single password via a file. https://bugzilla.redhat.com/show_bug.cgi?id=1158526 Rich.
2019 Apr 08
0
[PATCH v4 3/7] v2v: switch to ocaml-libvirt
...{ - cred[i].result = strdup (password); - cred[i].resultlen = strlen (password); - } - else { - cred[i].result = NULL; - cred[i].resultlen = 0; - } - } - return 0; - } - else { - /* No --password-file so call the default handler. */ - return virConnectAuthPtrDefault->cb (cred, ncred, - virConnectAuthPtrDefault->cbdata); - } -} - -virStoragePoolPtr -connect_and_load_pool (value connv, value poolnamev) -{ - CAMLparam2 (connv, poolnamev); - const char *conn_uri = NULL; - const char *poolname; - /* We have to asse...
2015 May 05
2
[PATCH 0/2] v2v: -o libvirt: Check if the domain exists on the target (RHBZ#889082).
https://bugzilla.redhat.com/show_bug.cgi?id=889082
2013 Apr 04
1
Unable to convert vm
...set_network true libguestfs: trace: set_network = 0 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: libvirt version = 10002 (0.10.2) libguestfs: [00000ms] connect to libvirt libguestfs: opening libvirt handle: URI = NULL, auth = virConnectAuthPtrDefault, flags = 0 Please enter your authentication name: root Please enter your password: libguestfs: successfully opened libvirt handle: conn = 0x473b490 libguestfs: [2616860ms] get libvirt capabilities libguestfs: [2617767ms] parsing capabilities XML libguestfs: [2617768ms] build appliance libguestfs: c...
2017 Sep 08
2
[PATCH] RFC: v2v: add and use libvirt connection objects
...(connv != Val_int (0)) - conn_uri = String_val (Field (connv, 0)); /* Some conn */ - - /* We have to call the default authentication handler, not least - * since it handles all the PolicyKit crap. However it also makes - * coding this simpler. - */ - conn = virConnectOpenAuth (conn_uri, virConnectAuthPtrDefault, - VIR_CONNECT_RO); - if (conn == NULL) { - if (conn_uri) - snprintf (errmsg, sizeof errmsg, - _("cannot open libvirt connection ‘%s’"), conn_uri); - else - snprintf (errmsg, sizeof errmsg, _("cannot open libvirt connection&...
2012 Oct 13
0
[PATCH] New APIs: Model libvirt authentication events through the API.
...ed. +=item GUESTFS_EVENT_LIBVIRT_AUTH +(payload type: libvirt URI) + +For any API function that opens a libvirt connection, this +event may be generated to indicate that libvirt demands +authentication information. See L</LIBVIRT AUTHENTICATION> below. + +If no callback is registered: C<virConnectAuthPtrDefault> is +used (suitable for command-line programs only). + =back =head2 EVENT API @@ -2351,6 +2361,132 @@ this example, messages are directed to syslog: syslog (priority, "event 0x%lx: %s", event, buf); } +=head2 LIBVIRT AUTHENTICATION + +Some libguestfs API calls can open li...
2014 Nov 07
2
Re: libguestfs-tools with libvirt SASL authentication
Thanks for the info, Richard. Hi Dan, Any additional information on this? Thanks, Dan Ryder -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Wednesday, November 05, 2014 8:46 AM To: Dan Ryder (daryder); berrange@redhat.com Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] libguestfs-tools with libvirt SASL authentication On Tue, Nov 04, 2014 at
2014 Nov 13
0
Re: libguestfs-tools with libvirt SASL authentication
...ns.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 8:46 AM > To: Dan Ryder (daryder);...
2016 Aug 30
1
Help, it's not working!
...rue libguestfs: trace: set_verbose = 0 libguestfs: create: flags = 0, handle = 0x1d9fcc0, program = virt-sysprep libguestfs: trace: add_domain "ryu" "readonly:false" "allowuuid:true" "readonlydisk:ignore" libguestfs: opening libvirt handle: URI = NULL, auth = virConnectAuthPtrDefault, flags = 1 libguestfs: successfully opened libvirt handle: conn = 0x1da04a0 libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks false libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks = 0 libguestfs: disk[0]: filename: /home/sajad/Desktop/ubuntu-with-ryu-image/ryu.qcow2 li...
2018 Nov 27
8
[PATCH v2 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 Jan 30
8
[PATCH v3 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 May 20
8
[PATCH v5 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2014 Dec 04
2
Re: virt-df error, help
On Thu, Dec 04, 2014 at 04:53:21PM +0800, cuimingwen@incito.com.cn wrote: > Hello, Richard, > I run command as example: " virt-df -d `virsh domuuid 5`" > some errors show : > libguestfs: warning: supermin-helper -f checksum returned a short string > libguestfs: error: cannot find any suitable libguestfs supermin, fixed or old-style appliance on
2019 Apr 08
12
[PATCH 43 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2014 Dec 05
1
Re: virt-df error, help
...erbose = 0 libguestfs: create: flags = 0, handle = 0x15ee130, program = virt-df libguestfs: trace: add_domain "572e2069-1d61-4e0a-9a7d-fc9e726c22cb" "readonly:true" "allowuuid:true" "readonlydisk:read" libguestfs: opening libvirt handle: URI = NULL, auth = virConnectAuthPtrDefault, flags = 1 libguestfs: successfully opened libvirt handle: conn = 0x15ee5c0 libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks false libguestfs: trace: internal_set_libvirt_selinux_norelabel_disks = 0 libguestfs: disk[0]: filename: /var/lib/nova/instances/572e2069-1d61-4e0a-9a7d-fc...
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
...n, interval, count)); + CHECK_ERROR (r == -1, "virConnectSetKeepAlive"); + + CAMLreturn(Val_unit); +} + +CAMLprim value +ocaml_libvirt_connect_credtypes_from_auth_default (value unitv) +{ + CAMLparam1 (unitv); + CAMLlocal2 (listv, itemv); + int i; + + listv = Val_emptylist; + + if (virConnectAuthPtrDefault) { + for (i = virConnectAuthPtrDefault->ncredtype; i >= 0; --i) { + const int type = virConnectAuthPtrDefault->credtype[i]; + itemv = caml_alloc (2, 0); + Store_field (itemv, 0, Val_int (type - 1)); + Store_field (itemv, 1, listv); + listv = itemv; + } + } +...
2019 Dec 16
3
[v2v PATCH 0/2] Move libvirt-ocaml copy to v2v repo
libvirt-ocaml is used only by virt-v2v, so move it to this repository, instead of having it around in the common submodule. The removal from common will happen later. Pino Toscano (2): common: Bundle the libvirt-ocaml library for use by virt-v2v build: switch embedded copy of libvirt-ocaml .gitignore | 2 + 3rdparty/libvirt-ocaml/Makefile.am |
2010 Oct 21
3
Virt-v2v
Usual prologue: we're testing on CentOS 5.5, RHEL subscriptions purchased. Now trying to use virt-v2v to transfer Win2008 Server guest from ESXi host to KVM host. Have enabled SSH on ESXi host, and can connect using esx+ssh://esxhost, but procedure fails because nc isn't found on ESXi. Fair enough. BTW, ESXi looks like a radically cut down RH system (/etc/sysconfig being the give-away)?
2013 Feb 18
4
[PATCH for discussion only 0/3] Implement mutexes to limit number of concurrent instances of libguestfs.
These three patches (for discussion only, NOT to be applied) implement a mutex system that lets the user limit the number of libguestfs instances that can be launched per host. There are two uses that I have identified for this: firstly so we can enable parallel-tests (the default in automake >= 1.13) without blowing up the host. Secondly oVirt has raised concerns about how to limit the