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