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="terminate-vm-action">
|
---|
4 | <title>Action when Terminating the VM</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>You can disallow certain actions when terminating a VM. To disallow specific actions, use the following command: </p>
|
---|
8 | <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> GUI/RestrictedCloseActions <varname>property</varname>[,<varname>property</varname>...]</pre>
|
---|
9 | <p><varname>property</varname> is one of the following:
|
---|
10 | </p>
|
---|
11 | <dl>
|
---|
12 | <dlentry>
|
---|
13 | <dt>
|
---|
14 | <codeph>SaveState</codeph>
|
---|
15 | </dt>
|
---|
16 | <dd>
|
---|
17 | <p>Do not allow the user to save the VM state when terminating the VM. </p>
|
---|
18 | </dd>
|
---|
19 | </dlentry>
|
---|
20 | <dlentry>
|
---|
21 | <dt>
|
---|
22 | <codeph>Shutdown</codeph>
|
---|
23 | </dt>
|
---|
24 | <dd>
|
---|
25 | <p>Do not allow the user to shutdown the VM by sending the ACPI power-off event to the guest. </p>
|
---|
26 | </dd>
|
---|
27 | </dlentry>
|
---|
28 | <dlentry>
|
---|
29 | <dt>
|
---|
30 | <codeph>PowerOff</codeph>
|
---|
31 | </dt>
|
---|
32 | <dd>
|
---|
33 | <p>Do not allow the user to power off the VM. </p>
|
---|
34 | </dd>
|
---|
35 | </dlentry>
|
---|
36 | <dlentry>
|
---|
37 | <dt>
|
---|
38 | <codeph>PowerOffRestoringSnapshot</codeph>
|
---|
39 | </dt>
|
---|
40 | <dd>
|
---|
41 | <p>Do not allow the user to return to the last snapshot when powering off the VM. </p>
|
---|
42 | </dd>
|
---|
43 | </dlentry>
|
---|
44 | <dlentry>
|
---|
45 | <dt>
|
---|
46 | <codeph>Detach</codeph>
|
---|
47 | </dt>
|
---|
48 | <dd>
|
---|
49 | <p>Do not allow the user to detach from the VM process if the VM was started in separate mode. </p>
|
---|
50 | </dd>
|
---|
51 | </dlentry>
|
---|
52 | </dl>
|
---|
53 | <p>This is a per-VM setting. You can specify any combination of properties. If all properties are specified, the VM
|
---|
54 | cannot be shut down. </p>
|
---|
55 | </body>
|
---|
56 |
|
---|
57 | </topic>
|
---|