libvirt/examples/python
Daniel P. Berrange cebeba7bd7 Move docs/examples into examples/
* Makefile.am: Add examples/dominfo examples/domsuspend examples/python
  as SUBDIRS
* configure.in: Update AC_OUTPUT for new/old Makefiles
* docs/Makefile.am: Remove examples from SUBDIRS
* docs/examples/info1.c: Move to examples/dominfo/info1.c
* docs/examples/suspend.c: Move to examples/domsuspend/suspend.c
* docs/examples: Remove all remaining files
* docs/examples/python: Moved to examples/python/
* examples/dominfo/Makefile.am, examples/domsuspend/Makefile.am: New
  build files
* libvirt.spec.in: Update to take account of moved examples
2009-09-21 14:41:46 +01:00
..
.gitignore Move docs/examples into examples/ 2009-09-21 14:41:46 +01:00
dominfo.py Move docs/examples into examples/ 2009-09-21 14:41:46 +01:00
domrestore.py Move docs/examples into examples/ 2009-09-21 14:41:46 +01:00
domsave.py Move docs/examples into examples/ 2009-09-21 14:41:46 +01:00
domstart.py Move docs/examples into examples/ 2009-09-21 14:41:46 +01:00
Makefile.am Move docs/examples into examples/ 2009-09-21 14:41:46 +01:00
README Move docs/examples into examples/ 2009-09-21 14:41:46 +01: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