mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
07613d2020
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.
15 lines
601 B
Plaintext
15 lines
601 B
Plaintext
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
|