VirtualBox

Opened 16 years ago

Closed 15 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)

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

Download all attachments as: .zip

Change History (5)

by markba, 16 years ago

Attachment: vbox-tool added

vbox-tool

comment:1 by markba, 16 years ago

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

comment:2 by Frank Mehnert, 16 years ago

There is a VBoxManage command

VBoxManage list runningvms

comment:3 by markba, 16 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 Frank Mehnert, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use