All of lore.kernel.org
 help / color / mirror / Atom feed
* What is the difference between XenAPI and XenAPI-Extensions
@ 2015-09-04 18:49 D'Mita Levy
  2015-09-07  9:06 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: D'Mita Levy @ 2015-09-04 18:49 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1673 bytes --]

Hello,

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

[-- Attachment #1.2: Type: text/html, Size: 2062 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-07  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.