poweroff from within guest

Discussions about using Windows guests in VirtualBox.
Post Reply
vv75
Posts: 6
Joined: 3. Apr 2010, 08:20
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: xp,w7,vista,ubuntu

poweroff from within guest

Post 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.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: poweroff from within guest

Post 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.
vv75
Posts: 6
Joined: 3. Apr 2010, 08:20
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: xp,w7,vista,ubuntu

Re: poweroff from within guest

Post by vv75 »

thank you, i forgot about shared folders!
Post Reply