[libvirt] How to clone a domain using Java API?

Richard W.M. Jones rjones at redhat.com
Thu Jul 8 13:35:18 UTC 2010

On Thu, Jul 08, 2010 at 05:37:21PM +0530, Ganesh Pagade wrote:
> Couldn't find any Java API or even any function in libvirt documentation:
> http://libvirt.org/html/libvirt-libvirt.html
> In case there is no API present can someone please point how this can be
> achieved using existing Java APIs to get the same behavior as virt-clone?

There's no libvirt function to clone VMs, but there are some
tools around.

virt-clone can make an identical copy, adjusting the libvirt

virt-resize can resize an existing VM, which you could also use
for copying.


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw

More information about the libvir-list mailing list