Re: Investigate VM via Libvirt API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 20, 2013 at 01:42:06PM +0300, Yaniv Hadad wrote:
> Hi All,
> 
> I am Java developer that want to start working with Libvirt API.
> My first target is to investigate Host + all his instances. 
> (CPU,Storage,Network,State,Name..etc.)
> Can some one give me good code example or article for that purpose.
> 
> I prefer to use Java , but , python is also good for this target

The Java API works the same as the C API.

Here is an example program in Java:

http://libvirt.org/git/?p=libvirt-java.git;a=blob;f=src/test/java/test.java;h=3442becb01a325633ea4a5d499fbe4390ab06c54;hb=HEAD

(Look for conn.listDefinedDomains etc)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]