Starting VBox Instance in Background

This is for discussing general topics about how to use VirtualBox.
Post Reply
FaBiBu
Posts: 2
Joined: 11. May 2016, 11:42

Starting VBox Instance in Background

Post by FaBiBu »

Hello,

actual i start my vm' using the comand
vboxmanage startvm vmname --type headless

At this time i am logged in with RDP in the Win 2008 server which ist my VBox host.

But wenn ich close the RDP connection, all my vm's going down.

How kann i start VBox vm's in Background?

What exactly are --type sdl and --type seperate

Who kann i start vm's at boot time under a specific user account?

Thanks for any help.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Starting VBox Instance in Background

Post by scottgus1 »

i am logged in with RDP in the Win 2008 server which ist my VBox host. But wenn ich close the RDP connection, all my vm's going down.
Microsoft's Remote Desktop is heavily connected to the logged-in account, and it may very well interfere with running guests, as there may be a log-off depending on how MS RDP is disconnected, and the guests will be killed.

You could use another remote desktop software that doesn't force a log-off, like UltraVNC or TeamViewer or some such. (I use UltraVNC and have no issues running guests remotely.) Put your command in a shortcut and put the shortcut in the Startup folder, then have your host automatically log on and lock itself. The guests will run when the host boots and auto-logs-in, and you could remote in as needed. Use Virtualbox's Remote Desktop server to see the guests' windows.

Or use the Task Scheduler to run the guests so no auto-log-in is necessary, then you could keep using MS RDP and use Virtualbox's RDP to see the guests.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Starting VBox Instance in Background

Post by noteirak »

VBoxVmService is what you are looking for. Have at look at the last post for the latest release and the official website.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply