Re: [one-users] vmm driver result in shell

2013-04-03 Thread Tobias Zillner
I think this will solve my problem.

Many thanks for your great support!!!

Regards,

Tobias


2013/4/2 Carlos Martín Sánchez cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Mon, Apr 1, 2013 at 6:00 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Sat, Mar 30, 2013 at 5:30 PM, Tobias Zillner 
 tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner tobias.zill...@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 cmar...@opennebula.org
 *An:* Tobias Zillner tobias.zill...@gmx.at
 *Cc:* users users@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

 On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner 
 tobias.zill...@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 cmar...@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

Re: [one-users] vmm driver result in shell

2013-04-02 Thread Carlos Martín Sánchez
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 | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Mon, Apr 1, 2013 at 6:00 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Sat, Mar 30, 2013 at 5:30 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner 
 tobias.zill...@gmx.atwrote:

  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 cmar...@opennebula.org
 *An:* Tobias Zillner tobias.zill...@gmx.at
 *Cc:* users users@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

 On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner 
 tobias.zill...@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 cmar...@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

Re: [one-users] vmm driver result in shell

2013-04-01 Thread Carlos Martín Sánchez
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 | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Sat, Mar 30, 2013 at 5:30 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

  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 cmar...@opennebula.org
 *An:* Tobias Zillner tobias.zill...@gmx.at
 *Cc:* users users@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

 On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner 
 tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

  On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner 
 tobias.zill...@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

Re: [one-users] vmm driver result in shell

2013-03-30 Thread Tobias Zillner
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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

  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 cmar...@opennebula.org
 *An:* Tobias Zillner tobias.zill...@gmx.at
 *Cc:* users users@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

 On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner 
 tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

  On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner tobias.zill...@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@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmm driver result in shell

2013-03-25 Thread Carlos Martín Sánchez
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 | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmm driver result in shell

2013-03-25 Thread Carlos Martín Sánchez
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 | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


 On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmm driver result in shell

2013-03-25 Thread Tobias Zillner

It depends which commad i am executing. Dump memory is resource intesive but commds like read the process list shoudnt cost to much performance.



The problem is that the usershould be able tochoose 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. Mrz 2013 um 13:19 Uhr
Von:Carlos Martn Snchez cmar...@opennebula.org
An:Tobias Zillner tobias.zill...@gmx.at
Cc:users users@lists.opennebula.org
Betreff:Re: [one-users] vmm driver result in shell

Is your command very resource-intensive?


Im 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 Martn, MSc
Project Engineer
OpenNebula -The Open-source Solution for Data Center Virtualization
www.OpenNebula.org  cmar...@opennebula.org  @OpenNebula



On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner tobias.zill...@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 Martn Snchez cmar...@opennebula.org

Hi,


What kind of results will you present to the user?





The commands that trigger a driver action are asynchronous, so you cant 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 Martn, MSc
Project Engineer
OpenNebula -The Open-source Solution for Data Center Virtualization
www.OpenNebula.org  cmar...@opennebula.org  @OpenNebula





On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner tobias.zill...@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 dont 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@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
















___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] vmm driver result in shell

2013-03-25 Thread Carlos Martín Sánchez
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 | cmar...@opennebula.org |
@OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org


On Mon, Mar 25, 2013 at 1:47 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

  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 cmar...@opennebula.org
 *An:* Tobias Zillner tobias.zill...@gmx.at
 *Cc:* users users@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

 On Mon, Mar 25, 2013 at 12:59 PM, Tobias Zillner tobias.zill...@gmx.atwrote:

 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 cmar...@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 | cmar...@opennebula.org | 
 @OpenNebulahttp://twitter.com/opennebula

  On Fri, Mar 22, 2013 at 2:37 PM, Tobias Zillner 
 tobias.zill...@gmx.atwrote:

  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@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org