Recently I came to know about Headless features for VirtualBox and was curious as to how it works.
When using Headless, there is not a need to start VirtualBox GUI which is nice and removes clutters from Desktop.
Here’s a demo on how to start VirtualBox Headless.
List available VMs.
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\dinh>cd "c:\Program Files\Oracle\VirtualBox" c:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms "arrow" {202d474e-7b00-4fce-a38a-844a650545b8}
Start VM Headless.
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe startvm arrow --type headless Waiting for VM "arrow" to power on... VM "arrow" has been successfully started. c:\Program Files\Oracle\VirtualBox>exit
Test connection to VM.
VM was shutdown in the next step while connected.
dinh@CMWPHV1 ~ $ ssh oracle@192.168.56.11 oracle@192.168.56.11's password: Last login: Tue May 27 17:34:30 2014 from 192.168.56.1 The Oracle base remains unchanged with value /u01/app/oracle oracle@arrow:san:/home/oracle $ Broadcast message from root@arrow.localdomain (unknown) at 17:38 ... The system is going down for halt NOW! Broadcast message from root@arrow.localdomain (unknown) at 17:38 ... The system is going down for halt NOW! Connection to 192.168.56.11 closed by remote host. Connection to 192.168.56.11 closed. dinh@CMWPHV1 ~ $
Shutdown VM.
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe controlvm arrow acpipowerbutton
