DevOps: Difference between revisions

Jump to navigation Jump to search
790 bytes added ,  28 May 2016
Line 12: Line 12:


''Base reference: [http://stackoverflow.com/a/19017826 Stackoverflow]''
''Base reference: [http://stackoverflow.com/a/19017826 Stackoverflow]''


<span class="shell">given:</span>
<span class="shell">given:</span>
* the name of the virtual machine is '''virtualmachine'''
* the name of the virtual machine is '''virtualmachine'''


<span class="shell">instruction:</span>
<span class="shell">instruction:</span>
Line 34: Line 36:


Use the following line to run the VM in the background: <code>wscript vm-run.vbs</code>
Use the following line to run the VM in the background: <code>wscript vm-run.vbs</code>
</source>


<span class="shell">optional:</span>
 
<span class="shell">optional 1:</span> create a shortcut


You can optionally create a shortcut on your Desktop with the following value in Target:
You can optionally create a shortcut on your Desktop with the following value in Target:
Line 55: Line 57:
VBoxHeadless.exe              7136 Console                    1    83,596 K
VBoxHeadless.exe              7136 Console                    1    83,596 K
</source>
</source>
<span class="shell">optional 2:</span> run it without logging on to the system (similar to a system service)
# Open Task Scheduler
# Under General tab, in security options, choose <span class="package">Run whether user is logged on or not</span>
# Check <span class="package">Run with highest privileges</span>
# Under Triggers tab, create a trigger and choose "At startup" for <span class="package">Begin the task</span>. Make sure <span class="package">Enabled</span> is checked
# Under Actions tab, create an action and choose "Start a program" for <span class="package">Action</span>.  <span class="package">Program/script:</span> should be "C:\Windows\System32\wscript.exe" and <span class="package">Add arguments (optional):</span> is set to "C:\myscripts\vm.run.vbs"

Navigation menu