search for: listdomainsid

Displaying 18 results from an estimated 18 matches for "listdomainsid".

Did you mean: listdomains
2010 Mar 12
1
unable to get domain list of KVM guests from libvirt as non-root user
...#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.openReadOnly(None) >>> domains = conn.listDomainsID() >>> print domains [0, 3, 15, 16, 21, 24, 26, 30, 32, 36, 38, 41, 43, 45, 47, 49, 51, 55, 63, 67] >>> When I try the same thing on the KVM server: [testu at kvm ~]$ python Python 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type &quo...
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 listDefinedD...
2010 Mar 10
2
unable to get domain status from libvirt & KVM
....4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.openReadOnly(None) >>> domains = conn.listDomainsID() >>> print domains [0, 3, 15, 16, 21, 24, 26, 30, 32, 36, 38, 41, 43, 45, 47, 49, 51, 55, 63, 67] >>> When I try the same thing on the KVM server: $ python Python 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type "help", &quot...
2010 Mar 11
2
unable to get domain status from libvirt & KVM
...3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.openReadOnly(None) >>> domains = conn.listDomainsID() >>> print domains [0, 3, 15, 16, 21, 24, 26, 30, 32, 36, 38, 41, 43, 45, 47, 49, 51, 55, 63, 67] >>> When I try the same thing on the KVM server: $ python Python 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2 Type "help", &qu...
2012 Apr 24
1
Non-Root not able to use openReadOnly()
Hi, I have a code : import libvirt con = libvirt.openReadOnly(None) print con.listDomainsID() When i run the above code using root i get the proper output... but when i use non-root user it givers be a empty list [ ] If i change the 2nd line to con = libvirt.open(qemu:///system) It works. I am using RHEL 6.1 with default kvm and libvirt. unix_sock_group = "virt" in libv...
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 here?http://libvirt.org/guide/html/Application_Development_Guide-Guest_Domains-Listing.html under example 4.4 and example 4.5 seems to be outdated looking at?/usr/lib64/python2.6/site-packages/libvirt.py, line...
2011 Feb 09
1
How to use Python Binding with Lbivirt.
...query on the hypervisor and extract the VM related information. Here is my simple code: #!/*usr*/local/bin/*python * import libvirt import sys conn = libvirt.openReadOnly(None) if conn == None: print *'Failed to open connection to the hypervisor' * sys.exit(1) try: domIds = conn.listDomainsID() for id in domIds: dom0 = conn.lookupByID(id) dom0.info() print *"Domain 0: id %d running %s"* % (dom0.ID(), dom0.OSType()) print dom0.info() except: print *'Failed to find the main domain' * sys.exit() The output is : Domain 0: id 2 running hvm [1, 131072L, 131072L, 1,...
2010 Dec 17
1
libvirt unavailable while a VM is in migration?
Hi, I am running libvirt 0.8.6 on qemu (kvm, really) 0.12.5. I have noticed that while a live migration is running, I cannot do anything else with libvirt -- even 'virsh list' blocks without output until the migration is almost done. (At that point 'virsh list' will dump a final screen showing the VM I just migrated as 'running'; the next run of 'virsh
2011 Feb 10
0
How to retrieve Memory stat of the KVM using python binding with Libvirt API
...SWAP_IN , SWAP_OUT,free memory, mem cached etc.So, the code, I have written for this, is : #!/usr/local/bin/python import libvirt import sys conn = libvirt.openReadOnly(None) if conn == None: print "Failed to open connection to the hypervisor" sys.exit(1) try: domIds = conn.listDomainsID() for id in domIds: dom0 = conn.lookupByID(id) try: print "memory stats: %s"% dom0.memoryStats().values() except: print 'Failed to find the memory data of this domain' sys.exit(1) except: print 'Failed to...
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 Feb 09
9
virt-manager and virt-install can''t use with new built xvm 3.3
...port/home/allen/IMAGE/snv_106) to be (in gigabytes)? 20 Would you like to enable graphics support? (yes or no) yes What is the install location? /export/home/allen/ISO/sol-11-x86-snv-106.iso Starting install... Creating storage file... 100% |=========================| 20 B 00:00 virConnectListDomainsID() failed Broken pipe Domain installation may not have been successful. If it was, you can restart your domain by running ''virsh start snv_106''; otherwise, please restart your installation. Sun, 08 Feb 2009 21:37:12 ERROR virConnectListDomainsID() failed Broken pipe Tracebac...
2012 May 09
3
creating a domain
hi, i am a bit confused on how to start an inactive domain using the python bindings, any help would be appreciated. (inactive as in the domain was created with?virConnect.defineXML sometime in the past) looks like i have to use virDomain.create, however virDomain.create needs a defined domain xmldesc as a parameter and i am not sure on how to get that i guess if?virConnect.create was
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.