VirtualBox Managing an Environment from Command Line: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[VirtualBox Operations#Managing_an_Environment_from_Command_Line]]
* [[VirtualBox_Operations#Managing_an_Environment_from_Command_Line|VirtualBox Operations]]
* [[VirtualBox CLI#Managing_an_Environment_from_Command_Line]]
* [[VirtualBox_CLI#Managing_an_Environment_from_Command_Line|VirtualBox CLI]]


=Start an Environment=
=Overview=


<pre>
A set of scripts that wrap around the VirtualBox CLI and manage an environment can be found here:
</pre>
 
To instrument an environment, copy [https://github.com/NovaOrdis/playground/blob/master/VirtualBox/envc envc] and [https://github.com/NovaOrdis/playground/blob/master/VirtualBox/functions functions] (or set PLAYGROUND_HOME) in the environment's management directory, and modify env, updating the environment topology and the start/stop/status functions.


=Stop an Environment=
Then:


<pre>
<pre>
#!/bin/bash
envc status|start|stop
</pre>


ssh -o ConnectTimeout=2  -t service-user@<ip-address> sudo -n init 0
=GitHub=


# alternative
{{External|https://github.com/NovaOrdis/playground/tree/master/VirtualBox}}
# ssh -o ConnectTimeout=2  -t root@<ip-address> init 0
 
#
# do the same for all other machines
#
</pre>

Latest revision as of 18:53, 24 May 2017

Internal

Overview

A set of scripts that wrap around the VirtualBox CLI and manage an environment can be found here:

To instrument an environment, copy envc and functions (or set PLAYGROUND_HOME) in the environment's management directory, and modify env, updating the environment topology and the start/stop/status functions.

Then:

envc status|start|stop

GitHub

https://github.com/NovaOrdis/playground/tree/master/VirtualBox