[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] What is the difference between XenAPI and XenAPI-Extensions



On Fri, 2015-09-04 at 14:49 -0400, D'Mita Levy wrote:
> Hello,

Hi.

xapi/XenAPI has it's own development list at xen-api@xxxxxxxxxxxxx where
you will likely find more people with the expertise to answer your
questions.

Ian.

> 
> I am a student at FIU working on a school project so I am a not very 
> experienced. Right now I am trying to use the Xen API code I found at 
> https://github.com/xenserver/xenadmin to Snapshot a VM. The project I 
> have so far uses the XenAPI.VM functions and I have been successful in 
> starting and stopping a VM. As an example I perform those actions like 
> this:
> 
>      XenRef<VM> vmRef = VM.get_by_uuid(_session, vmUUID);
>      VM.start(_session, vmRef.opaque_ref, false, true);
> 
> My mentors would like me to try and clone a VM. I have copied the Run() 
> function from VMSnapshotCreateAction.cs and I tried to make a snapshot 
> with the following code:
> 
>    XenRef<VM> vmRef = VM.get_by_uuid(_session, GetUUIDByName(vmName));
>    SnapshotType m_Type = SnapshotType.DISK; //hardcoded snapshot type
>    string snapshot_name = "Testing_Snapshot";
> 
>    XenAPI.VM.async_snapshot(_session, vmRef.opaque_ref, snapshot_name);
> 
> I have two VM's. A Windows XP SP3 VM (No actual OS installed, just the 
> base VM) and an Ubuntu 14.04 Trusty Tahr VM (installed OS and running). 
> The Windows XP SP3 Snapshot gets created successfully but the Ubuntu 
> snapshot does not.
> 
> Upon furthure inspection I notice that XenAPI.VM works for start/stop but 
> XenAPI-Extensions.VM is needed to make snapshots - based on 
> VMSnapshotCreateAction.cs 
> 
> Why is it that I need XenAPI-Extensions.VM to createa  vm reference to 
> make snapshots and cannot use XenAPI.VM? What is the difference between 
> XenAPI and Extensions? Finally, is it possible just to pull out the code 
> so that I can have the core functionality; it seems adding it to my 
> simple WPF project requires a ton of dependencies and references....
> 
> Thanks,
> D'Mita
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.