VirtualBox Managing an Environment from Command Line: Difference between revisions
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
=Overview= | =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] in the environment's management directory, and modify env, updating the environment topology and the start/stop/status functions. | |||
Then: | |||
<pre> | |||
envc status|start|stop | |||
</pre> | |||
=Start an Environment= | =Start an Environment= |
Revision as of 18:43, 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] in the environment's management directory, and modify env, updating the environment topology and the start/stop/status functions.
Then:
envc status|start|stop
Start an Environment
VBoxManage startvm lb.modcluster.local --type headless VBoxManage startvm ap1.modcluster.local --type headless VBoxManage startvm ap2.modcluster.local --type headless
Stop an Environment
ssh -o ConnectTimeout=1 -t root@172.20.2.43 sudo -n init 0 ssh -o ConnectTimeout=1 -t root@172.20.2.42 sudo -n init 0 ssh -o ConnectTimeout=1 -t root@172.20.2.41 sudo -n init 0