libvirt/docs/examples/python
Jim Meyering 164fbbd6e6 generate .gitignore files from .cvsignore ones
* Makefile.maint (sync-vcs-ignore-files): New target.
Prompted by a patch from James Morris.
http://thread.gmane.org/gmane.comp.emulators.libvirt/8619/focus=8773
Add all (now-generated) .gitignore files.
* .gitignore: New file.
* build-aux/.gitignore: New file.
* docs/.gitignore: New file.
* docs/devhelp/.gitignore: New file.
* docs/examples/.gitignore: New file.
* docs/examples/python/.gitignore: New file.
* gnulib/lib/.gitignore: New file.
* gnulib/lib/arpa/.gitignore: New file.
* gnulib/lib/netinet/.gitignore: New file.
* gnulib/lib/sys/.gitignore: New file.
* gnulib/tests/.gitignore: New file.
* include/.gitignore: New file.
* include/libvirt/.gitignore: New file.
* po/.gitignore: New file.
* proxy/.gitignore: New file.
* python/.gitignore: New file.
* python/tests/.gitignore: New file.
* qemud/.gitignore: New file.
* src/.gitignore: New file.
* tests/.gitignore: New file.
* tests/confdata/.gitignore: New file.
* tests/sexpr2xmldata/.gitignore: New file.
* tests/virshdata/.gitignore: New file.
* tests/xencapsdata/.gitignore: New file.
* tests/xmconfigdata/.gitignore: New file.
* tests/xml2sexprdata/.gitignore: New file.
2008-10-17 10:03:15 +00:00
..
.cvsignore unleash the hush puppies 2006-07-05 21:52:52 +00:00
.gitignore generate .gitignore files from .cvsignore ones 2008-10-17 10:03:15 +00:00
dominfo.py Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00: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 Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00: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 blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00: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