search for: lookupbyuuidstring

Displaying 3 results from an estimated 3 matches for "lookupbyuuidstring".

2012 Aug 17
1
getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
Hello, I'm trying to use libvirt as a non-root user to obtain statistics on the CPU usage by VMs using the Python API. I'm performing basically the following steps: import libvirt conn = libvirt.openReadOnly(None) dom = conn.lookupByUUIDString('268e38ea-1bc7-41e4-c19e-8eff682e58e4') dom.getCPUStats(True, 0) However, they result in the following error: libvir: QEMU Driver error : Requested operation is not valid: cgroup CPUACCT controller is not mounted --------------------------------------------------------------------------...
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 Jun 19
0
Re: [libvirt] domain.info() sometimes returns state zero for running machines
...gt;> >>> >>>> I''m using Xen-3.2-1 on Debian 5.0.1-lenny and retrieve information about >>>> running domains using >>>> >>>> domain.info()[0] >>>> >>>> The domain object is retrieved via connection.lookupByUUIDString(...) >>>> and stored as a variable called "domain". Usually the running domains >>>> have the state 1 (VIR_DOMAIN_RUNNING) or 2 (VIR_DOMAIN_BLOCKED), but >>>> sometimes it happens that 0 (VIR_DOMAIN_NOSTATE) is returned. >>>> Why does tha...