Page 1 of 1

poweroff from within guest

Posted: 16. Aug 2011, 12:28
by vv75
is there a way to poweroff the vm programmatically from within the Guest OS? (assuming Windows Additions are installed in that guest)

this is the situation: the VM has a snapshot, when started it performs some processing. when processing is complete, it shuts down the guest, and a batch on the host restores the snapshot and runs the vm again.

i would like to avoid shutting down the guest gracefully. it's a waste of time because the vm is restored from snapshot anyway each time. we need a statistically significant number of iterations (>10,000) and would like to do them as quickly as possible.

Re: poweroff from within guest

Posted: 16. Aug 2011, 15:36
by vbox4me2
If a batchfile on the Host starts the VM you might as well add a waiting routine for a file to appear on a shared folder that you create from the Guest, then kill the VM and restart.

Re: poweroff from within guest

Posted: 16. Aug 2011, 18:44
by vv75
thank you, i forgot about shared folders!