libvirt/docs/examples/python
Jim Meyering 07613d2020 remove all trailing blank lines
by running this command:
git ls-files -z | xargs -0 perl -pi -0777 -e 's/\n\n+$/\n/'
This is in preparation for a more strict make syntax-check
rule that will detect trailing blank lines.
2009-07-16 15:06:42 +02:00
..
.gitignore generate .gitignore files from .cvsignore ones 2008-10-17 10:03:15 +00:00
dominfo.py remove all trailing blank lines 2009-07-16 15:06:42 +02:00
domrestore.py * configure.in libvirt.spec.in docs/examples/Makefile.am 2006-04-25 16:08:48 +00:00
domsave.py Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
domstart.py Fix python examples to use read-write conn 2009-07-06 17:05:41 +02:00
guava.xml * configure.in libvirt.spec.in docs/examples/Makefile.am 2006-04-25 16:08:48 +00:00
Makefile.am * configure.in libvirt.spec.in docs/examples/Makefile.am 2006-04-25 16:08:48 +00:00
papaya.xml * configure.in libvirt.spec.in docs/examples/Makefile.am 2006-04-25 16:08:48 +00:00
README remove all trailing blank lines 2009-07-16 15:06:42 +02:00

Some simple examples on how to use the Python API for libvirt

The examples are:

dominfo.py  - print information about a running domU based on the results of
              virDomainGetInfo and virDomainGetXMLDesc
domstart.py - create a domU from an XML description if the domU isn't
              running yet
domsave.py  - save all running domU's into a directory
domrestore.py - restore domU's from their saved files in a directory

The XML files in this directory are examples of the XML format that libvirt
expects, and will have to be adapted for your setup. They are only needed
for domstart.py