search for: listalldomains

Displaying 10 results from an estimated 10 matches for "listalldomains".

2015 Nov 26
2
New vs old API usages
Hi, Currently I am using the latest libvirt API listAllDomains() to probe for domains. I may need to fall back to older API for old libvirt server such as: listDefinedDomains() and lookupByName() instead of listAllDomains(). Is there any disadvantage to using listAllDomains instead of listAllDomains or its the same results via different API? Thank you, Shaha...
2013 Jul 08
1
python equiv to perl list_domains()
...unctionality in python as well as work on converting it all to python. It looks like perl has a list_domains() that will, according to the libvirt doc, "Return a list of all running domains currently known to the VMM". And this works for us, but I can't get the same thing in python as listAllDomains doesn't work with the version of libvirt running on RHEL 5.9 >From our machine that will be running the script RHEL 5.9 yum list | grep libvirt libvirt.x86_64 0.8.2-29.el5_9.1 libvirt-python.x86_64 0.8.2-29.el5_9.1 from the dom0 RHEL 5.9 yum list | grep xen xen.x86_64...
2015 Nov 11
2
Re: xen+ssh with openauth
...o go with xen+ssh with public key authentication which works fine. I notice a problem in several methods that returns: "libvirt: Remote Driver error : unknown procedure: 273" for example listDefinedDomains works fine: In [104]: con.listDefinedDomains() Out[104]: ['fedora22'] but listAllDomains fails: ============================================================================ In [105]: con.listAllDomains() libvirt: Remote Driver error : unknown procedure: 273 --------------------------------------------------------------------------- libvirtError Traceback (m...
2015 Nov 27
0
Re: New vs old API usages
On Thu, Nov 26, 2015 at 03:58:27PM +0200, Shahar Havivi wrote: >Hi, > >Currently I am using the latest libvirt API listAllDomains() to probe for domains. >I may need to fall back to older API for old libvirt server such as: listDefinedDomains() and lookupByName() >instead of listAllDomains(). >Is there any disadvantage to using listAllDomains instead of listAllDomains >or its the same results via different API? &g...
2015 Nov 11
0
Re: xen+ssh with openauth
...tication which works fine. > I notice a problem in several methods that returns: > "libvirt: Remote Driver error : unknown procedure: 273" > > for example listDefinedDomains works fine: > In [104]: con.listDefinedDomains() > Out[104]: ['fedora22'] > > but listAllDomains fails: > ============================================================================ > In [105]: con.listAllDomains() > libvirt: Remote Driver error : unknown procedure: 273 > --------------------------------------------------------------------------- > libvirtError...
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] =
2015 Mar 20
1
Re: libvirt-python Segfaults
..., "copyright", "credits" or "license" for more information. > >>> import libvirt > >>> libvirt.__file__ > '/usr/lib/python2.7/dist-packages/libvirt.pyc' > >>> c = libvirt.virConnect("lxc:///") > >>> c.listAllDomains() > Segmentation fault (core dumped) > > > 2. Installing the latest libvirt-python from pypi (1.2.13) also has the same > issue. > > > This is the gdb bt of the core: > > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib...
2015 Mar 19
2
libvirt-python Segfaults
...ux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> libvirt.__file__ '/usr/lib/python2.7/dist-packages/libvirt.pyc' >>> c = libvirt.virConnect("lxc:///") >>> c.listAllDomains() Segmentation fault (core dumped) 2. Installing the latest libvirt-python from pypi (1.2.13) also has the same issue. This is the gdb bt of the core: [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was gen...
2019 Feb 15
2
HELP!
I'm getting this error (below) [root@localhost test]# ./test virError(Code=6, Domain=20, Message='invalid connection pointer in virConnectListAllDomains') 0 running domains: when running this program :- (below) package main import ( "fmt" libvirt "github.com/libvirt/libvirt-go" ) type DomService struct { Conn *libvirt.Connect } func (d *DomService) Connect() error { var err error d.Conn,...
2015 Mar 20
0
Re: libvirt-python Segfaults
..., "copyright", "credits" or "license" for more information. > >>> import libvirt > >>> libvirt.__file__ > '/usr/lib/python2.7/dist-packages/libvirt.pyc' > >>> c = libvirt.virConnect("lxc:///") > >>> c.listAllDomains() > Segmentation fault (core dumped) > > > 2. Installing the latest libvirt-python from pypi (1.2.13) also has the > same issue. > > > This is the gdb bt of the core: > > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_...