Page 1 of 1

Headless mode: how to launch VBoxHeadless without window?

Posted: 2. Oct 2015, 12:24
by realtebo
After version 4.1.something VBoxHeadless was launching a VM in headless mode without leave any track on windows host. No windows, no console window.

Today I've the need to launch a VM in headless mode under a windows 10 host.

I created a shortcut on my desktop with this command

Code: Select all

"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" --comment "Wind 7 32bit Sp1" --startvm "61120c3e-f74a-4198-912b-25054f332176"
The problem is that actually there is a console window in my desktop. Am i doing wrong something or is that a regression froma previous version?

Re: Headless mode: how to launch VBoxHeadless without window

Posted: 2. Oct 2015, 13:34
by scottgus1
I believe the command is:

Code: Select all

vboxmanage startvm {"vmname" or UUID} --type headless
I just tried it and got a headless guest with no command window.

Re: Headless mode: how to launch VBoxHeadless without window

Posted: 5. Oct 2015, 12:05
by realtebo
Yes, it works. I don't know why my shortcut was not working ...

Re: Headless mode: how to launch VBoxHeadless without window

Posted: 5. Oct 2015, 13:38
by scottgus1
When you run Vboxheadless.exe from the desktop (or a batch file, etc.) it does show a command window. Somehow when Vboxmanage runs the guest headless, even though Vboxheadless shows in Task Manager as the running process for the guest, no command window shows. I do notice that when I view the processes in Process Explorer, the guest I started with "Vboxmanage --type headless" is running via the VboxHeadless process under VBoxSVC.exe. Maybe that hides the command window. Just one of those things...