Start VM when someone wants to connect over RDP

Discussions related to using VirtualBox on Linux hosts.
Post Reply
niklasgre
Posts: 1
Joined: 18. Apr 2020, 07:27

Start VM when someone wants to connect over RDP

Post by niklasgre »

Hey!

I've installed VirtualBox on Debian and installed Windows 10 in a vm. I've also set up the RDP connection to the guest.

Can I create a script, that if a client wants to connect via RDP, the guest starts/resumes automatically?
Can I create a script, that if a client disconnnects via RDP, the vm will be paused?

Thank you!
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: Start VM when someone wants to connect over RDP

Post by scottgus1 »

niklasgre wrote:Can I create a script
Yes, you sure can! Only thing is figuring out the trigger to monitor when RDP is attempted then stopped. That trigger is not provided by Virtualbox.

Starting and pausing the guest can be done via 'vboxmanage' commands ('startvm" and 'controlvm')
Post Reply