Page 1 of 1

Start VM when someone wants to connect over RDP

Posted: 18. Apr 2020, 07:30
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!

Re: Start VM when someone wants to connect over RDP

Posted: 19. Apr 2020, 16:13
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')