search for: listdefineddomain

Displaying 17 results from an estimated 17 matches for "listdefineddomain".

Did you mean: listdefineddomains
2011 May 15
1
(no subject)
Hello, I am using python bindings of libvirt. When I use the function listDomainsID( ) it successfully returns me the list of the ids of my current virtual machines, but when I call function listDefinedDomains( ) it returns me an empty list. Is this some kind of bug because as per my understanding listDefinedDomains should return a superset of vm's as returned by listDefinedDomains(). I am using 0.8.8 version of the libvirt. -- Thanks Abhishek -------------- next part -------------- An HTML attac...
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, Shahar.
2015 Nov 11
2
Re: xen+ssh with openauth
...) method. > > http://libvirt.org/remote.html#Remote_URI_reference Thank you Daniel, Decided to 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 -------------------------------...
2015 Nov 11
0
Re: xen+ssh with openauth
...libvirt.org/remote.html#Remote_URI_reference > Thank you Daniel, > Decided to 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:...
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? > I guess you meant "disadvantage to using listDefinedDomains and listDomainIDs instead of listAllDomains&qu...
2012 Aug 26
1
question about using openAuth with Python
...def __init__(self, uri): self.uri = uri def open(self): auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], authcb, None] vm_conn = libvirt.openAuth(self.uri, auth, 0); print self.uri if vm_conn == None: print 'Failed to open connection to %s' % self.uri for name in vm_conn.listDefinedDomains(): print name vm = vm_conn.lookupByName(name) if __name__ == '__main__': conn = connection('qemu+ssh://root at 192.168.1.203/system') conn.open() Thanks fan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/lib...
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] =
2013 Oct 09
3
Re: failing connections w/ virt-manager
Am 08.10.2013 14:46, schrieb Stefan G. Weichinger: >> Try enabling the flag, re-emerging the package, setting the logs and >> then reproduce it again. Check the logs and you should see why it's >> disconnecting. The docs say that libvirtd has to listen on the TCP port ... checked that: # netstat -alnp | grep libv tcp 0 0 0.0.0.0:16509 0.0.0.0:*
2011 Nov 11
1
Problem with listDomains() in Xen
This question concerns the usage of the listDomains(). When I run this piece of code in KVM, it works perfectly fine but throws an array out of bounds exception in Xen. Connect conn=null; conn = new Connect("xen:///", true); int[] id = conn.listDomains(); System.out.println("lD of VM " +id[0]); Answer I'd got: Well, your code assumes that id.length is >= 1, but
2012 May 05
1
listing active and defined vs inactive and defined domains
i am trying to list active + defined and inactive + defined domains using libvirt 0.9.4 i can get active domains using: def s_activedomains(conn): #get active domain ids numofdomains=libvirt.virConnect.numOfDomains(conn) activedomains=libvirt.virConnect.listDomainsID(conn) return activedomains i am stuck on how to get inactive domains the example listed
2013 Jul 08
1
python equiv to perl list_domains()
Hey, I'm trying to figure out a way to get a list of the running domains on a dom0. I can get the ID's but I'd prefer the names. We have another script written in perl, but I'm trying to get some other functionality 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
2009 Aug 31
1
Fixed patch...
This version of the patch includes feedback from jboggs at redhat.com, including fixes to the BuildRequires and Requires in the spec file.
2009 Sep 11
1
Text-based node administration tool
This patch obsoletes any previous ones. This is an upstream candidate, so I'm looking for feedback so we can push this and start using it.
2009 Sep 14
1
Bugfixes...
This version fixes a few bugs found by jboggs. It also includes some logging facilities that need to be fleshed out more.
2009 Sep 16
1
Final push candidate for nodeadmin tool...
This patch is ready for pushing upstream.
2009 Sep 16
1
Replacement that includes utils.py
The previous patch was missing this file. Resending.
2009 Jul 31
2
RFC: This patch is not being submitted for ACK...
...just looking for some feedback on the direction I'm going. The code won't get all the way to the define stage since I'm in the middle of retrofitting it to use virtinst instead of a home spun node definition.