VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/terminate-vm-default-action.dita@ 105335

最後變更 在這個檔案從105335是 105335,由 vboxsync 提交於 8 月 前

FE/Qt: bugref:10705. Merging r6149 from doc team's repo.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 1.9 KB
 
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-default-action">
4 <title>Default Action when Terminating the VM</title>
5
6 <body>
7 <p>You can define a specific action for terminating a VM. In contrast to the setting decribed in the previous
8 section, this setting allows only one action when the user terminates the VM. No exit menu is shown. Use the
9 following command: </p>
10 <pre xml:space="preserve">$ VBoxManage setextradata <varname>VM-name</varname> GUI/DefaultCloseAction <varname>action</varname>
11 </pre>
12 <p><varname>action</varname> is one of the following:
13 </p>
14 <dl>
15 <dlentry>
16 <dt>
17 <codeph>SaveState</codeph>
18 </dt>
19 <dd>
20 <p>Save the VM state before terminating the VM process. </p>
21 </dd>
22 </dlentry>
23 <dlentry>
24 <dt>
25 <codeph>Shutdown</codeph>
26 </dt>
27 <dd>
28 <p>The VM is shut down by sending the ACPI power-off event to the guest. </p>
29 </dd>
30 </dlentry>
31 <dlentry>
32 <dt>
33 <codeph>PowerOff</codeph>
34 </dt>
35 <dd>
36 <p>The VM is powered off. </p>
37 </dd>
38 </dlentry>
39 <dlentry>
40 <dt>
41 <codeph>PowerOffRestoringSnapshot</codeph>
42 </dt>
43 <dd>
44 <p>The VM is powered off and the saved state returns to the last snapshot. </p>
45 </dd>
46 </dlentry>
47 <dlentry>
48 <dt>
49 <codeph>Detach</codeph>
50 </dt>
51 <dd>
52 <p>Terminate the frontend but leave the VM process running. </p>
53 </dd>
54 </dlentry>
55 </dl>
56 <p>This is a per-VM setting. You can specify any combination of properties. If all properties are specified, the VM
57 cannot be shut down. </p>
58 </body>
59
60</topic>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette