1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="hostpowertweaks">
|
---|
4 | <title>Handling of Host Power Management Events</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>Some host power management events are handled by <ph conkeyref="vbox-conkeyref-phrases/product-name"/>. The
|
---|
8 | actual behavior depends on the platform: </p>
|
---|
9 | <ul>
|
---|
10 | <li>
|
---|
11 | <p><b outputclass="bold">Host Suspends.</b> This event is generated when the host is about
|
---|
12 | to suspend, that is, the host saves the state to some nonvolatile storage and powers off. </p>
|
---|
13 | <p>
|
---|
14 | This event is currently only handled on Windows hosts and Mac
|
---|
15 | OS X hosts. When this event is generated, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> will
|
---|
16 | pause all running VMs.
|
---|
17 | </p>
|
---|
18 | </li>
|
---|
19 | <li>
|
---|
20 | <p><b outputclass="bold">Host Resumes.</b> This event is
|
---|
21 | generated when the host woke up from the suspended state.
|
---|
22 | </p>
|
---|
23 | <p>This event is currently only handled on Windows hosts and Mac OS X hosts. When this event is generated, <ph
|
---|
24 | conkeyref="vbox-conkeyref-phrases/product-name"/> will resume all VMs which are where paused before. </p>
|
---|
25 | </li>
|
---|
26 | <li>
|
---|
27 | <p><b outputclass="bold">Battery Low.</b> The battery
|
---|
28 | level reached a critical level, usually less than 5 percent
|
---|
29 | charged.
|
---|
30 | </p>
|
---|
31 | <p>This event is currently only handled on Windows hosts and Mac OS X hosts. When this event is generated, <ph
|
---|
32 | conkeyref="vbox-conkeyref-phrases/product-name"/> will save the state and terminate all VMs in preparation
|
---|
33 | of a potential host powerdown. </p>
|
---|
34 | <p>The behavior can be configured. By executing the following command, no VM is saved: </p>
|
---|
35 | <pre xml:space="preserve">$ VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 0</pre>
|
---|
36 | <p>This is a global setting as well as a per-VM setting. The per-VM value has higher precedence than the global
|
---|
37 | value. The following command will save the state of all VMs but will not save the state of VM "foo": </p>
|
---|
38 | <pre xml:space="preserve">$ VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 1
|
---|
39 | $ VBoxManage setextradata "foo" "VBoxInternal2/SavestateOnBatteryLow" 0</pre>
|
---|
40 | <p>The first line is actually not required as by default the savestate action is performed. </p>
|
---|
41 | </li>
|
---|
42 | </ul>
|
---|
43 | </body>
|
---|
44 |
|
---|
45 | </topic>
|
---|