[one-users] vmm driver result in shell
Tobias Zillner
tobias.zillner at gmx.at
Wed Apr 3 05:43:28 PDT 2013
I think this will solve my problem.
Many thanks for your great support!!!
Regards,
Tobias
2013/4/2 Carlos Martín Sánchez <cmartin at opennebula.org>
> You could try to encode it in base 64,
>
> Regards
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - The Open-source Solution for Data Center Virtualization
> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>
>
> On Mon, Apr 1, 2013 at 6:00 PM, Tobias Zillner <tobias.zillner at gmx.at>wrote:
>
>> THnaks for your advice, but I decided to save the results as additional
>> xml attribute in the vm template. So the user can see the result with onevm
>> show id command.
>>
>> Basically this way is already working. I have only one problem left.
>>
>> I send the memory forensic result from the driver to the core with
>> sendmessage.
>>
>> The problem is now i get the result in multiple parts. This means for
>> every line of the result a own log is created and so on...
>> But i want to get it as one message and save it also as one message.
>>
>> How can i solve this issue. Is it possible to capsule the message into
>> something?
>>
>> Regards,
>> Tobias
>>
>>
>> 2013/4/1 Carlos Martín Sánchez <cmartin at opennebula.org>
>>
>>> Think of Documents as Templates with a number that identifies documents
>>> of the same type. For the reference documentation, see the Document and
>>> DocumentPool classes of the ruby oca [1]. For an example, you may want to
>>> take a look at the OpenNebula Apps source code [2].
>>>
>>> Regards
>>>
>>> [1] http://opennebula.org/doc/3.8/oca/ruby/
>>> [2] http://opennebula.org/software:software
>>>
>>> --
>>> Carlos Martín, MSc
>>> Project Engineer
>>> OpenNebula - The Open-source Solution for Data Center Virtualization
>>> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>>>
>>>
>>> On Sat, Mar 30, 2013 at 5:30 PM, Tobias Zillner <tobias.zillner at gmx.at>wrote:
>>>
>>>> Yes it worked fine for me. Thank you for the advice!
>>>>
>>>> Now I am working on how to save the examiation results. The one
>>>> document way sounds very nice.
>>>>
>>>> Can you give me some exapmles how to use them?
>>>>
>>>> Regards,
>>>> Tobias
>>>>
>>>>
>>>>
>>>>
>>>> 2013/3/25 Carlos Martín Sánchez <cmartin at opennebula.org>
>>>>
>>>>> 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).
>>>>>
>>>>> I guess you can safely add a new xml element to the message if you
>>>>> need to.
>>>>>
>>>>>
>>>>> Let me know if this works out.
>>>>>
>>>>> Regards
>>>>> --
>>>>> Carlos Martín, MSc
>>>>> Project Engineer
>>>>> OpenNebula - The Open-source Solution for Data Center Virtualization
>>>>> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
>>>>>
>>>>>
>>>>> On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner <tobias.zillner at gmx.at
>>>>> > wrote:
>>>>>
>>>>>> 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.
>>>>>>
>>>>>> 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?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Tobias
>>>>>>
>>>>>> *Gesendet:* Montag, 25. März 2013 um 13:19 Uhr
>>>>>> *Von:* "Carlos Martín Sánchez" <cmartin at opennebula.org>
>>>>>> *An:* "Tobias Zillner" <tobias.zillner at gmx.at>
>>>>>> *Cc:* users <users at lists.opennebula.org>
>>>>>> *Betreff:* Re: [one-users] vmm driver result in shell
>>>>>> Is your command very resource-intensive?
>>>>>>
>>>>>> 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.
>>>>>> --
>>>>>> Carlos Martín, MSc
>>>>>> Project Engineer
>>>>>> OpenNebula - The Open-source Solution for Data Center Virtualization
>>>>>> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula>
>>>>>>
>>>>>> On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner <
>>>>>> tobias.zillner at gmx.at> wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> thank you for your quick answer!
>>>>>>>
>>>>>>> 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.
>>>>>>>
>>>>>>> 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?
>>>>>>> How can i invoke this?
>>>>>>>
>>>>>>> Regards,
>>>>>>> Tobias
>>>>>>>
>>>>>>> 2013/3/25 Carlos Martín Sánchez <cmartin at opennebula.org>
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> What kind of results will you present to the user?
>>>>>>>>
>>>>>>>>
>>>>>>>> The commands that trigger a driver action are asynchronous, so you
>>>>>>>> can't get any result immediately to the user.
>>>>>>>>
>>>>>>>> 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.
>>>>>>>>
>>>>>>>> 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...
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> [1]
>>>>>>>> http://opennebula.org/documentation:rel3.8:api#actions_for_document_management
>>>>>>>> --
>>>>>>>> Carlos Martín, MSc
>>>>>>>> Project Engineer
>>>>>>>> OpenNebula - The Open-source Solution for Data Center
>>>>>>>> Virtualization
>>>>>>>> www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula<http://twitter.com/opennebula>
>>>>>>>>
>>>>>>>> On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner <
>>>>>>>> tobias.zillner at gmx.at> wrote:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> my Name is Tobias Zillner and I am working on a master thesis
>>>>>>>>> about forensics in the cloud.
>>>>>>>>>
>>>>>>>>> For my practical part I decided to add forensic services to open
>>>>>>>>> nebula.
>>>>>>>>>
>>>>>>>>> So i extended the onevm commad and added a function forensics. I
>>>>>>>>> extended the whole way through the code.
>>>>>>>>> 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.
>>>>>>>>>
>>>>>>>>> But now I don't know how to get the result back to the user.
>>>>>>>>> Basically i want to create a scenario like this:
>>>>>>>>>
>>>>>>>>> A user just puts in onevm forensics id and the analysis result is
>>>>>>>>> shown to him in the screen.
>>>>>>>>>
>>>>>>>>> Anybody can help me here and tell me what funtions to call or how
>>>>>>>>> the way back to the user shell works?
>>>>>>>>> Does anyone have experience with adding funtions and the flow of
>>>>>>>>> commands through the code?
>>>>>>>>>
>>>>>>>>> THX!
>>>>>>>>>
>>>>>>>>> Best Regards,
>>>>>>>>>
>>>>>>>>> Tobias
>>>>>>>>> _______________________________________________
>>>>>>>>> Users mailing list
>>>>>>>>> Users at lists.opennebula.org
>>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130403/b64a08cf/attachment-0002.htm>
More information about the Users
mailing list