This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-API] Live migration using libxen

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Live migration using libxen
From: Gaurav Dhiman <dimanuec@xxxxxxxxx>
Date: Wed, 4 Mar 2009 22:51:43 -0800
Delivery-date: Wed, 04 Mar 2009 22:51:49 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=qbX4wXk6yJT/OZGcL92Y90WfJ2+FAmSmRgf+xxRW/B4=; b=IXbk9CuqvXA7ZcYRwl41k9aECgKSnXeRABPKaFf39EHJvytGeGdjP0CmT4EqFPnFtd DKMMgbT1wyCC4yBEDcwV+avIhSFdNRNu80gvxeA3W4RFbUbbyzJ6CRmkGO1I75368sh7 rVx4H9vylGKt0pRkSNClfQR4YsXiawE0pej4M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=wWuViVg/vTslW9QNmMlsvvnPO0VS+spOztZNJIfVou4bmC5jyuzF0ar4XIEy2bYPKz E8phElf/0KZFV/pL8EWUEQe9xHT6tNyZwMxmPLkpNUf5RPjpyyubLAjlARcso+Csqz6/ djJVNjmAODN0avpDpaJaLX4jZoHlXMQiURqzU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hello All,

I am trying to write a program that does live migration of domains
dynamically. I am struggling to get the right parameters for the
libxen API for this purpose. I am using:

xen_vm_migrate(xen_session *session, xen_vm vm, char *dest, bool live,
xen_string_string_map *options)

I am having a hard time figuring out what would be the last parameter
to this function (options). Right now I am using
xen_string_string_map_alloc to allocate xen_string_string_map_alloc,
and am passing information on port, node and ssl using it. But for
some reason it fails and complains with the following error message:

"INTERNAL_ERROR an integer is required"

I am not sure why this error message is coming since the "options"
variable is a mapping of string to string. I find no example of this
anywhere in either the test programs nor the documentation. Any inputs
would be valuable!

Thanks in advance,

xen-api mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] Live migration using libxen, Gaurav Dhiman <=