Execessive amounts of vboxheadless.exe

This is for discussing general topics about how to use VirtualBox.
Post Reply
Michael37
Posts: 11
Joined: 2. Jan 2017, 18:28
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: MS 7, 8.x, 10, Server 2k8, 2k12, *nix

Execessive amounts of vboxheadless.exe

Post by Michael37 »

Greetings,

I am trying to 'tune' my Windows host machine and noticed that I have 25 vboxheadless processes running.

OS Win10 Pro
Ram 32gb
Intel i7 2.7Ghz
HDD 500GB SSD & 1TB HDD
Virtual Box 5.1.12


I only have 9 VM guest running.

Why are there so many?

How do I minimize the amount or processes spawned?

Is headless the preferred way to run the VM?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Execessive amounts of vboxheadless.exe

Post by socratis »

Michael37 wrote:I have 25 vboxheadless processes running ... I only have 9 VM guest running.
You're 2 processes short, are you sure you counted them right? You get 3 VBoxHeadless/VM. Don't ask why, I'm pretty sure they didn't just do it because they were masochists.
Michael37 wrote:How do I minimize the amount or processes spawned?
Why do you care?
Michael37 wrote:Is headless the preferred way to run the VM?
Preferred for who and why? For me personally it's not, for others definitely.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
JustinH
Posts: 106
Joined: 6. Aug 2015, 05:09

Re: Execessive amounts of vboxheadless.exe

Post by JustinH »

Mr. socratis,
I can't directly speak for Michael, but maybe he just doesn't want a bunch of potentially useless processes running taking up resources. There is nothing unreasonable about that. Some users like to know what is going on with their systems. So that is why he might "care".

Whether these processes are useless or not is another issue.

Justin
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Execessive amounts of vboxheadless.exe

Post by socratis »

JustinH wrote:Whether these processes are useless or not is another issue.
I'm afraid that this is precisely the issue. What are those processes doing? Well, I'm afraid that I cannot answer that since I don't know the developer's thinking or the whole API setup. I'm 99.99999% sure that they are useful, otherwise they wouldn't be spawning like that.

These processes are not background processes running at all times. They are running as a result of launching a headless VM. Maybe they act as a server-client setup? I don't know. Kill them and let me know how it goes.

Did you ever ask Microsoft why they have so many svchost.exe applications running? Do you think they're not needed?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Execessive amounts of vboxheadless.exe

Post by scottgus1 »

Here's a screenshot of a Process Explorer view of a normal Virtualbox guest:
(Please pardon the black on purple, it's a Process Explorer thing.
And my columns are CPU, PID, I/O delta, I/O read bytes, I/O write bytes, I/O other bytes, private bytes, working set)
virtualbox normal 3 processes.PNG
virtualbox normal 3 processes.PNG (8.24 KiB) Viewed 2603 times
extra load 0 CPU, 3.59 MB private bytes, 11.25MB working set.

And here's a headless guest:
virtualbox headless 3 processes.PNG
virtualbox headless 3 processes.PNG (10.3 KiB) Viewed 2603 times
There's also a "conhost" process.
extra load 0 CPU, 4.94MB private bytes, 16.6MB working set.

In the days of multiple GB of memory and GHz processors, a few MB and 0 GHz load doesn't strike me as much, honestly.

Consider that headless is different than it used to be. A headless guest can be given a window, without any remote-in RDP system. So there no doubt has to be another watchdog-like process besides the actual guest process monitoring when to start the window.

Here's a headless guest given a window after start for reference:
virtualbox headless given a window.PNG
virtualbox headless given a window.PNG (12.96 KiB) Viewed 2603 times
Martin
Volunteer
Posts: 2561
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Execessive amounts of vboxheadless.exe

Post by Martin »

Post Reply