Marcin Krol
2011-Jan-03 17:39 UTC
[libvirt-users] availability of snapshots functionality via Python bindings
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone, Is this being worked on? I rather need this thing... Although my system is Debian Lenny, not RH: kulfon 10.0.0.228 /etc/default % dpkg -l | grep libvirt ii libvirt-bin 0.4.6-10+lenny1 the programs for the libvirt library ii libvirt0 0.4.6-10+lenny1 library for interfacing with different virtualization systems ii python-libvirt 0.4.6-10+lenny1 libvirt Python bindings I don't see anything like snapshots available via libvirt.virDomain:>>> dir(dom0)['ID', 'OSType', 'UUID', 'UUIDString', 'XMLDesc', '__del__', '__doc__', '__init__', '__module__', '_conn', '_o', 'attachDevice', 'autostart', 'blockPeek', 'blockStats', 'connect', 'coreDump', 'create', 'destroy', 'detachDevice', 'info', 'interfaceStats', 'maxMemory', 'maxVcpus', 'memoryPeek', 'migrate', 'name', 'pinVcpu', 'reboot', 'resume', 'save', 'schedulerParameters', 'schedulerType', 'setAutostart', 'setMaxMemory', 'setMemory', 'setSchedulerParameters', 'setVcpus', 'shutdown', 'suspend', 'undefine', 'vcpus'] - -- Regards, mk - -- Premature optimization is the root of all fun. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNIgnXAAoJEFMgHzhQQ7hO86AIAIxQkWyYJ3vAsP579Geb0hhj XbkU2BSlxAkxToBoPoOYnS+W5ZlSf0/kqwJh2yQDCCCfwUXJ7k+QLQfTlJB+qOAZ xB/gA7c9wQLiHERWSYk81DoQWeatgHt/7G2cSP2G5O7I1l0C61mLEZQAQ8SqQ9Ay hVi7DhVX0qCNJTLAoN/C0ZLOAzRAnrKj2LOpqjBqU7CzD2Zx60FoUElRebSuiv8x aPPNgk5c7XQsEx+aXteobWwHdrlSeWXg4yomXrGQZ5CcJSTzQst0juhesK0CvdFM 6cLhBoAqI0C94CFNm1f2XP2ytnrCIQc3SXBNgHhy4SosqGE9+XMBLwq70OIYGCI=Q9VB -----END PGP SIGNATURE-----
Chris Lalancette
2011-Jan-03 17:59 UTC
[libvirt-users] availability of snapshots functionality via Python bindings
On 01/03/11 - 06:39:35PM, Marcin Krol wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello everyone, > > Is this being worked on? I rather need this thing... > > Although my system is Debian Lenny, not RH: > > > kulfon 10.0.0.228 /etc/default % dpkg -l | grep libvirt > ii libvirt-bin 0.4.6-10+lenny1 the > programs for the libvirt library > ii libvirt0 0.4.6-10+lenny1 > library for interfacing with different virtualization systems > ii python-libvirt 0.4.6-10+lenny1 > libvirt Python bindingsSnapshot support is indeed in the libvirt python bindings already, but you are using an *ancient* version. You need at least libvirt 0.8.2 to get snapshot support. -- Chris Lalancette