Hi,
I recently updated to xenapi SDK 6.2 and met some strange issue with VM snapshotting

Target:
XenServer 6.2 b70446c

Here is the code, for example:

xen_session session;
xen_vm vm, result;
char *uuid="XXXXXXXXXXXXXXXXXXXX";
char *new_uuid;
...
if(xen_vm_assert_operation_valid(session, vm, XEN_VM_OPERATIONS_SNAPSHOT))
    {
        xen_vm_snapshot(session, &result, vm, uuid);
        xen_vm_get_uuid(session, &new_uuid, result);
        xen_vm_free(vm);
        xen_vm_free(result);
        return new_uuid;
    }


This code will always be FALSE in my case - I tested on three hosts with 6.1 and 6.2. If I ignore it and just do the snapshot, I get the following error:

2VM_SNAPSHOT_WITH_QUIESCE_NOT_SUPPORTED OpaqueRef:77655d2e-4c6d-9970-0e2f-65dd3d2ec2cc

Error is the same for every VM I have. I do not use xen_vm_snapshot_with_quiesce, but this error pointed to it. VMs were created mostly in XenServer 5.0/5.6
It happens for every VM I tested
I have no way to test it with SDK 6.1 ath the moment but it worked for sure.

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Reply via email to