libvirt/docs/examples/python
Jim Meyering e04912a9f0 Remove all trailing blanks; turn on the rule to detect them.
* Makefile.cfg (local-checks-to-skip): Remove sc_trailing_blank.
* .x-sc_trailing_blank: New file, to exempt the few binary files.
2008-02-05 19:27:37 +00:00
..
.cvsignore
dominfo.py Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
domrestore.py
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
Makefile.am
papaya.xml
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