From c509b5cd0b238baa8614865b877e5b4ec2893814 Mon Sep 17 00:00:00 2001
From: Daniel Veillard The examples are stored per section depending on the main focus
- of the example: Getting the compilation options and libraries dependancies needed
+ of the example: Getting the compilation options and libraries dependancies needed
to generate binaries from the examples is best done on Linux/Unix by using
the pkg-config data which should have been installed as part of make
-install step or when installing the libvirt development package: Demonstrate the basic use of the library to connect to the hypervisor and extract domain informations. Uses: Usage: info1 Author: Daniel VeillardLibvirt set of C code examples
gcc -o example example.c `pkg-config libvirt --libs`
Informations Examples
info1.c: Extract informations about Xen domain 0
gcc -o example example.c `pkg-config libvirt --libs`
Demonstrate the basic use of the library to connect to the hypervisor and extract domain informations.
Uses:
Usage:
info1
Author: Daniel Veillard
Demonstrate the basic use of the library to suspend and resume a domain. If no id is given on the command line this script will suspend and resume the first domain found which is not Domain 0.
Uses:
Usage:
suspend [id]
Author: Daniel Veillard