User Tools

Site Tools


wiki:windows:virtualbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:windows:virtualbox [2019/09/20 13:17] mattwiki:windows:virtualbox [2021/01/16 15:02] (current) matt
Line 1: Line 1:
 ====== Virtual Box on Windows ====== ====== Virtual Box on Windows ======
- 
 ===== Headless Virtual Machines ===== ===== Headless Virtual Machines =====
 +
 +Add command path to Windows in elevated Command Prompt:
 +<code>
 +set PATH=%PATH%;"C:\Program Files\Oracle\VirtualBox"
 +</code>
 +
 +Find the UUID of your VMs with:
 +<code>
 +VBoxManage list vms
 +</code>
 +
 To run a VM as headless, make a Batch file containing: To run a VM as headless, make a Batch file containing:
 <code> <code>
-cd "C:\Program Files\Oracle\Virtual Box" 
 VBoxManage startvm {uuid} --type headless VBoxManage startvm {uuid} --type headless
 </code> </code>
Line 12: Line 21:
 To stop a headless VM, make a batch file containing: To stop a headless VM, make a batch file containing:
 <code> <code>
-cd "C:\Program Files\Oracle\Virtual Box" 
 VBoxManage controlvm {uuid} acpipowerbutton VBoxManage controlvm {uuid} acpipowerbutton
 </code> </code>
 This will shutdown the VM properly. If for some reason the VM does not respond to it you can us 'poweroff' instead. This simulates a hard shutdown. This will shutdown the VM properly. If for some reason the VM does not respond to it you can us 'poweroff' instead. This simulates a hard shutdown.
  
wiki/windows/virtualbox.txt · Last modified: 2021/01/16 15:02 by matt