VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/vboxconfigdata-machine-folder.dita@ 105335

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

Docs: bugref:10705. More merging from docs team repo. Once again almost exclusively white space changes.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 4.2 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="vboxconfigdata-machine-folder">
4 <title>The Machine Folder</title>
5
6 <body>
7 <p>
8 By default, each virtual machine has a directory on your host
9 computer where all the files of that machine are stored: the XML
10 settings file, with a <filepath>.vbox</filepath> file extension,
11 and its disk images. This is called the <i>machine
12 folder</i>.
13 </p>
14 <p>
15 By default, this machine folder is located in a common folder
16 called <filepath>VirtualBox VMs</filepath>, which <ph conkeyref="vbox-conkeyref-phrases/product-name"/>
17 creates in the current system user's home directory. The
18 location of this home directory depends on the conventions of
19 the host operating system, as follows:
20 </p>
21 <ul>
22 <li>
23 <p>
24 On Windows, this is the location returned by the
25 <codeph>SHGetFolderPath</codeph> function of the Windows
26 system library Shell32.dll, asking for the user profile. A
27 typical location is
28 <filepath>C:\Users\<varname>username</varname>
29 </filepath>.
30 </p>
31 </li>
32 <li>
33 <p>
34 On Linux, macOS, and Oracle Solaris, this is generally
35 taken from the environment variable
36 <filepath>$HOME</filepath>, except for the user
37 <codeph>root</codeph> where it is taken from the account
38 database. This is a workaround for the frequent trouble
39 caused by users using <ph conkeyref="vbox-conkeyref-phrases/product-name"/> in combination with the
40 tool <userinput>sudo</userinput>, which by default does not
41 reset the environment variable <filepath>$HOME</filepath>.
42 </p>
43 <p>
44 A typical location on Linux and Oracle Solaris is
45 <filepath>/home/<varname>username</varname>
46 </filepath>
47 and on macOS is
48 <filepath>/Users/<varname>username</varname>
49 </filepath>.
50 </p>
51 </li>
52 </ul>
53 <p>
54 For simplicity, we abbreviate the location of the home directory
55 as <filepath>$HOME</filepath>. Using that convention, the common
56 folder for all virtual machines is <filepath>$HOME/VirtualBox
57 VMs</filepath>.
58 </p>
59 <p> As an example, when you create a virtual machine called <i>Example VM</i>, <ph
60 conkeyref="vbox-conkeyref-phrases/product-name"/> creates the following: </p>
61 <ul>
62 <li>
63 <p>
64 A machine folder: <filepath>$HOME/VirtualBox VMs/Example
65 VM/</filepath>
66 </p>
67 </li>
68 <li>
69 <p>
70 In the machine folder, a settings file: <filepath>Example
71 VM.vbox</filepath>
72 </p>
73 </li>
74 <li>
75 <p>
76 In the machine folder, a virtual disk image:
77 <filepath>Example VM.vdi</filepath>.
78 </p>
79 </li>
80 </ul>
81 <p>
82 This is the default layout if you use the
83 <b outputclass="bold">Create New Virtual Machine</b>
84 wizard described in <xref href="create-vm-wizard.dita">Creating Your First Virtual Machine</xref>. Once you
85 start working with the VM, additional files are added. Log files
86 are in a subfolder called <filepath>Logs</filepath>, and if you
87 have taken snapshots, they are in a
88 <filepath>Snapshots</filepath> subfolder. For each VM, you can
89 change the location of its snapshots folder in the VM settings.
90 </p>
91 <p> You can change the default machine folder by selecting <b outputclass="bold">Preferences</b>
92 from the <b outputclass="bold">File</b> menu in the <ph
93 conkeyref="vbox-conkeyref-phrases/product-name"/> main window. Then, in the displayed
94 window, click the <b outputclass="bold">General</b> tab. Alternatively, use the
95 <userinput>VBoxManage setproperty machinefolder</userinput> command. See <xref
96 href="vboxmanage-setproperty.dita">VBoxManage setproperty</xref>. </p>
97 </body>
98
99</topic>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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