[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-API] Problem while resuming VM
On Wed, Apr 22, 2015 at 09:29:16AM +0000, Ronald Liu wrote: > 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? > The code can be found by way of here: https://github.com/xenserver/xen-api/releases going to the XS65 release tag gets us here: https://github.com/xenserver/xen-api/blob/3e4e56e61ee5eb107c4087f6b7cbb9ef9242d1bc/ocaml/xapi/xapi_xenops.ml#L2093 which is unfortunately a bit unhelpful. The upshot is that the VM has probably died very quickly after resuming. Any idea why that might happen? Jon > 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 _______________________________________________ Xen-api mailing list Xen-api@xxxxxxxxxxxxx http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |