Elegant way to terminate the VirtualBox VBoxSVC.exe process
According to the user manual ("Chapter 8. VBoxManage"), "8.33. VBoxManage metrics":
... The data is available as long as the background VBoxSVC process is alive. That process terminates shortly after all VMs and frontends have been closed. ...
Then from "8.35. VBoxManage dhcpserver":
... After this, VirtualBox will automatically start the DHCP server for given internal or host-only network as soon as the first virtual machine which uses that network is started. ...
So, VBoxSVC.exe
should stop automatically. OTOH, I'm guessing but I don't think you'd have any problem stopping VBoxNetDHCP.exe
and VBoxNetNAT.exe
with OS signalling, if they don't already stop automatically too. But I don't see why you'd need to stop them.
FWIW, I just had the VBoxNetAdp.sys
driver crash for lack of memory, killing the network between my VMs, and rerunning VBoxNetNAT.exe
manually, then VBoxManage.exe natnetwork start --netname NatNetwork
got the network back without issues. That seems to indicate one would have no problem by stopping it with OS signals.