Page 1 of 1
Running a script in the guest on pause and resume
Posted: 24. Jul 2014, 00:23
by wjones
I'd like to run a script in a Linux guest just before the VM is paused, and another script just after the VM is resumed. Does anyone know if this is possible? If it is, I'd expect that it would depend on the Guest Additions.
Re: Running a script in the guest on pause and resume
Posted: 25. Jul 2014, 22:32
by noteirak
Virtualbox does not provide any hooks to perform pre-tasks, so you would need to handle this yourself outside of Virtualbox via a script or something like that.
As for the actualy guest part, yes you would need the guest additions and you could use
guestcontrol in vboxmanage or the Virtualbox API.