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

Re: [Xen-API] Problem while resuming VM



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@xxxxxxxxx> 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@xxxxxxxx>:
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@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


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

 


Rackspace

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