Headless mode: how to launch VBoxHeadless without window?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
realtebo
Posts: 11
Joined: 15. Sep 2009, 20:50
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Win7, Xp, Ubuntu

Headless mode: how to launch VBoxHeadless without window?

Post 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?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Headless mode: how to launch VBoxHeadless without window

Post 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.
realtebo
Posts: 11
Joined: 15. Sep 2009, 20:50
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Win7, Xp, Ubuntu

Re: Headless mode: how to launch VBoxHeadless without window

Post by realtebo »

Yes, it works. I don't know why my shortcut was not working ...
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Headless mode: how to launch VBoxHeadless without window

Post 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...
Post Reply