I'm relatively knew to VirtualBox- I like what I see so far. I was wondering, is there a way to notify my guest OS (winXP) of when its being resumed from a VirtualBox suspended state? I'm looking to have a script run on launch of the VM. I know I could do a startup/login script- thought I'm using my VM for an automated task and would like to speed up the startup/boot as fast as possible.
Thanks in advance for any ideas.
Run Script when VM Resumes from Suspend State?
-
eheaton
- Posts: 2
- Joined: 29. Apr 2011, 07:16
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: WinXP, Win7, Ubuntu
Re: Run Script when VM Resumes from Suspend State?
I'll actually answer my own question. I ended up writing a windows script that launched the VM from VBoxManage, waited for it to launch, then ran the "VBoxManage guestcontrol exec" command to run a script on the guest host. Worked like a charm.