Headless mode: how to launch VBoxHeadless without window?

Discussions related to using VirtualBox on Windows hosts.

Headless mode: how to launch VBoxHeadless without window?

Postby realtebo » 2. Oct 2015, 12:24

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   Expand viewCollapse view
"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?
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

Postby scottgus1 » 2. Oct 2015, 13:34

I believe the command is:
Code: Select all   Expand viewCollapse view
vboxmanage startvm {"vmname" or UUID} --type headless

I just tried it and got a headless guest with no command window.
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
 
Posts: 3558
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Win7

Re: Headless mode: how to launch VBoxHeadless without window

Postby realtebo » 5. Oct 2015, 12:05

Yes, it works. I don't know why my shortcut was not working ...
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

Postby scottgus1 » 5. Oct 2015, 13:38

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...
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
 
Posts: 3558
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Win7


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 29 guests