Opened 17 years ago
Closed 16 years ago
#1037 closed enhancement (fixed)
Auto-shutdown of vrdp-guest
Reported by: | markba | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 1.5.4 |
Keywords: | autoshutdown guest host | Cc: | |
Guest type: | other | Host type: | other |
Description
When running a guest in headless (vrdp) mode, it would be nice when this sessions will be properly shutdown when the host is taken down. I opt for using 'savestate' when downing the session.
In linux, this could be implementend in the /etc/init.d.vboxdrv script, in the stop-section. Just iterate over all registered sessions, in close them down whenever active. I try to build some bash-code and post this here.
Note. This is only a problem when using vrdp-sessions. When starting a non-vrdp session, the gui askes for a shutdown-option on downing the host.
Attachments (1)
Change History (5)
by , 17 years ago
comment:1 by , 17 years ago
I made a bash-script to auto-shutdown (saving) running vbox sessions when shutdown of the host occurs. See attachment.
comment:3 by , 17 years ago
@frank. Script was based on 1.5.x where there was no 'VBoxManage list runningvms'; I'll change the script for more efficiency....
Ontopic. I noticed the following: in the /etc/init.d.vboxdrv script, there's a function called stop_vms(). However, this is not used (called) within the script it self. I guess it should be possible to call stop_vms() just before unloading (stopping) the kernel-driver. If done that way, this feature request is fullfilled...
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
vbox-tool