Documentation
This page contains documentation for application writers using the ruby-libvirt bindings
RDoc API documentation
The API documentation for the ruby-libvirt bindings are automatically generated out of the source code using RDoc.
Examples
Sometimes the easiest way to learn is by looking through example code. The following examples each demonstrate one or more of the methods in the library. Note that some of the examples may not work on your particular setup, depending on the hypervisor in use, the version of libvirt in use, and the version of the ruby-libvirt bindings in use.
- Connect to a hypervisor
- Connect to a hypervisor with authentication needed
- Retrieve various information about a hypervisor
- Manipulate a domain
- React to domain events
- Query the connection pointer for information
- Create and retrieve a secret
- Create a network
- Create a network filter
- List information about node (host) devices
- Create an interface
- Create a storage pool and storage volume and retrieve information