Displaying 20 results from an estimated 400 matches similar to: "question about using openAuth with Python"
2014 Jun 06
2
Libvirt Python Bindings - Remote Connection using openAuth.
Hi,
I am using libvirt with python binding, and I want to connect to a remote
host.
I was able to connect after making ssh certificate, but It is not
applicable for my project.
So I want to use openAuth() method, but I could not succeed connecting to a
remote host using it.
Here is my code
------------------------
import libvirt
USER = "root"
PASS = "mypasswd"
def
2014 Jun 06
1
Re: Libvirt Python Bindings - Remote Connection using openAuth.
Martin,
What do you mean by libvirt credentials...?
-Sijo
On Fri, Jun 6, 2014 at 1:57 PM, Martin Kletzander <mkletzan@redhat.com>
wrote:
> On Fri, Jun 06, 2014 at 01:06:55PM +0530, Sijo Jose wrote:
>
>> Hi,
>> I am using libvirt with python binding, and I want to connect to a remote
>> host.
>> I was able to connect after making ssh certificate, but It
2015 Nov 03
2
xen+ssh with openauth
Hi,
I am trying to connect to remote libvirt via script,
and I get password prompt from the shell.
============================================================================
uri='xen+ssh://root@myserver/?no_verify=1'
def req(credentials, user_data):
print('in req...\n')
for cred in credentials:
if cred[0] == libvirt.VIR_CRED_AUTHNAME:
cred[4] =
2014 Jun 06
0
Re: Libvirt Python Bindings - Remote Connection using openAuth.
On Fri, Jun 06, 2014 at 01:06:55PM +0530, Sijo Jose wrote:
>Hi,
>I am using libvirt with python binding, and I want to connect to a remote
>host.
>I was able to connect after making ssh certificate, but It is not
>applicable for my project.
>So I want to use openAuth() method, but I could not succeed connecting to a
>remote host using it.
>
>Here is my code
2015 Nov 11
2
Re: xen+ssh with openauth
On 03.11.15 15:37, Daniel P. Berrange wrote:
> On Tue, Nov 03, 2015 at 10:14:00AM +0200, Shahar Havivi wrote:
> > Hi,
> >
> > I am trying to connect to remote libvirt via script,
> > and I get password prompt from the shell.
> >
> >
> > ============================================================================
> >
2018 Dec 05
2
Re: Libvirt api for esx
Hi Martin,
Could you please help me with below issue, I am not sure what’s wrong here.
Please find below code and error snippet.
Thanks for help.
Code Snippet: -
from __future__ import print_function
import sys
import libvirt
SASL_USER = <username>
SASL_PASS = <password>
def request_cred(credentials, user_data):
for credential in credentials:
if credential[0] ==
2018 Dec 06
2
Re: Libvirt api for esx
Thanks Martin for help. I will give it a shot.
Regards
Rohit Singh
On Thu, 6 Dec 2018 at 2:55 PM, Martin Kletzander <mkletzan@redhat.com>
wrote:
> On Wed, Dec 05, 2018 at 09:44:17PM +0530, ROHIT SINGH wrote:
> >Hi Martin,
> >
> >Could you please help me with below issue, I am not sure what’s wrong
> here.
> >Please find below code and error snippet.
> >
2018 Dec 12
1
Re: Libvirt api for esx
On Wed, Dec 12, 2018 at 03:03:41PM +0530, ROHIT SINGH wrote:
>Thanks Martin, It’s working now.
>Could you please help me with role of xml in libvirt api and what if I
>don’t want use of xml in my code.
>Please let me know.
>
Libvirt uses XML for most of the APIs. Depends what you need to do you can
transform it with xmltodict or use some higher level API. I'm not sure I can
2015 Nov 03
0
Re: xen+ssh with openauth
On Tue, Nov 03, 2015 at 10:14:00AM +0200, Shahar Havivi wrote:
> Hi,
>
> I am trying to connect to remote libvirt via script,
> and I get password prompt from the shell.
>
>
> ============================================================================
> uri='xen+ssh://root@myserver/?no_verify=1'
> def req(credentials, user_data):
> print('in
2015 Nov 11
0
Re: xen+ssh with openauth
On Wed, Nov 11, 2015 at 01:02:34PM +0200, Shahar Havivi wrote:
> On 03.11.15 15:37, Daniel P. Berrange wrote:
> > On Tue, Nov 03, 2015 at 10:14:00AM +0200, Shahar Havivi wrote:
> > > Hi,
> > >
> > > I am trying to connect to remote libvirt via script,
> > > and I get password prompt from the shell.
> > >
> > >
> > >
2018 Nov 29
2
Re: Libvirt api for esx
On Wed, Nov 28, 2018 at 10:24:55PM +0530, ROHIT SINGH wrote:
>Hi Martin,
>
>Could you please point me to any example codes in python present for esx?
>Suppose, I have to power off and power on esx virtual machine, can i get
>this code somewhere on python to develop some understanding.
>
https://www.mail-archive.com/libvir-list@redhat.com/msg17903.html
>Actually, I am not
2018 Dec 06
0
Re: Libvirt api for esx
On Wed, Dec 05, 2018 at 09:44:17PM +0530, ROHIT SINGH wrote:
>Hi Martin,
>
>Could you please help me with below issue, I am not sure what’s wrong here.
>Please find below code and error snippet.
>
>Thanks for help.
>
>Code Snippet: -
>
>from __future__ import print_function
>import sys
>import libvirt
>SASL_USER = <username>
>SASL_PASS =
2018 Dec 12
0
Re: Libvirt api for esx
Thanks Martin, It’s working now.
Could you please help me with role of xml in libvirt api and what if I
don’t want use of xml in my code.
Please let me know.
Thanks for help!!
Regards
Rohit Singh
On Thu, 6 Dec 2018 at 11:24 PM, ROHIT SINGH <rohit.singh0908@gmail.com>
wrote:
> Thanks Martin for help. I will give it a shot.
>
> Regards
> Rohit Singh
>
> On Thu, 6 Dec 2018
2012 Oct 13
0
[PATCH] New APIs: Model libvirt authentication events through the API.
From: "Richard W.M. Jones" <rjones at redhat.com>
This commit models libvirt authentication events through the API,
adding one new event (GUESTFS_EVENT_LIBVIRT_AUTH) and several new
APIs:
guestfs_set_libvirt_supported_credentials
guestfs_get_libvirt_requested_credentials
guestfs_get_libvirt_requested_credential_prompt
guestfs_get_libvirt_requested_credential_challenge
2012 Oct 30
2
libvirt python api error
I use the code below:
import libvirt
auth =
[[libvirt.VIR_CRED_AUTHNAME,libvirt.VIR_CRED_NOECHOPROMPT],'root',None]
conn = libvirt.openAuth("qemu:///system",auth,0)
with open("/root/cflinux.xml") as f:
xml=f.read()
domain = conn.defineXML(xml)
domain.createWithFlags(0)
and report the error:
libvir: Security Labeling error : internal error cannot load AppArmor
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.
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>
2017 Apr 15
1
Libvirt and libssh2 with openauth
Hi all,
i have same question as this one
https://www.redhat.com/archives/libvirt-users/2014-March/msg00158.html. (
Only im using python)
Is there any new follow-up on this?
Thanks
2014 Jan 02
0
[PATCH] libvirt-auth: Provide a friendlier wrapper around virConnectAuthPtrDefault (RHBZ#1044014).
---
src/guestfs-internal.h | 1 +
src/libvirt-auth.c | 55 +++++++++++++++++++++++++++++++++++++++++---------
2 files changed, 46 insertions(+), 10 deletions(-)
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 5356920..d81fa6b 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -469,6 +469,7 @@ struct guestfs_h
unsigned int nr_supported_credentials;
2019 Apr 08
0
[PATCH v4 3/7] v2v: switch to ocaml-libvirt
Currently virt-v2v has few custom C-based functions for libvirt
operations, which are limited in what they do, and there is a lot of
duplicated code.
Instead, switch to ocaml-libvirt for all the libvirt interaction
currently done by the Libvirt_utils module. This has few advantages:
- each input & output module now opens a libvirt connection only once,
only when needed
- no need to pass