WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] Some questions about XenAPI

To: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] Some questions about XenAPI
From: Lonangel <lonangel@xxxxxxxxx>
Date: Mon, 23 Nov 2009 01:03:40 +0000
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 22 Nov 2009 17:03:43 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=dnZCtw8uNXPbLvJYhRfD1jLMDLzlikDyzVFS0e4p7uo=; b=avp/4bemc7+JEkefqoWeYJ0wqJG4idrjhqmchg4XJUbdq1pSy+2vxvNWetA1sjVT0+ WYV1+PPzLZjuK9OjlAaRvBNHo76yK2rR++5ZR2AjNJUKvk/MYeL3S1QNRekUU5v46RyR uyAKGUhokL1q63EJBKjZSiU9oEcFUdytSm9po=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=tSmAauhEpvtaoVlviy5Wxsv57lxszrIrjJP7/lHHXVuez6PhfldpZzesKFqrhW3a48 rn8BbleODqhevjTbIlO8AlrUy9cAjaZT1AlpdjfdCh6qfgYlwGCv3bilu5eA/Z3JYxiL 1My+DQj+RDdpiIxbXMNcg7Px5Qj9GnngbaxmA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <81A73678E76EA642801C8F2E4823AD2143B80E2A20@xxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <4B0952AC.6090706@xxxxxxxxx> <81A73678E76EA642801C8F2E4823AD2143B80E2A1F@xxxxxxxxxxxxxxxxxxxxxxxxx> <4B09A251.7070308@xxxxxxxxx> <81A73678E76EA642801C8F2E4823AD2143B80E2A20@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)
I installed the new XCP from xen.org and read the http://www.xen.org/files/XenCloud/sdk.pdf where it said to download the sdk image but i cant seem to find it.

Another thing is possible to make Xenclient work with XCP?


Dave Scott wrote:

Hi,

The snapshot of XCP on xen.org includes a fairly recent xapi development build, which contains the VM.revert call. Binary .isos and sources are here:

http://www.xen.org/products/cloud_source.html

[ NB The development version of xapi will only work on XCP. At some point in future a stable version will become part of the next XenServer. ]

Cheers,

Dave

*From:* Lonangel [mailto:lonangel@xxxxxxxxx]
*Sent:* 22 November 2009 20:43
*To:* Dave Scott
*Cc:* xen-api@xxxxxxxxxxxxxxxxxxx
*Subject:* Re: [Xen-API] Some questions about XenAPI

Thanks for answering  so quickly.

Dave Scott wrote:

Hi,
    Does anyone know if its possible to execute a command on a guest

    through

    the xenapi?

    For example:

    I want to test a group of programs written in java or c, the VM already

    knows how to test this programs.

    My main problem here is that i want to send data into the VM machine,

    like the program file and start the command that evaluates those

    programs, also get the output from the program.

You cannot do this through the XenAPI currently. I recommend doing something like this: 1. run a service inside your VM which accepts network connections; 2. discover the VM's IP address via the XenAPI (VM_guest_metrics.networks map); 3. connect to the service directly; and
4. transmit the command and receive the results via TCP/IP.
Would this work for you?
I think that if it's the only way, for now it has to work. :)

    The second problem is, I need to revert the VM back to its initial

    state

    ( clean all the damage the program might have done ) so it can be able

    to test another program in the same conditions it tested the previous

    program. The question is, can I revert a VM to a previous snapshot

    using

    the Xen API?

Yes: use the call
  VM.revert(session ref, VM ref)
where 'VM ref' is an existing snapshot (disk snapshot) or checkpoint (disk + 
memory snapshot)
Note that reverting to a checkpoint (disk + memory snapshot) will result in the VM being suspended. To make it run again you must call 'VM.resume'. NB VM.revert is in the development version of xapi. Hope that helps,
Dave
How exactly can i get the development version of the Xapi and does it work with Xenserver or only with XCP?

Thank you



_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>