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] Programming Xen

To: Jean-Michel Guillaume <jean-michel.guillaume@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-API] Programming Xen
From: Mike Dickson <mike.dickson@xxxxxx>
Date: Tue, 07 Apr 2009 12:34:57 -0500
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 07 Apr 2009 10:35:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49DB8651.1020801@xxxxxxxxxxxxxxx>
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>
Organization: BladeSystem infrastructure R&D
References: <56891b1d0904052308p6b082e7eyc6acc4ffc280cc8@xxxxxxxxxxxxxx> <1239025437.7062.4.camel@mdickson-laptop> <49DB8651.1020801@xxxxxxxxxxxxxxx>
Reply-to: mike.dickson@xxxxxx
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
You're not mistaken.  There's calls to manage the VM lifecycle but not
what's in the VM.  To do that some other remote mechanism would need to
be used.  My comment was really focused on starting with the Citrix
implementation as the XenAPI there is well documented and the SDK's are
more complete including some excellent examples.  Someone familiar with
Xen could make do with opensource fine but the learning curve is less
steep with Citrix Xen if you're just getting started.

My 2 cents, YMMV.

Mike

On Tue, 2009-04-07 at 16:58 +0000, Jean-Michel Guillaume wrote:
> I am pretty interested in that problem...
> Let me know how you get that done ;), because I have no idea.
> Is there any way with xen api to launch a program within the virtual? & 
> to delete a file? I didn't see any such thing yet but I must be mistaken.
> Could you explain exactly what you have to do? For example, do you know 
> the file to erase before cloning the virtual? Is that always the same file?
> The program to run could be a daemon? Is there synchro problems with 
> that program?
> 
> Mike Dickson a écrit :
> > I'd suggest you download a copy of Xen from the Citrix site (there's a
> > free download there) along with the SDK in your favorite language.  This
> > will simplify your work in setting up Xen and the SDK has some very nice
> > examples that do much of what you want to accomplish.
> >
> > Mike
> >
> > On Mon, 2009-04-06 at 06:08 +0000, Jingwei Tan wrote:
> >   
> >> Hey,
> >>
> >> I'm very new to Xen, neither am I very good in Linux.
> >> Currently, I've been given an assignment to write a program of doing
> >> the following task automatically (i.e. without human intervention):
> >> 1. Clone VM
> >> 2. Run program in the VM
> >> 3. Delete file in the VM
> >>
> >> And preferably able to do the following:
> >> 1. Snapshot
> >> 2. MAC configuration
> >> 3. "Hardware" configuration
> >> 4. Capture and Replay keyboard and mouse action
> >>
> >> I am able to achieve it in VMware, but I'm not very sure how should I
> >> approach this assignment (e.g. Which Xen version to use, and is there
> >> any available SDK/API that can do that?).
> >> I'm very lost. Need advice urgently. 
> >>
> >> -- 
> >> Tan
> >>     
> 
-- 
Mike Dickson <mike.dickson@xxxxxx>
BladeSystem infrastructure R&D


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

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