Thx for the reply.
I did try your methods.And still got the same internal error. Here is the
code after adding start/stop routine
if (!xen_vm_hard_shutdown(session,
task.target_vm->vm)){xen_session_clear_error(session);}
if (!xen_vm_revert(session, task.target_vm->current_snapshot->ref)){res =
1;break;}
if (!xen_vm_resume(session, task.target_vm->vm, false, true)){res=2;}
if (res==2){
xen_session_clear_error(session);
if (!xen_vm_hard_shutdown(session,
task.target_vm->vm)){xen_session_clear_error(session);}
if (!xen_vm_start(session,
task.target_vm->vm,false,true)){xen_session_clear_error(session);}
if (!xen_vm_hard_shutdown(session,
task.target_vm->vm)){xen_session_clear_error(session);}
}
if (!xen_vm_revert(session, task.target_vm->current_snapshot->ref)){res =
1;break;}
if (!xen_vm_resume(session, task.target_vm->vm, false, true)){res=2;break;}
Did I do something wrong?
PS: I failed to find any error-raiseing code in xapi_xenops.ml:Line 2093 on
the master branch in Github. How can I find out which version(commit) of
the XAPI source code is corresponding to the one running on my Xenserver?
Thanks any.
On Wed, 15 Apr 2015 at 18:22 Renato Fontana <skyrenato@gmail.com> wrote:
> Try to start/stop it manually via the API to troubleshoot.
>
> I'm also using xenserver for malware processing purposes. One guy recently
> commited a new cuckoo xenserver machinery that does all of that
> starting/stopping process. It might be handy for you:
> https://github.com/cuckoobox/cuckoo/blob/master/modules/machinery/xenserver.py
>
> Cheers,
>
>
> 2015-04-15 8:25 GMT+02:00 Ronald Liu <lzsdc@live.com>:
>
>> Hi.
>>
>> I'm working on a malware detecting system which need to revert and
>> resume VM from checkpoint frequently. This error occured when resuming a VM
>> which is just reverted.
>>
>> Internal error: File "xapi_xenops.ml", line 2093, characters 3-9:
>> Assertion failed
>>
>> I couldn't find useful info in xensource.log or audit.log. How can I
>> determine whether it's a problem in my code or in XenServer?
>> It's running on XenServer 6.5 via C API.
>>
>> Thanks
>>
>> _______________________________________________
>> Xen-api mailing list
>> Xen-api@lists.xen.org
>> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>>
>>
>