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>
|
---|
8 | Some host power management events are handled by <ph conkeyref="vbox-conkeyref-phrases/product-name"/>.
|
---|
9 | The actual behavior depends on the platform:
|
---|
10 | </p>
|
---|
11 | <ul>
|
---|
12 | <li>
|
---|
13 | <p><b outputclass="bold">Host Suspends.</b> This event is generated when the host is about
|
---|
14 | to suspend, that is, the host saves the state to some nonvolatile storage and powers off. </p>
|
---|
15 | <p>
|
---|
16 | This event is currently only handled on Windows hosts and Mac
|
---|
17 | OS X hosts. When this event is generated, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> will
|
---|
18 | pause all running VMs.
|
---|
19 | </p>
|
---|
20 | </li>
|
---|
21 | <li>
|
---|
22 | <p><b outputclass="bold">Host Resumes.</b> This event is
|
---|
23 | generated when the host woke up from the suspended state.
|
---|
24 | </p>
|
---|
25 | <p>
|
---|
26 | This event is currently only handled on Windows hosts and Mac
|
---|
27 | OS X hosts. When this event is generated, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> will
|
---|
28 | resume all VMs which are where paused before.
|
---|
29 | </p>
|
---|
30 | </li>
|
---|
31 | <li>
|
---|
32 | <p><b outputclass="bold">Battery Low.</b> The battery
|
---|
33 | level reached a critical level, usually less than 5 percent
|
---|
34 | charged.
|
---|
35 | </p>
|
---|
36 | <p>
|
---|
37 | This event is currently only handled on Windows hosts and Mac
|
---|
38 | OS X hosts. When this event is generated, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> will
|
---|
39 | save the state and terminate all VMs in preparation of a
|
---|
40 | potential host powerdown.
|
---|
41 | </p>
|
---|
42 | <p>
|
---|
43 | The behavior can be configured. By executing the following
|
---|
44 | command, no VM is saved:
|
---|
45 | </p>
|
---|
46 | <pre xml:space="preserve">$ VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 0</pre>
|
---|
47 | <p>
|
---|
48 | This is a global setting as well as a per-VM setting. The
|
---|
49 | per-VM value has higher precedence than the global value. The
|
---|
50 | following command will save the state of all VMs but will not
|
---|
51 | save the state of VM "foo":
|
---|
52 | </p>
|
---|
53 | <pre xml:space="preserve">$ VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 1
|
---|
54 | $ VBoxManage setextradata "foo" "VBoxInternal2/SavestateOnBatteryLow" 0</pre>
|
---|
55 | <p>
|
---|
56 | The first line is actually not required as by default the
|
---|
57 | savestate action is performed.
|
---|
58 | </p>
|
---|
59 | </li>
|
---|
60 | </ul>
|
---|
61 | </body>
|
---|
62 |
|
---|
63 | </topic>
|
---|