VirtualBox Managing an Environment from Command Line: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 12: Line 12:


<pre>
<pre>
#!/bin/bash
ssh -o ConnectTimeout=2  -t service-user@<ip-address> sudo -n init 0
# alternative
# ssh -o ConnectTimeout=2  -t root@<ip-address> init 0
#
# do the same for all other machines
#
</pre>
</pre>

Revision as of 05:19, 8 January 2016

Internal

Start an Environment


Stop an Environment

#!/bin/bash

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

# alternative
# ssh -o ConnectTimeout=2  -t root@<ip-address> init 0

#
# do the same for all other machines
#