VirtualBox

Opened 11 years ago

Last modified 11 years ago

#11856 new enhancement

Quick shutdown of all vms wanted

Reported by: ED Owned by:
Component: VM control Version: VirtualBox 4.2.12
Keywords: vboxmanage controlvm Cc:
Guest type: all Host type: Linux

Description

This is not a bug, but an enhancement-question

I'm running Debian 7.0. When i'm shutting down the system (This can manual or automatic or by powerloss and other causes..) Init sends the SIGTERM signal and 5 sec later the SIGKILL.

In the /etc/rcx.d the vbox-services are executed for shutdown/reboot at the beginning of the shutdown/reboot. K02vboxautostart-service K02vboxballoonctrl-services K02vboxweb-services K03vboxdrv (after this unmouting nfs takes place)

Because of the shutdown order, i cannot move the proces more to the back. I can only try to shutdown the vm's before vboxservices are going down. This means a K01 for my script.

I did make a script to put the vm's in savestate one by one. (because a powerdown will not work for some machines.) Saving a machine takes a few seconds. I want to save 5 or more vm's.

By default i can save one vm. With some tuning i can save 4 vm's before the host go's down.

The problem is, that the other vm's are just stopped. And could lose data, because the proces is killed, without the change to save the state off the machine.

I have a question.

Is it possible to make a command likje this:

vboxmanage controlvm all savestate

And that this command brings all machines down at once. Not one after an other but alltogether. So it go's quicker and can be done in 5-10 sec.

Or an other sollution would be, the possibility to run commands on the background. So i can call all vm's one by one and don't have to wait for finishing before i can call the next one.

something like this:

vboxmanage controlvm <vm> savestate &

Thanks

Attachments (1)

vboxcontrol (3.5 KB ) - added by ED 11 years ago.

Download all attachments as: .zip

Change History (2)

by ED, 11 years ago

Attachment: vboxcontrol added

comment:1 by ED, 11 years ago

I have added the script i use in /etc/init.d to bring down the vm's during shutdown/reboot.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use