Always shut down and restart

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
mille1j
Posts: 17
Joined: 14. Nov 2013, 19:19

Always shut down and restart

Post by mille1j »

Is it possible to configure a Windows 7 guest on an OSX host to always shut down the guest and therefore always restart it when reopening virtual box? Yes, the resume saves time, but in my environment its a security issue that is easily solved if i can just get the guest to always shut down.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Always shut down and restart

Post by Perryg »

You should be able to lock down just about any feature. See the following link to the user manual chapter 9

http://www.virtualbox.org/manual/ch09.html#guitweaks
mille1j
Posts: 17
Joined: 14. Nov 2013, 19:19

Re: Always shut down and restart

Post by mille1j »

Looked thru that, but really didn't find anything that seemed like it would address it.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Always shut down and restart

Post by Perryg »

9.19.8. Action when terminating the VM
mille1j
Posts: 17
Joined: 14. Nov 2013, 19:19

Re: Always shut down and restart

Post by mille1j »

AWESOME! thanks
mille1j
Posts: 17
Joined: 14. Nov 2013, 19:19

Re: Always shut down and restart

Post by mille1j »

tried running this in terminal:
VBoxManage setextradata “Windows 7" GUI/RestrictedCloseActions SaveState
Still allows use of save state. nuts

must be some error in the syntax here.
mille1j
Posts: 17
Joined: 14. Nov 2013, 19:19

Re: Always shut down and restart

Post by mille1j »

stupid smart quotes. so got this working:
VBoxManage setextradata "Windows 7" GUI/RestrictedCloseActions SaveState

and then, was able to use this
VBoxManage setextradata "Windows" GUI/RestrictedCloseActions SaveState,PowerOff

to make it so that the only option they see is to shutdown. So this is very helpful.

What would be AWESOME though, would be to not even have the dialog and for Virtual Box to just shutdown the PC when you quit it. Possible?
Post Reply