VirtualBox

Ticket #1037 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 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

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

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

Change History

Changed 6 years ago by markba

vbox-tool

comment:1 Changed 6 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 6 years ago by frank

There is a VBoxManage command

VBoxManage list runningvms

comment:3 Changed 6 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 5 years ago by frank

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

www.oracle.com
ContactPrivacy policyTerms of Use