<div dir="ltr">Yes it worked fine for me. Thank you for the advice!<div><br></div><div>Now I am working on how to save the examiation results. The one document way sounds very nice. </div><div><br></div><div>Can you give me some exapmles how to use them? </div>
<div><br></div><div>Regards,</div><div>Tobias<br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/25 Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>The message sent from the core to the drivers is built by VirtualMachineManager::format_message. This message is then received by the driver, see for instance one_vmm_exec.rb poll method, and decoded (VirtualMachineDriver.rb).</div>


<div><br></div><div>I guess you can safely add a new xml element to the message if you need to.</div><div><br></div><div><br></div><div>Let me know if this works out.</div><div><br></div><div>Regards</div><div><div class="im">
<div>--<br>

Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>



</div>
<br><br></div><div><div class="h5"><div class="gmail_quote">On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner <span dir="ltr"><<a href="mailto:tobias.zillner@gmx.at" target="_blank">tobias.zillner@gmx.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div style="font-family:Verdana;font-size:12.0px"><div>
<div>It depends which commad i am executing. Dump memory is resource intesive but commds like read the process list shoudn't cost to much performance.</div>

<div> </div>

<div>The problem is that the usershould be able to choose wich command is executed. So i must add a possibility to get this command to the driver. Or am i thinking wrong?</div>

<div> </div>

<div>Regards, </div>

<div> </div>

<div>Tobias</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0 10px 10px;border-left:2px solid #c3d9e5;word-wrap:break-word">
<div style="margin:0 0 10px 0"><b>Gesendet:</b> Montag, 25. März 2013 um 13:19 Uhr<br>
<b>Von:</b> "Carlos Martín Sánchez" <<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>><br>
<b>An:</b> "Tobias Zillner" <<a href="mailto:tobias.zillner@gmx.at" target="_blank">tobias.zillner@gmx.at</a>><br>
<b>Cc:</b> users <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
<b>Betreff:</b> Re: [one-users] vmm driver result in shell</div><div><div>

<div name="quoted-content">Is your command very resource-intensive?
<div> </div>

<div>I'm thinking that maybe you could just add your commands to the periodic VM monitorization. Or add a flag somewhere to indicate if the operation should be done in the next poll action... If you avoid to change the OpenNebula code it will be easier to distribute, use with newer versions, etc.
<div>
<div>--<br>
Carlos Martín, MSc<br>
Project Engineer<br>
OpenNebula - The Open-source Solution for Data Center Virtualization
<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13.0px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="http://cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span></div>




</div>
 

<div class="gmail_quote">On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner <span><<a href="http://tobias.zillner@gmx.at" target="_blank">tobias.zillner@gmx.at</a>></span> wrote:

<blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex">Hi,
<div> </div>

<div>thank you for your quick answer!  </div>

<div> </div>

<div>I am executing a volatility command  on the driver. Results are some kind of lists or process information which is show directly on the screen/shell. </div>

<div> </div>

<div>At the moment i added functionality to one.vm.action to process my commands. Which part would be best to save the results in a document ressource or add it to the vm template?</div>

<div>How can i invoke this?</div>

<div> </div>

<div>Regards,</div>

<div>Tobias</div>

<div>
<div>
<div> 
<div class="gmail_quote">2013/3/25 Carlos Martín Sánchez <span><<a href="http://cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span>

<blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex">Hi,
<div> </div>

<div>What kind of results will you present to the user?</div>

<div> </div>

<div> </div>

<div>The commands that trigger a driver action are asynchronous, so you can't get any result immediately to the user.</div>

<div> </div>

<div>If you are modifying the c++ core, you could add your custom information in the VM template, this way the users will see it in the 'onevm show' output.</div>

<div> </div>

<div>Or you could use the generic document resources [1]. These are just like the templates managed with onetemplate; they will store anything and will also have owner, group, acl, permissions...</div>

<div> </div>

<div>Regards</div>

<div> </div>

<div>[1] <a href="http://opennebula.org/documentation:rel3.8:api#actions_for_document_management" target="_blank">http://opennebula.org/documentation:rel3.8:api#actions_for_document_management</a>

<div>--<br>
Carlos Martín, MSc<br>
Project Engineer<br>
OpenNebula - The Open-source Solution for Data Center Virtualization
<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13.0px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="http://cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span></div>




</div>
 

<div class="gmail_quote">
<div>
<div>On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner <span><<a href="http://tobias.zillner@gmx.at" target="_blank">tobias.zillner@gmx.at</a>></span> wrote:</div>
</div>

<blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1.0px rgb(204,204,204) solid;padding-left:1.0ex">
<div>
<div>Hello,
<div> </div>

<div>my Name is Tobias Zillner and I am working on a master thesis about forensics in the cloud.</div>

<div> </div>

<div>For my practical part I decided to add forensic services to open nebula. </div>

<div> </div>

<div>So i extended the onevm commad and added a function forensics. I extended the whole way through the code. </div>

<div>At the moment i am able to execute my own vmmd script, in which a forensic tool (volatility) is called and analyse the virtual machines.</div>

<div> </div>

<div>But now I don't know how to get the result back to the user. Basically i want to create a scenario like this:</div>

<div> </div>

<div>A user just puts in onevm forensics id and the analysis result is shown to him in the screen.</div>

<div> </div>

<div>Anybody can help me here and tell me what funtions to call or how the way back to the user shell works?</div>

<div>Does anyone have experience with adding funtions and the flow of commands through the code?</div>

<div> </div>

<div>THX!</div>

<div> </div>

<div>Best Regards,</div>

<div> </div>

<div>Tobias</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="http://Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
 </blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div></div></div>
</blockquote></div><br>
</div></div></div>
</blockquote></div><br></div>