1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | manpage, user manual, usage: vboximg-mount
|
---|
4 |
|
---|
5 | Copyright (C) 2006-2020 Oracle Corporation
|
---|
6 |
|
---|
7 | This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
8 | available from http://www.virtualbox.org. This file is free software;
|
---|
9 | you can redistribute it and/or modify it under the terms of the GNU
|
---|
10 | General Public License (GPL) as published by the Free Software
|
---|
11 | Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
12 | VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
13 | hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
14 | -->
|
---|
15 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
16 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
|
---|
17 | <!ENTITY % all.entities SYSTEM "all-entities.ent">
|
---|
18 | %all.entities;
|
---|
19 | ]>
|
---|
20 | <refentry id="man_vboximg-mount" lang="en">
|
---|
21 | <refentryinfo>
|
---|
22 | <pubdate>November 2019</pubdate>
|
---|
23 | <title>vboximg-mount</title>
|
---|
24 | </refentryinfo>
|
---|
25 |
|
---|
26 | <refmeta>
|
---|
27 | <refentrytitle>vboximg-mount</refentrytitle>
|
---|
28 | <manvolnum>1</manvolnum>
|
---|
29 | </refmeta>
|
---|
30 |
|
---|
31 | <refnamediv>
|
---|
32 | <refname>vboximg-mount</refname>
|
---|
33 | <refpurpose>FUSE mount a virtual disk image for Mac OS and Linux hosts</refpurpose>
|
---|
34 | <refclass>Oracle VM VirtualBox</refclass>
|
---|
35 | </refnamediv>
|
---|
36 |
|
---|
37 | <refsynopsisdiv>
|
---|
38 | <cmdsynopsis id="synopsis-vboximg-mount-help">
|
---|
39 | <!-- The 'id' is mandatory and must start with 'synopsis-'. -->
|
---|
40 | <command>vboximg-mount</command>
|
---|
41 | <group choice="req">
|
---|
42 | <arg choice="plain">-?</arg>
|
---|
43 | <arg choice="plain">-h</arg>
|
---|
44 | <arg choice="plain">--help</arg>
|
---|
45 | </group>
|
---|
46 | </cmdsynopsis>
|
---|
47 |
|
---|
48 | <cmdsynopsis id="synopsis-vboximg-mount-mount">
|
---|
49 | <command>vboximg-mount</command>
|
---|
50 | <arg choice="req">--image=<replaceable>image-UUID</replaceable></arg>
|
---|
51 | <arg>--guest-filesystem</arg>
|
---|
52 | <arg>-o=<replaceable>FUSE-option</replaceable>[,<replaceable>FUSE-option</replaceable>]</arg>
|
---|
53 | <arg>--root</arg>
|
---|
54 | <arg>--rw</arg>
|
---|
55 | <arg choice="req"><replaceable>mountpoint</replaceable></arg>
|
---|
56 | </cmdsynopsis>
|
---|
57 |
|
---|
58 | <cmdsynopsis id="synopsis-vboximg-mount-list">
|
---|
59 | <command>vboximg-mount</command>
|
---|
60 | <arg choice="req">--list</arg>
|
---|
61 | <arg>--image=<replaceable>image-UUID</replaceable></arg>
|
---|
62 | <arg>--guest-filesystem</arg>
|
---|
63 | <arg>--verbose</arg>
|
---|
64 | <arg>--vm=<replaceable>vm-UUID</replaceable></arg>
|
---|
65 | <arg>--wide</arg>
|
---|
66 | </cmdsynopsis>
|
---|
67 | </refsynopsisdiv>
|
---|
68 |
|
---|
69 | <refsect1 id="vboximg-mount-intro">
|
---|
70 | <title>Description</title>
|
---|
71 | <para>
|
---|
72 | The <command>vboximg-mount</command> command enables you to make
|
---|
73 | &product-name; disk images available to a Mac OS or Linux host
|
---|
74 | operating system (OS) for privileged or non-priviliged access. You
|
---|
75 | can mount any version of the disk from its available history of
|
---|
76 | snapshots. Use this command to mount, view, and optionally modify
|
---|
77 | the contents of an &product-name; virtual disk image, and you can
|
---|
78 | also use this command to view information about registered virtual
|
---|
79 | machines (VMs).
|
---|
80 | </para>
|
---|
81 | <para>
|
---|
82 | This command uses the Filesystem in Userspace (FUSE) technology to
|
---|
83 | provide raw access to an &product-name; virtual disk image.
|
---|
84 | </para>
|
---|
85 | <para>
|
---|
86 | When you use the <option>--image</option> option to specify a base
|
---|
87 | image identifier, only the base image is mounted. Any related
|
---|
88 | snapshots are disregarded. Alternatively, if you use the
|
---|
89 | <option>--image</option> option to specify a snapshot, the state
|
---|
90 | of the FUSE-mounted virtual disk is synthesized from the implied
|
---|
91 | chain of snapshots, including the base image.
|
---|
92 | </para>
|
---|
93 | <para>
|
---|
94 | The <command>vboximg-mount</command> command includes experimental
|
---|
95 | read-only access to file systems inside a VM disk image. This
|
---|
96 | feature enables you to extract some files from the VM disk image
|
---|
97 | without starting the VM and without requiring third-party file
|
---|
98 | system drivers on the host system. &product-name; supports the
|
---|
99 | FAT, NTFS, <filename>ext2</filename>, <filename>ext3</filename>,
|
---|
100 | and <filename>ext4</filename> file systems.
|
---|
101 | </para>
|
---|
102 | <para>
|
---|
103 | The virtual disk is exposed as a device node within a FUSE-based
|
---|
104 | file system that overlays the specified mount point.
|
---|
105 | </para>
|
---|
106 | <para>
|
---|
107 | The FUSE file system includes a directory that contains a number
|
---|
108 | of files. The file system can also contain a directory that
|
---|
109 | includes a symbolic link that has the same base name (see the
|
---|
110 | <command>basename</command>(1) man page) as the virtual disk base
|
---|
111 | image and points to the location of the virtual disk base image.
|
---|
112 | The directory can be of the following types:
|
---|
113 | </para>
|
---|
114 | <itemizedlist>
|
---|
115 | <listitem><para>
|
---|
116 | <filename>vhdd</filename> provides access to the raw disk
|
---|
117 | image data as a flat image
|
---|
118 | </para></listitem>
|
---|
119 | <listitem><para>
|
---|
120 | <literal>vol<replaceable>ID</replaceable></literal> provides
|
---|
121 | access to an individual volume on the specified disk image
|
---|
122 | </para></listitem>
|
---|
123 | <listitem><para>
|
---|
124 | <literal>fs<replaceable>ID</replaceable></literal> provides
|
---|
125 | access to a supported file system without requiring a host
|
---|
126 | file system driver
|
---|
127 | </para></listitem>
|
---|
128 | </itemizedlist>
|
---|
129 | <refsect2 id="vboximg-mount-help">
|
---|
130 | <title>General Command Options</title>
|
---|
131 | <remark role="help-copy-synopsis"/>
|
---|
132 | <para>
|
---|
133 | Use the following options to obtain information about the
|
---|
134 | <command>vboximg-mount</command> command and its options.
|
---|
135 | </para>
|
---|
136 | <variablelist>
|
---|
137 | <varlistentry>
|
---|
138 | <term><option>--help</option>, <option>--h</option>, or<option>--?</option></term>
|
---|
139 | <listitem><para>
|
---|
140 | Shows usage information.
|
---|
141 | </para></listitem>
|
---|
142 | </varlistentry>
|
---|
143 | </variablelist>
|
---|
144 | </refsect2>
|
---|
145 | <refsect2 id="vboximg-mount-mount">
|
---|
146 | <title>Mounting an &product-name; Disk Image</title>
|
---|
147 | <remark role="help-copy-synopsis"/>
|
---|
148 | <para>
|
---|
149 | Use the <command>vboximg-mount</command> command to mount an
|
---|
150 | &product-name; virtual disk image on a Mac OS or Linux host
|
---|
151 | system. When mounted, you can view the contents of the disk
|
---|
152 | image or modify the contents of the disk image.
|
---|
153 | </para>
|
---|
154 | <para>
|
---|
155 | You can use the <command>vboximg-mount</command> command to
|
---|
156 | restrict FUSE-based access to a subsection of the virtual disk.
|
---|
157 | </para>
|
---|
158 | <variablelist>
|
---|
159 | <varlistentry>
|
---|
160 | <term><option>--image=<replaceable>disk-image</replaceable></option></term>
|
---|
161 | <listitem><para>
|
---|
162 | Specifies the Universally Unique Identifier (UUID), name,
|
---|
163 | or path of the &product-name; disk image.
|
---|
164 | </para><para>
|
---|
165 | The short form of the <option>--image</option> option is
|
---|
166 | <option>-i</option>.
|
---|
167 | </para></listitem>
|
---|
168 | </varlistentry>
|
---|
169 | <varlistentry>
|
---|
170 | <term><option>--guest-filesystem</option></term>
|
---|
171 | <listitem><para>
|
---|
172 | Enables experimental read-only support for guest file
|
---|
173 | systems. When you specify this option, all known file
|
---|
174 | systems are made available to access.
|
---|
175 | </para><para>
|
---|
176 | The short form of the <option>--guest-filesystem</option>
|
---|
177 | option is <option>-g</option>.
|
---|
178 | </para></listitem>
|
---|
179 | </varlistentry>
|
---|
180 | <varlistentry>
|
---|
181 | <term><option>-o=<replaceable>FUSE-option</replaceable>[,<replaceable>FUSE-option</replaceable>...]</option></term>
|
---|
182 | <listitem><para>
|
---|
183 | Specifies FUSE mount options.
|
---|
184 | </para><para>
|
---|
185 | The <command>vboximg-mount</command> command enables you
|
---|
186 | to use the FUSE mount options that are described in the
|
---|
187 | <command>mount.fuse</command>(8) man page.
|
---|
188 | </para></listitem>
|
---|
189 | </varlistentry>
|
---|
190 | <varlistentry>
|
---|
191 | <term><option>--root</option></term>
|
---|
192 | <listitem><para>
|
---|
193 | Overrides the security measure that restricts file access
|
---|
194 | to the file system owner by also granting file access to
|
---|
195 | the <literal>root</literal> user.
|
---|
196 | </para><para>
|
---|
197 | Same as the <option>-o allow_root</option> option. See the
|
---|
198 | <option>-o</option> option description.
|
---|
199 | </para><para>
|
---|
200 | This option is incompatible with the <option>-o
|
---|
201 | allow_other</option> option.
|
---|
202 | </para></listitem>
|
---|
203 | </varlistentry>
|
---|
204 | <varlistentry>
|
---|
205 | <term><option>--rw</option></term>
|
---|
206 | <listitem><para>
|
---|
207 | Mounts the specified image as read-write, which is
|
---|
208 | required if you want to modify its contents. By default,
|
---|
209 | images are mounted as read-only.
|
---|
210 | </para></listitem>
|
---|
211 | </varlistentry>
|
---|
212 | <varlistentry>
|
---|
213 | <term><replaceable>mount-point</replaceable></term>
|
---|
214 | <listitem><para>
|
---|
215 | Specifies the path name of a directory on which to mount
|
---|
216 | the &product-name; disk image.
|
---|
217 | </para></listitem>
|
---|
218 | </varlistentry>
|
---|
219 | </variablelist>
|
---|
220 | </refsect2>
|
---|
221 | <refsect2 id="vboximg-mount-list">
|
---|
222 | <title>Viewing &product-name; Disk Image Information</title>
|
---|
223 | <remark role="help-copy-synopsis"/>
|
---|
224 | <para>
|
---|
225 | Use the <command>vboximg-mount</command> command to view
|
---|
226 | information about registered VMs or an &product-name; virtual
|
---|
227 | disk image.
|
---|
228 | </para>
|
---|
229 | <variablelist>
|
---|
230 | <varlistentry>
|
---|
231 | <term><option>--image=<replaceable>disk-image</replaceable></option></term>
|
---|
232 | <listitem><para>
|
---|
233 | Specifies the UUID, name, or path of the &product-name;
|
---|
234 | disk image.
|
---|
235 | </para><para>
|
---|
236 | The short form of the <option>--image</option> option is
|
---|
237 | <option>-i</option>.
|
---|
238 | </para></listitem>
|
---|
239 | </varlistentry>
|
---|
240 | <varlistentry>
|
---|
241 | <term><option>--guest-filesystem</option></term>
|
---|
242 | <listitem><para>
|
---|
243 | Enables experimental read-only support for guest file
|
---|
244 | systems. When you specify this option, all known file
|
---|
245 | systems are made available to access.
|
---|
246 | </para><para>
|
---|
247 | The short form of the <option>--guest-filesystem</option>
|
---|
248 | option is <option>-g</option>.
|
---|
249 | </para></listitem>
|
---|
250 | </varlistentry>
|
---|
251 | <varlistentry>
|
---|
252 | <term><option>--list</option></term>
|
---|
253 | <listitem><para>
|
---|
254 | Shows information about the disks that are associated with
|
---|
255 | the registered VMs. If you specify a disk image, this
|
---|
256 | option shows information about the partitions of the
|
---|
257 | specified image.
|
---|
258 | </para><para>
|
---|
259 | When you specify the <option>--verbose</option> option,
|
---|
260 | the output includes detailed information about the VMs and
|
---|
261 | media, including snapshot images and file paths.
|
---|
262 | </para><para>
|
---|
263 | The short form of the <option>--list</option> option is
|
---|
264 | <option>-l</option>.
|
---|
265 | </para></listitem>
|
---|
266 | </varlistentry>
|
---|
267 | <varlistentry>
|
---|
268 | <term><option>--verbose</option></term>
|
---|
269 | <listitem><para>
|
---|
270 | Shows or logs detailed information.
|
---|
271 | </para><para>
|
---|
272 | The short form of the <option>--verbose</option> option is
|
---|
273 | <option>-v</option>.
|
---|
274 | </para></listitem>
|
---|
275 | </varlistentry>
|
---|
276 | <varlistentry>
|
---|
277 | <term><option>--vm=<replaceable>vm-UUID</replaceable></option></term>
|
---|
278 | <listitem><para>
|
---|
279 | Outputs information about the VM that is associated with
|
---|
280 | the specified UUID.
|
---|
281 | </para></listitem>
|
---|
282 | </varlistentry>
|
---|
283 | <varlistentry>
|
---|
284 | <term><option>--wide</option></term>
|
---|
285 | <listitem><para>
|
---|
286 | Outputs information in a wide format. This output includes
|
---|
287 | the lock state information of running VMs. For VMs that
|
---|
288 | are not running, the state is <literal>created</literal>.
|
---|
289 | </para><para>
|
---|
290 | The wide output uses a tree-like structure in the VM
|
---|
291 | column to show the relationship between a VM base image
|
---|
292 | and its snapshots.
|
---|
293 | </para></listitem>
|
---|
294 | </varlistentry>
|
---|
295 | </variablelist>
|
---|
296 | </refsect2>
|
---|
297 | </refsect1>
|
---|
298 |
|
---|
299 | <refsect1>
|
---|
300 | <title>Examples</title>
|
---|
301 | <remark role="help-scope" condition="MOUNT-MOUNT,MOUNT-LIST"/>
|
---|
302 | <para>
|
---|
303 | The following example shows how to mount a virtual disk image on
|
---|
304 | the host operating system (OS).
|
---|
305 | </para>
|
---|
306 | <screen>$ mkdir fuse_mount_point
|
---|
307 | $ vboximg-mount --image=b490e578-08be-4f7d-98e9-4c0ef0952377 fuse_mount_point
|
---|
308 | $ ls fuse_mount_point
|
---|
309 | ubu.vdi[32256:2053029880] vhdd
|
---|
310 | $ sudo mount fuse_mount_point/vhdd /mnt</screen>
|
---|
311 | <para>
|
---|
312 | The <command>mkdir</command> command creates a mount point called
|
---|
313 | <filename>fuse_mount_point</filename> on the host OS. The
|
---|
314 | <command>vboximg-mount</command> command is then used to mount the
|
---|
315 | specified disk image on the <filename>fuse_mount_point</filename>
|
---|
316 | mount point. The mount includes all snapshots for the disk image.
|
---|
317 | </para>
|
---|
318 | <para>
|
---|
319 | The <command>ls</command> command shows the contents of
|
---|
320 | <filename>fuse_mount_point</filename>. The
|
---|
321 | <command>mount</command> command is then used to mount the
|
---|
322 | FUSE-mounted device node, <command>vhdd</command>, on the
|
---|
323 | <filename>/mnt</filename> mount point. The <command>vhdd</command>
|
---|
324 | device node represents the virtual disk image.
|
---|
325 | </para>
|
---|
326 | <para>
|
---|
327 | The following example shows how to make the known file systems of
|
---|
328 | the <literal>b490e578-08be-4f7d-98e9-4c0ef0952377</literal> disk
|
---|
329 | image accessible when the image is mounted on the
|
---|
330 | <filename>fuse_mount_point</filename> mount point:
|
---|
331 | </para>
|
---|
332 | <screen>$ vboximg-mount --image=b490e578-08be-4f7d-98e9-4c0ef0952377 \
|
---|
333 | --guest-filesystem fuse_mount_point
|
---|
334 | </screen>
|
---|
335 | <para>
|
---|
336 | The following command outputs detailed information about all
|
---|
337 | registered VMs and their snapshots:
|
---|
338 | </para>
|
---|
339 | <screen>$ vboximg-mount --list --verbose</screen>
|
---|
340 | <para>
|
---|
341 | The following command shows an excerpt of the list output in wide
|
---|
342 | format.
|
---|
343 | </para>
|
---|
344 | <screen>$ vboximg-mount --list --wide
|
---|
345 |
|
---|
346 | VM Image Size Type State UUID (hierarchy)
|
---|
347 | ------------------------------------------ ------------------------------------
|
---|
348 | Proxy 0833f5bc-6304-42e1-b799-cdc81c576c60
|
---|
349 | |
|
---|
350 | +- Proxy.vdi 4.8G VDI rlock d5f84afb-0794-4952-ab71-6bbcbee07737
|
---|
351 | | +- <snapshot> 12.3G VDI rlock dffc67aa-3023-477f-8033-b27e3daf4f54
|
---|
352 | | +- <snapshot> 8.8G VDI rlock 3b2755bd-5f2a-4171-98fe-647d510b6274
|
---|
353 | | +- <snapshot> 14.6G VDI rlock e2ccdb5f-49e8-4123-8623-c61f363cc5cf
|
---|
354 | | +- <snapshot> 7.4G VDI wlock 3c1e6794-9091-4be3-9e80-11aba40c2649
|
---|
355 |
|
---|
356 | ------------------------------------------ ------------------------------------
|
---|
357 | Oracle Linux 7 5365ab5f-470d-44c0-9863-dad532ee5905
|
---|
358 | |
|
---|
359 | +- Oracle Linux 7.vdi 7.0G VDI created 96d2e92e-0d4e-46ab-a0f1-008fdbf997e7
|
---|
360 | | +- <snapshot> 15.9G VDI created f9cc866a-9166-42e9-a503-bbfe9b7312e8
|
---|
361 | |
|
---|
362 | +- kernel.vdi 11.1G VDI created 79a370bd-0c4f-480a-30bb-10cdea68423f
|
---|
363 | </screen>
|
---|
364 | <para>
|
---|
365 | The output shows that the Proxy VM is running the fourth snapshot
|
---|
366 | of the <command>Proxy.vdi</command> virtual disk image. The
|
---|
367 | running state is indicated by the <command>wlock</command> value
|
---|
368 | in the State column.
|
---|
369 | </para>
|
---|
370 | <para>
|
---|
371 | The Oracle Linux 7 VM is not running. It has two images:
|
---|
372 | <command>Oracle Linux 7.vdi</command> and
|
---|
373 | <command>kernel.vdi</command>. The <command>Oracle Linux
|
---|
374 | 7.vdi</command> image has a snapshot.
|
---|
375 | </para>
|
---|
376 | <para>
|
---|
377 | The following command shows information about the VM with the
|
---|
378 | specified UUID:
|
---|
379 | </para>
|
---|
380 | <screen>
|
---|
381 | $ vboximg-mount --list --vm=b1d5563b-2a5b-4013-89f1-26c81d6bbfa0
|
---|
382 | -----------------------------------------------------------------
|
---|
383 | VM: ubu
|
---|
384 | UUID: b1d5563b-2a5b-4013-89f1-26c81d6bbfa0
|
---|
385 |
|
---|
386 | Image: ubu.vdi
|
---|
387 | UUID: b490e578-08be-4f7d-98e9-4c0ef0952377
|
---|
388 |
|
---|
389 | Snapshot: 35afe1e0-0a51-44f3-a228-caf172f3306f
|
---|
390 | Size: 12.1G
|
---|
391 |
|
---|
392 | Snapshot: 874279c1-4425-4282-ada8-a9c07c00bbf9
|
---|
393 | Size: 13.6G
|
---|
394 |
|
---|
395 | Image: kernel.vdi
|
---|
396 | UUID: 79a370bd-6eb7-4dbf-8bc6-d29118f127e0</screen>
|
---|
397 | </refsect1>
|
---|
398 | </refentry>
|
---|