Ticket #1037 (closed enhancement: fixed)

Opened 10 years ago

Last modified 9 years ago

Auto-shutdown of vrdp-guest

Reported by: markba Owned by:
Priority: minor Component: other
Version: VirtualBox 1.5.4 Keywords: autoshutdown guest host
Cc: Guest type: other
Host type: other


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.


vbox-tool Download (2.9 KB) - added by markba 10 years ago.

Change History

Changed 10 years ago by markba


comment:1 Changed 10 years ago by markba

I made a bash-script to auto-shutdown (saving) running vbox sessions when shutdown of the host occurs. See attachment.

comment:2 Changed 10 years ago by frank

There is a VBoxManage command

VBoxManage list runningvms

comment:3 Changed 10 years ago by markba

@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 Changed 9 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use