Hi lancer,
As Osier said, libvirt hasn't a independent API for cloning an
existing guest, instead of using virStorageVolGetXMLDesc API to
get a guest volume xml description and then calling
virStorageVolCreateXMLFrom API to clone a new volume.
For python-virtinst component, you may use virt-clone to implement
this, for libvirt component, you may directly use python binding
API or virsh tool 'vol-clone' to implement it.
I hope it's helpful for you.
- Alex
----- Original Message -----
Sent: Wednesday, November 10, 2010 9:30:28 AM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi
Subject: [libvirt] Is there an API for clone?
Hi, guys
So, is there an API to clone an existing VM or not?
Thank you!
Regards
2010-11-10
Lancer
--
libvir-list mailing list
__________ Information from ESET Smart Security, version of virus signature database 5605 (20101109) __________
The message was checked by ESET Smart Security.