VirtualBox Managing an Environment from Command Line: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
* [[VirtualBox CLI#Managing_an_Environment_from_Command_Line]]
* [[VirtualBox CLI#Managing_an_Environment_from_Command_Line]]


=Start/Stop an Environment=
=Start an Environment=


Link as <tt>startenv</tt> and <tt>stopenv</tt> to the following <tt>vbenv</tt> script:
<pre>
VBoxManage startvm lb.modcluster.local --type headless
VBoxManage startvm ap1.modcluster.local --type headless
VBoxManage startvm ap2.modcluster.local --type headless
</pre>
 
=Stop an Environment=


<pre>
<pre>
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
</pre>
</pre>

Revision as of 06:04, 8 January 2016

Internal

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