Download directory - click here for tarballs of all released versions (Change log)
hg clone http://hg.et.redhat.com/virt/applications/ocaml-libvirt--devel
For more information about Mercurial see the Mercurial website and these instructions.
Libvirt is a portable toolkit to interact with the virtualisation capabilities of Linux, Solaris and other operating systems.
Objective CAML (OCaml) is a modern statically typed functional language with type inference, many features for compile-time safety, with performance comparable to C.
ocaml-libvirt are OCaml bindings for libvirt, allowing you to write OCaml programs and scripts which control virtualisation features. Some things which you might want to do with ocaml-libvirt:
ocaml-libvirt complete API documentation. The main modules are Libvirt.Connect for managing connections, Libvirt.Domain for managing domains, and Libvirt.Network for managing networks.
README file included in the source.
Also included are a couple of tools.
For more information about virt-top, see the virt-top information pages.
mlvirsh is an almost complete reimplementation of virsh, which is mostly command compatible (there are a very few commands missing, and some commands have a slightly different syntax, but broadly speaking they are equivalent programs except that one is written in C and the other in OCaml).
At the time of writing:
| wc -c | wc -l | |
|---|---|---|
| virsh | 126,056 | 4,641 |
| mlvirsh | 19,427 | 598 |
| % size | 15% | 13% |
mlvirtmanager is a demonstration implementation of virt-manager in OCaml. It is not feature-complete by any means, but does allow you to show the running domains and start and stop defined domains. The main functionality missing is the ability to define new virtual machines, change the resources allocated to domains, or show the machine console.
Note: This is not the real virt-manager. For the real virt-manager and screenshots, please go to the virt-manager homepage.
Opening a connection. With this version of libvirt, remote URIs are permitted. mlvirtmanager can also open connections to multiple machines.
After pausing a couple of virtual machines:
Help -> About dialog:
$Id: index.html,v 1.3 2008/07/18 08:29:01 rjones Exp $