search for: libvirtmod

Displaying 20 results from an estimated 26 matches for "libvirtmod".

Did you mean: libvirtd
2012 Jul 10
1
Issue with getCPUStats and getMemoryStats
...s no attribute 'VIR_NODE_CPU_STATS_ALL_CPUS' >>> print con.getCPUStats(2, None, 0, 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2173, in getCPUStats ret = libvirtmod.virNodeGetCPUStats(self._o, cpuNum, params, nparams, flags) *AttributeError: 'module' object has no attribute 'virNodeGetCPUStats'* >>> print con.getMemoryStats(2, None, 0, 0) Traceback (most recent call last): File "<stdin>", line 1, in <module>...
2013 Jul 19
2
How to insert vcpupin in guest xml file
Hi all, I am trying to add vcpupin in the guest xml file. I am working with openstack and the code I have is python bound. I investigated through the code and found that the elemets in xml file are set in get_guest_config function. Now the thing is I am not able to set vcpupin element. I mean I tried guest.cputune_vcpupin but it's not working. Help me out, please! Thanks.   ~Peeyush Gupta
2014 May 06
2
libvirt 1.2.4 and virt-manager 0.9.0 are not incompatible
...m when I completed the update of libvirt from 0.10 to 1.2.4 . The problem was that virt-manager(version 0.9.0) could not start and reported error : "ImportError: /usr/lib64/libvirt.so.0: version 'LIBVIRT_PRIVIATE_0.10.2' not found (required by /usr/lib64/python2.6/site-packages/libvirtmod.so)". I found the libvirt.so.0 link file just in the /usr/lib64/ directory , but it was linking to libvirt.so.0.1002.4 .not to the libvirt.so.0.10.2 I made libvirt.so.0 to link to libvirt.so.0.10.2 and restarted virt-manager , virt-manager started normally then restarted libvirtd...
2014 Mar 12
2
libvirtError: this function is not supported by the connection driver: virInterfaceDefineXML
...Traceback (most recent call last)/home/saju/<ipython-input-96-0536ffe3fa23> in <module>()----> 1 conn.interfaceDefineXML(br1xml,0) /usr/lib/python2.7/dist-packages/libvirt.pyc in interfaceDefineXML(self, xml, flags) 2750 libvirtd. """ 2751 ret = libvirtmod.virInterfaceDefineXML(self._o, xml, flags)-> 2752 if ret is None:raise libvirtError('virInterfaceDefineXML() failed', conn=self) 2753 __tmp = virInterface(self, _obj=ret) 2754 return __tmp libvirtError: this function is not supported by the connection driver: virInt...
2012 Jan 12
1
No module named cygvirtmod
...s-variant=rhel5 --accelerate -l http://bla -x ks=http://bla/ks.cfg -m MA:CA:DD:RE:SS Traceback (most recent call last): File "/usr/bin/virt-install", line 31, in ? import libvirt File "/usr/lib64/python2.4/site-packages/libvirt.py", line 12, in ? import cygvirtmod as libvirtmod ImportError: No module named cygvirtmod This is a standard CentOS 5.4 x86_64 install, and I have not been able to find a solution on the web.
2013 Sep 09
0
Re: How to insert vcpupin in guest xml file
...following functions for pining vcpus. class virDomain: ..... def pinVcpu(self, vcpu, cpumap): """Dynamically change the real CPUs which can be allocated to a virtual CPU. This function requires privileged access to the hypervisor. """ ret = libvirtmod.virDomainPinVcpu(self._o, vcpu, cpumap) if ret == -1: raise libvirtError ('virDomainPinVcpu() failed', dom=self) return ret def pinVcpuFlags(self, vcpu, cpumap, flags): """Dynamically change the real CPUs which can be allocated to a virtual...
2013 Sep 27
0
libvirt+python on windows support
...windows , and using the python api just like in linux . But I found that ,libvirt-python can only run in cygwin environment . In windows environment , when I input "import libvirt" It indicates *ImportError: DLL load failed:* * * * it seemed something wrong when importing libvirtmod* * * * *the libvirt.py libvirtmod.pyd is compiled in *cygwin* environment * * But it doesnot show anything more. Is there anyone do this thing like me ? Anyone can provide any solution to use python-libvirt in a normal python programe. Thanks.
2013 Sep 29
1
virt-manager could not start with error "version `LIBVIRT_PRIVATE_0.10.2' not found "
...by my self, and i have compiled libvirt-1.1.1, libvirt-1.1.2, libvirt-1.1.3. After the installation of libvirt, i run virt-manager, but it print error as below. *ImportError: /usr/local/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_0.10.2' not found (required by /usr/lib/python2.6/site-packages/libvirtmod.so)* I found one topic talk about the erorr, but get nothing https://www.centos.org/modules/newbb/viewtopic.php?topic_id=41893&forum=56 anyone meet the same error as me? any response is appreciated!
2014 Jun 13
1
Re: Status of Host machine.
...fnintion. def isAlive(self): """Determine if the connection to the hypervisor is still alive A connection will be classed as alive if it is either local, or running over a channel (TCP or UNIX socket) which is not closed. """ ret = libvirtmod.virConnectIsAlive(self._o) if ret == -1: raise libvirtError ('virConnectIsAlive() failed', conn=self) return ret Once if you connect to a host thereafter it is always giving status as 1(true), no matter whether the connection is broken or not.. -Sijo On Fri, Jun 13, 2014...
2014 Aug 15
1
virt-manager and libvirt-python
Hello! I'm trying to work with virt-manager but getting SIGTRAP signal. It is done with gdb under MinGW32 on Windows 7 64-bit. I have Python 2.7.8. 32-bit. As I can see from backtrace ( http://pastebin.com/JhN6XgYb ), there is something wrong with libvirtmod.pyd. Also I couldn't find how to solve " typelib for AppIndicator3" error. So I try to debug libvirt-python. For doing this, I building libvirt-python with -g flag.   python setup.py build --compiler=mingw32 -g install But I have undefined reference to _imp__Py_InitModule4. http:/...
2015 Nov 11
2
Re: xen+ssh with openauth
...---------------------------------- libvirtError Traceback (most recent call last) <ipython-input-105-a702d3dbcff3> in <module>() ----> 1 con.listAllDomains() /usr/lib64/python2.7/site-packages/libvirt.pyc in listAllDomains(self, flags) 4925 ret = libvirtmod.virConnectListAllDomains(self._o, flags) 4926 if ret is None: -> 4927 raise libvirtError("virConnectListAllDomains() failed", conn=self) 4928 4929 retlist = list() ============================================================================ Any suggestion w...
2012 Aug 31
1
virDomainMemoryPeek: bad behavior under workload
...s/volatility.py", line 81, in memory_dump for block in Memory(self.ctx): File "/home/see/workspace/NOX/src/NOX/lib/libtools.py", line 179, in next libvirt.VIR_MEMORY_PHYSICAL) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1759, in memoryPeek ret = libvirtmod.virDomainMemoryPeek(self._o, start, size, flags) SystemError: error return without exception set I can't run more than 3 environments concurrently on a Xeon Quad with 8Gb of memory. I guess the RPC reply goes in timeout because the system is under heavy load but I'm not sure as the error...
2013 Nov 20
2
how to install libvirt-python
Hi, I have successfully installed libvirt-.0.10.0 from source ./configure make make install How can I check that if libvirt-python is installed? Search the folders, it seems there is no such file [root@tiger ~]# find /usr/ -name libvirt-python [root@tiger ~]# find . -name libvirt-python [root@tiger ~]#   Regards, Mahmood
2015 Nov 11
0
Re: xen+ssh with openauth
...---- > libvirtError Traceback (most recent call last) > <ipython-input-105-a702d3dbcff3> in <module>() > ----> 1 con.listAllDomains() > > /usr/lib64/python2.7/site-packages/libvirt.pyc in listAllDomains(self, flags) > 4925 ret = libvirtmod.virConnectListAllDomains(self._o, flags) > 4926 if ret is None: > -> 4927 raise libvirtError("virConnectListAllDomains() > failed", conn=self) > 4928 > 4929 retlist = list() > ================================================================...
2011 Feb 08
1
Libvirt in Windows not working
Hi, This is Arpita. I am using Libvirt API in the Windows Vista system.VMware is installed over there.I have installed Libvirt and Python 2.6 in the Windows Vista system andhave written a small test file in Python. Here is the code: import libvirt* * import sys conn = libvirt.openReadOnly(None) if conn == None: print *'Failed to open connection to the hypervisor' * sys.exit(1)
2012 May 06
0
storage-pools and volumes
...;driver name='qemu' type='raw' cache='none' io='native'/> ? ? ? <source dev='/dev/vg001/myhost.blah.com'/> ? ? ? <target dev='hda' bus='ide'/> ? ? </disk> /usr/lib64/python2.6/site-packages/libvirt.py has: ? ? ? ? ret = libvirtmod.virStorageVolCreateXML(self._o, xmldesc, flags) ? ? ? ? if ret is None:raise libvirtError('virStorageVolCreateXML() failed', pool=self) ? ? ? ? __tmp = virStorageVol(self, _obj=ret) ? ? ? ? return __tmp however i don't know the xml format for storage vol thanks
2013 Nov 20
0
Re: how to install libvirt-python
..._lxc.py /usr/lib64/python2.7/site-packages/libvirt_lxc.pyc /usr/lib64/python2.7/site-packages/libvirt_lxc.pyo /usr/lib64/python2.7/site-packages/libvirt_qemu.py /usr/lib64/python2.7/site-packages/libvirt_qemu.pyc /usr/lib64/python2.7/site-packages/libvirt_qemu.pyo /usr/lib64/python2.7/site-packages/libvirtmod.so /usr/lib64/python2.7/site-packages/libvirtmod_lxc.so /usr/lib64/python2.7/site-packages/libvirtmod_qemu.so /usr/share/doc/libvirt-python-1.1.3.1 /usr/share/doc/libvirt-python-1.1.3.1/events-python /usr/share/doc/libvirt-python-1.1.3.1/events-python/event-test.py /usr/share/doc/libvirt-python-1.1...
2014 Mar 12
0
Re: [libvirt] libvirtError: this function is not supported by the connection driver: virInterfaceDefineXML
...gt; /home/saju/<ipython-input-96-0536ffe3fa23> in<module>() > ----> 1 conn.interfaceDefineXML(br1xml,0) > > /usr/lib/python2.7/dist-packages/libvirt.pyc ininterfaceDefineXML(self, xml, flags) > 2750 libvirtd. """ > 2751 ret= libvirtmod.virInterfaceDefineXML(self._o, xml, flags) > -> 2752 if retis None:raise libvirtError('virInterfaceDefineXML() failed', conn=self) > 2753 __tmp= virInterface(self, _obj=ret) > 2754 return __tmp > > libvirtError: this function is...
2014 May 07
0
LibvirtError: Operation not supported : JSON monitor is required
...m when I completed the update of libvirt from 0.10 to 1.2.4 . The problem was that virt-manager(version 0.9.0) could not start and reported error : "ImportError: /usr/lib64/libvirt.so.0: version 'LIBVIRT_PRIVIATE_0.10.2' not found (required by /usr/lib64/python2.6/site-packages/libvirtmod.so)". I found the libvirt.so.0 link file just in the /usr/lib64/ directory , but it was linking to libvirt.so.0.1002.4 .not to the libvirt.so.0.10.2 I made libvirt.so.0 to link to libvirt.so.0.10.2 and restarted virt-manager , virt-manager started normally then restarted libvirtd...
2014 May 09
0
[Solved]:LibvirtError: Operation not supported : JSON monitor is required
...m when I completed the update of libvirt from 0.10 to 1.2.4 . The problem was that virt-manager(version 0.9.0) could not start and reported error : "ImportError: /usr/lib64/libvirt.so.0: version 'LIBVIRT_PRIVIATE_0.10.2' not found (required by /usr/lib64/python2.6/site-packages/libvirtmod.so)". I found the libvirt.so.0 link file just in the /usr/lib64/ directory , but it was linking to libvirt.so.0.1002.4 .not to the libvirt.so.0.10.2 I made libvirt.so.0 to link to libvirt.so.0.10.2 and restarted virt-manager , virt-manager started normally then restarted libvirtd...