[libvirt] [PATCH] daemon: Include stdlib.h in dispatch.c
by Matthias Bolte
Otherwise GCC complains about malloc being unknown on FreeBSD.
---
daemon/dispatch.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/daemon/dispatch.c b/daemon/dispatch.c
index 9731614..bf2ac73 100644
--- a/daemon/dispatch.c
+++ b/daemon/dispatch.c
@@ -24,6 +24,7 @@
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
--
1.7.0.4
14 years
Re: [libvirt] Is there an API for clone?
by Alex Jia
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 -----
From: "黄亮" <lancerhuang(a)163.com>
To: "libvir-list" <libvir-list(a)redhat.com>
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
I know there is a command "virt-clone", but I couldn't find the equivalent API here : http://libvirt.org/html/libvirt-libvirt.html
So, is there an API to clone an existing VM or not?
Thank you!
Regards
2010-11-10
Lancer
--
libvir-list mailing list
libvir-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
14 years