All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: D'Mita Levy <dlevy022@fiu.edu>, xen-devel@lists.xen.org
Subject: Re: What is the difference between XenAPI and XenAPI-Extensions
Date: Mon, 7 Sep 2015 10:06:20 +0100	[thread overview]
Message-ID: <1441616780.25589.40.camel@citrix.com> (raw)
In-Reply-To: <CANiypX4hXmMY7oWt2AWf7f0MZf+9ffQG517FQPrpK-eggY7Nyw@mail.gmail.com>

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@lists.xen.org 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@lists.xen.org
> http://lists.xen.org/xen-devel

      reply	other threads:[~2015-09-07  9:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-04 18:49 What is the difference between XenAPI and XenAPI-Extensions D'Mita Levy
2015-09-07  9:06 ` Ian Campbell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441616780.25589.40.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=dlevy022@fiu.edu \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.