To start it in GUI mode:

vboxmanage startvm VMName -type gui 

To start it in Headless mode:

vboxmanage startvm VMName -type headless 

Switch Modes:

  vboxmanage controlvm VMName savestate

Run the startvm command of your choice.