5 guestfish - the libguestfs Filesystem Interactive SHell
9 guestfish [--options] [commands]
15 guestfish -a disk.img -m dev[:mountpoint]
17 guestfish -d libvirt-domain
19 guestfish -a disk.img -i
21 guestfish -d libvirt-domain -i
25 Using guestfish in read/write mode on live virtual machines can be
26 dangerous, potentially causing disk corruption. Use the I<--ro>
27 (read-only) option to use guestfish safely if the disk image or
28 virtual machine might be live.
32 =head2 As an interactive shell
36 Welcome to guestfish, the libguestfs filesystem interactive shell for
37 editing virtual machine filesystems.
39 Type: 'help' for a list of commands
40 'man' to read the manual
41 'quit' to quit the shell
45 =head2 From shell scripts
47 Create a new C</etc/motd> file in a guest:
52 mount /dev/vg_guest/lv_root /
53 write /etc/motd "Welcome, new users"
56 List the LVM logical volumes in a guest:
58 guestfish -a disk.img --ro <<_EOF_
63 =head2 On one command line
65 Update C</etc/resolv.conf> in a guest:
68 add disk.img : run : mount /dev/vg_guest/lv_root / : \
69 write /etc/resolv.conf "nameserver 1.2.3.4"
71 Edit C</boot/grub/grub.conf> interactively:
73 guestfish --add disk.img \
74 --mount /dev/vg_guest/lv_root \
75 --mount /dev/sda1:/boot \
76 edit /boot/grub/grub.conf
78 =head2 Mount disks automatically
80 Use the I<-i> option to automatically mount the
81 disks from a virtual machine:
83 guestfish --ro -a disk.img -i cat /etc/group
85 guestfish --ro -d libvirt-domain -i cat /etc/group
87 =head2 As a script interpreter
89 Create a 100MB disk containing an ext2-formatted partition:
91 #!/usr/bin/guestfish -f
94 part-disk /dev/sda mbr
97 =head2 Start with a prepared disk
99 An alternate way to create a 100MB disk called C<test1.img> containing
100 a single ext2-formatted partition:
104 To list what is available do:
106 guestfish -N help | less
108 =head2 Remote control
110 eval `guestfish --listen --ro`
111 guestfish --remote add disk.img
112 guestfish --remote run
113 guestfish --remote lvs
117 Guestfish is a shell and command-line tool for examining and modifying
118 virtual machine filesystems. It uses libguestfs and exposes all of
119 the functionality of the guestfs API, see L<guestfs(3)>.
121 Guestfish gives you structured access to the libguestfs API, from
122 shell scripts or the command line or interactively. If you want to
123 rescue a broken virtual machine image, you should look at the
124 L<virt-rescue(1)> command.
132 Displays general help on options.
134 =item B<-h> | B<--cmd-help>
136 Lists all available guestfish commands.
138 =item B<-h cmd> | B<--cmd-help cmd>
140 Displays detailed help on a single command C<cmd>.
142 =item B<-a image> | B<--add image>
144 Add a block device or virtual machine image to the shell.
146 =item B<-c URI> | B<--connect URI>
148 When used in conjunction with the I<-d> option, this specifies
149 the libvirt URI to use. The default is to use the default libvirt
152 =item B<-d libvirt-domain> | B<--domain libvirt-domain>
154 Add disks from the named libvirt domain. If the I<--ro> option is
155 also used, then any libvirt domain can be used. However in write
156 mode, only libvirt domains which are shut down can be named here.
158 =item B<-D> | B<--no-dest-paths>
160 Don't tab-complete paths on the guest filesystem. It is useful to be
161 able to hit the tab key to complete paths on the guest filesystem, but
162 this causes extra "hidden" guestfs calls to be made, so this option is
163 here to allow this feature to be disabled.
165 =item B<-f file> | B<--file file>
167 Read commands from C<file>. To write pure guestfish
170 #!/usr/bin/guestfish -f
172 =item B<-i> | B<--inspector>
174 Using L<virt-inspector(1)> code, inspect the disks looking for
175 an operating system and mount filesystems as they would be
176 mounted on the real virtual machine.
178 Typical usage is either:
180 guestfish -d myguest -i
182 (for an inactive libvirt domain called I<myguest>), or:
184 guestfish --ro -d myguest -i
186 (for active domains, readonly), or specify the block device directly:
188 guestfish -a /dev/Guests/MyGuest -i
190 Note that the command line syntax changed slightly over older
191 versions of guestfish. You can still use the old syntax:
193 guestfish [--ro] -i disk.img
195 guestfish [--ro] -i libvirt-domain
197 =item B<--keys-from-stdin>
199 Read key or passphrase parameters from stdin. The default is
200 to try to read passphrases from the user by opening C</dev/tty>.
204 Fork into the background and listen for remote commands. See section
205 L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below.
207 =item B<-m dev[:mountpoint]> | B<--mount dev[:mountpoint]>
209 Mount the named partition or logical volume on the given mountpoint.
211 If the mountpoint is omitted, it defaults to C</>.
213 You have to mount something on C</> before most commands will work.
215 If any I<-m> or I<--mount> options are given, the guest is
216 automatically launched.
218 If you don't know what filesystems a disk image contains, you
219 can either run guestfish without this option, then list the partitions
220 and LVs available (see L</list-partitions> and L</lvs> commands),
221 or you can use the L<virt-list-filesystems(1)> program.
223 =item B<-n> | B<--no-sync>
225 Disable autosync. This is enabled by default. See the discussion
226 of autosync in the L<guestfs(3)> manpage.
228 =item B<-N type> | B<--new type> | B<-N help>
230 Prepare a fresh disk image formatted as "type". This is an
231 alternative to the I<-a> option: whereas I<-a> adds an existing disk,
232 I<-N> creates a preformatted disk with a filesystem and adds it.
233 See L</PREPARED DISK IMAGES> below.
235 =item B<--progress-bars>
237 Enable progress bars, even when guestfish is used non-interactively.
239 Progress bars are enabled by default when guestfish is used as an
242 =item B<--no-progress-bars>
244 Disable progress bars.
246 =item B<--remote[=pid]>
248 Send remote commands to C<$GUESTFISH_PID> or C<pid>. See section
249 L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below.
251 =item B<-r> | B<--ro>
253 This changes the I<-a> and I<-m> options so that disks are added and
254 mounts are done read-only (see L<guestfs(3)/guestfs_mount_ro>).
256 The option must always be used if the disk image or virtual machine
257 might be running, and is generally recommended in cases where you
258 don't need write access to the disk.
260 Note that prepared disk images created with I<-N> are not affected by
265 Enable SELinux support for the guest. See L<guestfs(3)/SELINUX>.
267 =item B<-v> | B<--verbose>
269 Enable very verbose messages. This is particularly useful if you find
272 =item B<-V> | B<--version>
274 Display the guestfish / libguestfs version number and exit.
278 Echo each command before executing it.
282 =head1 COMMANDS ON COMMAND LINE
284 Any additional (non-option) arguments are treated as commands to
287 Commands to execute should be separated by a colon (C<:>), where the
288 colon is a separate parameter. Thus:
290 guestfish cmd [args...] : cmd [args...] : cmd [args...] ...
292 If there are no additional arguments, then we enter a shell, either an
293 interactive shell with a prompt (if the input is a terminal) or a
294 non-interactive shell.
296 In either command line mode or non-interactive shell, the first
297 command that gives an error causes the whole shell to exit. In
298 interactive mode (with a prompt) if a command fails, you can continue
301 =head1 USING launch (OR run)
303 As with L<guestfs(3)>, you must first configure your guest by adding
304 disks, then launch it, then mount any disks you need, and finally
305 issue actions/commands. So the general order of the day is:
327 C<run> is a synonym for C<launch>. You must C<launch> (or C<run>)
328 your guest before mounting or performing any other commands.
330 The only exception is that if the I<-m> or I<--mount> option was
331 given, the guest is automatically run for you (simply because
332 guestfish can't mount the disks you asked for without doing this).
336 You can quote ordinary parameters using either single or double
339 add "file with a space.img"
345 A few commands require a list of strings to be passed. For these, use
346 a whitespace-separated list, enclosed in quotes. Strings containing whitespace
347 to be passed through must be enclosed in single quotes. A literal single quote
348 must be escaped with a backslash.
350 vgcreate VG "/dev/sda1 /dev/sdb1"
351 command "/bin/echo 'foo bar'"
352 command "/bin/echo \'foo\'"
356 This section applies to all commands which can take integers
361 When the command takes a parameter measured in bytes, you can use one
362 of the following suffixes to specify kilobytes, megabytes and larger
367 =item B<k> or B<K> or B<KiB>
369 The size in kilobytes (multiplied by 1024).
373 The size in SI 1000 byte units.
377 The size in megabytes (multiplied by 1048576).
381 The size in SI 1000000 byte units.
385 The size in gigabytes (multiplied by 2**30).
389 The size in SI 10**9 byte units.
393 The size in terabytes (multiplied by 2**40).
397 The size in SI 10**12 byte units.
401 The size in petabytes (multiplied by 2**50).
405 The size in SI 10**15 byte units.
409 The size in exabytes (multiplied by 2**60).
413 The size in SI 10**18 byte units.
417 The size in zettabytes (multiplied by 2**70).
421 The size in SI 10**21 byte units.
425 The size in yottabytes (multiplied by 2**80).
429 The size in SI 10**24 byte units.
435 truncate-size /file 1G
437 would truncate the file to 1 gigabyte.
439 Be careful because a few commands take sizes in kilobytes or megabytes
440 (eg. the parameter to L</memsize> is specified in megabytes already).
441 Adding a suffix will probably not do what you expect.
443 =head2 OCTAL AND HEXADECIMAL NUMBERS
445 For specifying the radix (base) use the C convention: C<0> to prefix
446 an octal number or C<0x> to prefix a hexadecimal number. For example:
448 1234 decimal number 1234
449 02322 octal number, equivalent to decimal 1234
450 0x4d2 hexadecimal number, equivalent to decimal 1234
452 When using the C<chmod> command, you almost always want to specify an
453 octal number for the mode, and you must prefix it with C<0> (unlike
454 the Unix L<chmod(1)> program):
456 chmod 0777 /public # OK
457 chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal.
459 Commands that return numbers usually print them in decimal, but
460 some commands print numbers in other radices (eg. C<umask> prints
461 the mode in octal, preceeded by C<0>).
463 =head1 WILDCARDS AND GLOBBING
465 Neither guestfish nor the underlying guestfs API performs
466 wildcard expansion (globbing) by default. So for example the
467 following will not do what you expect:
471 Assuming you don't have a directory literally called C</home/*>
472 then the above command will return an error.
474 To perform wildcard expansion, use the C<glob> command.
478 runs C<rm-rf> on each path that matches (ie. potentially running
479 the command many times), equivalent to:
485 C<glob> only works on simple guest paths and not on device names.
487 If you have several parameters, each containing a wildcard, then glob
488 will perform a cartesian product.
492 Any line which starts with a I<#> character is treated as a comment
493 and ignored. The I<#> can optionally be preceeded by whitespace,
494 but B<not> by a command. For example:
500 Blank lines are also ignored.
502 =head1 RUNNING COMMANDS LOCALLY
504 Any line which starts with a I<!> character is treated as a command
505 sent to the local shell (C</bin/sh> or whatever L<system(3)> uses).
509 tgz-out /remote local/remote-data.tar.gz
511 will create a directory C<local> on the host, and then export
512 the contents of C</remote> on the mounted filesystem to
513 C<local/remote-data.tar.gz>. (See C<tgz-out>).
515 To change the local directory, use the C<lcd> command. C<!cd> will
516 have no effect, due to the way that subprocesses work in Unix.
520 Use C<command E<lt>spaceE<gt> | command> to pipe the output of the
521 first command (a guestfish command) to the second command (any host
522 command). For example:
524 cat /etc/passwd | awk -F: '$3 == 0 { print }'
526 (where C<cat> is the guestfish cat command, but C<awk> is the host awk
527 program). The above command would list all accounts in the guest
528 filesystem which have UID 0, ie. root accounts including backdoors.
531 hexdump /bin/ls | head
532 list-devices | tail -1
533 tgz-out / - | tar ztf -
535 The space before the pipe symbol is required, any space after the pipe
536 symbol is optional. Everything after the pipe symbol is just passed
537 straight to the host shell, so it can contain redirections, globs and
538 anything else that makes sense on the host side.
540 To use a literal argument which begins with a pipe symbol, you have
545 =head1 HOME DIRECTORIES
547 If a parameter starts with the character C<~> then the tilde may be
548 expanded as a home directory path (either C<~> for the current user's
549 home directory, or C<~user> for another user).
551 Note that home directory expansion happens for users known I<on the
552 host>, not in the guest filesystem.
554 To use a literal argument which begins with a tilde, you have to quote
559 =head1 ENCRYPTED DISKS
561 Libguestfs has some support for Linux guests encrypted according to
562 the Linux Unified Key Setup (LUKS) standard, which includes nearly all
563 whole disk encryption systems used by modern Linux guests. Currently
564 only LVM-on-LUKS is supported.
566 Identify encrypted block devices and partitions using L</vfs-type>:
568 ><fs> vfs-type /dev/sda2
571 Then open those devices using L</luks-open>. This creates a
572 device-mapper device called C</dev/mapper/luksdev>.
574 ><fs> luks-open /dev/sda2 luksdev
575 Enter key or passphrase ("key"): <enter the passphrase>
577 Finally you have to tell LVM to scan for volume groups on
578 the newly created mapper device:
581 ><fs> vg-activate-all true
583 The logical volume(s) can now be mounted in the usual way.
585 Before closing a LUKS device you must unmount any logical volumes on
586 it and deactivate the volume groups by calling C<vg-activate false VG>
587 on each one. Then you can close the mapper device:
589 ><fs> vg-activate false /dev/VG
590 ><fs> luks-close /dev/mapper/luksdev
594 If a path is prefixed with C<win:> then you can use Windows-style
595 paths (with some limitations). The following commands are equivalent:
597 file /WINDOWS/system32/config/system.LOG
599 file win:/windows/system32/config/system.log
601 file win:\windows\system32\config\system.log
603 file WIN:C:\Windows\SYSTEM32\conFIG\SYSTEM.LOG
605 This syntax implicitly calls C<case-sensitive-path> (q.v.) so it also
606 handles case insensitivity like Windows would. This only works in
607 argument positions that expect a path.
609 =head1 UPLOADING AND DOWNLOADING FILES
611 For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and
612 others which upload from or download to a local file, you can use the
613 special filename C<-> to mean "from stdin" or "to stdout". For example:
617 reads stdin and creates from that a file C</foo> in the disk image,
620 tar-out /etc - | tar tf -
622 writes the tarball to stdout and then pipes that into the external
623 "tar" command (see L</PIPES>).
625 When using C<-> to read from stdin, the input is read up to the end of
626 stdin. You can also use a special "heredoc"-like syntax to read up to
627 some arbitrary end marker:
635 Any string of characters can be used instead of C<END>. The end
636 marker must appear on a line of its own, without any preceeding or
637 following characters (not even spaces).
639 Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to
640 upload local files (so-called "FileIn" parameters in the generator).
642 =head1 EXIT ON ERROR BEHAVIOUR
644 By default, guestfish will ignore any errors when in interactive mode
645 (ie. taking commands from a human over a tty), and will exit on the
646 first error in non-interactive mode (scripts, commands given on the
649 If you prefix a command with a I<-> character, then that command will
650 not cause guestfish to exit, even if that (one) command returns an
653 =head1 REMOTE CONTROL GUESTFISH OVER A SOCKET
655 Guestfish can be remote-controlled over a socket. This is useful
656 particularly in shell scripts where you want to make several different
657 changes to a filesystem, but you don't want the overhead of starting
658 up a guestfish process each time.
660 Start a guestfish server process using:
662 eval `guestfish --listen`
664 and then send it commands by doing:
666 guestfish --remote cmd [...]
668 To cause the server to exit, send it the exit command:
670 guestfish --remote exit
672 Note that the server will normally exit if there is an error in a
673 command. You can change this in the usual way. See section
674 L</EXIT ON ERROR BEHAVIOUR>.
676 =head2 CONTROLLING MULTIPLE GUESTFISH PROCESSES
678 The C<eval> statement sets the environment variable C<$GUESTFISH_PID>,
679 which is how the I<--remote> option knows where to send the commands.
680 You can have several guestfish listener processes running using:
682 eval `guestfish --listen`
684 eval `guestfish --listen`
687 guestfish --remote=$pid1 cmd
688 guestfish --remote=$pid2 cmd
690 =head2 REMOTE CONTROL DETAILS
692 Remote control happens over a Unix domain socket called
693 C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective
694 user ID of the process, and C<$PID> is the process ID of the server.
696 Guestfish client and server versions must match exactly.
698 =head1 PREPARED DISK IMAGES
700 Use the I<-N type> or I<--new type> parameter to select one of a set
701 of preformatted disk images that guestfish can make for you to save
702 typing. This is particularly useful for testing purposes. This
703 option is used instead of the I<-a> option, and like I<-a> can appear
704 multiple times (and can be mixed with I<-a>).
706 The new disk is called C<test1.img> for the first I<-N>, C<test2.img>
707 for the second and so on. Existing files in the current directory are
710 The type briefly describes how the disk should be sized, partitioned,
711 how filesystem(s) should be created, and how content should be added.
712 Optionally the type can be followed by extra parameters, separated by
713 C<:> (colon) characters. For example, I<-N fs> creates a default
714 100MB, sparsely-allocated disk, containing a single partition, with
715 the partition formatted as ext2. I<-N fs:ext4:1G> is the same, but
716 for an ext4 filesystem on a 1GB disk instead.
718 To list the available types and any extra parameters they take, run:
720 guestfish -N help | less
722 Note that the prepared filesystem is not mounted. You would usually
723 have to use the C<mount /dev/sda1 /> command or add the
724 I<-m /dev/sda1> option.
726 If any I<-N> or I<--new> options are given, the guest is automatically
731 Create a 100MB disk with an ext4-formatted partition:
735 Create a 32MB disk with a VFAT-formatted partition, and mount it:
737 guestfish -N fs:vfat:32M -m /dev/sda1
739 Create a blank 200MB disk:
741 guestfish -N disk:200M
745 Some (not all) long-running commands send progress notification
746 messages as they are running. Guestfish turns these messages into
749 When a command that supports progress bars takes longer than two
750 seconds to run, and if progress bars are enabled, then you will see
751 one appearing below the command:
753 ><fs> copy-size /large-file /another-file 2048M
754 / 10% [#####-----------------------------------------] 00:30
756 The spinner on the left hand side moves round once for every progress
757 notification received from the backend. This is a (reasonably) golden
758 assurance that the command is "doing something" even if the progress
759 bar is not moving, because the command is able to send the progress
760 notifications. When the bar reaches 100% and the command finishes,
761 the spinner disappears.
763 Progress bars are enabled by default when guestfish is used
764 interactively. You can enable them even for non-interactive modes
765 using I<--progress-bars>, and you can disable them completely using
766 I<--no-progress-bars>.
768 =head1 GUESTFISH COMMANDS
770 The commands in this section are guestfish convenience commands, in
771 other words, they are not part of the L<guestfs(3)> API.
773 =head2 alloc | allocate
777 This creates an empty (zeroed) file of the given size, and then adds
778 so it can be further examined.
780 For more advanced image creation, see L<qemu-img(1)> utility.
782 Size can be specified using standard suffixes, eg. C<1M>.
786 copy-in local [local ...] /remotedir
788 C<copy-in> copies local files or directories recursively into the disk
789 image, placing them in the directory called C</remotedir> (which must
790 exist). This guestfish meta-command turns into a sequence of
791 L</tar-in> and other commands as necessary.
793 Multiple local files and directories can be specified, but the last
794 parameter must always be a remote directory. Wildcards cannot be
799 copy-out remote [remote ...] localdir
801 C<copy-out> copies remote files or directories recursively out of the
802 disk image, placing them on the host disk in a local directory called
803 C<localdir> (which must exist). This guestfish meta-command turns
804 into a sequence of L</download>, L</tar-out> and other commands as
807 Multiple remote files and directories can be specified, but the last
808 parameter must always be a local directory. To download to the
809 current directory, use C<.> as in:
813 Wildcards cannot be used in the ordinary command, but you can use
814 this with the help of L</glob> like this:
816 glob copy-out /home/* .
822 This echos the parameters to the terminal.
824 =head2 edit | vi | emacs
828 This is used to edit a file. It downloads the file, edits it
829 locally using your editor, then uploads the result.
831 The editor is C<$EDITOR>. However if you use the alternate
832 commands C<vi> or C<emacs> you will get those corresponding
839 Expand wildcards in any paths in the args list, and run C<command>
840 repeatedly on each matching path.
842 See section WILDCARDS AND GLOBBING.
849 Without any parameter, this lists all commands. With a C<cmd>
850 parameter, this displays detailed help for a command.
856 Change the local directory, ie. the current directory of guestfish
859 Note that C<!cd> won't do what you might expect.
865 Opens the manual page for guestfish.
873 This is used to view a file.
875 The default viewer is C<$PAGER>. However if you use the alternate
876 command C<less> you will get the C<less> command specifically.
880 This exits guestfish. You can also use C<^D> key.
886 Close and reopen the libguestfs handle. It is not necessary to use
887 this normally, because the handle is closed properly when guestfish
888 exits. However this is occasionally useful for testing.
894 This creates an empty sparse file of the given size, and then adds
895 so it can be further examined.
897 In all respects it works the same as the C<alloc> command, except that
898 the image file is allocated sparsely, which means that disk blocks are
899 not assigned to the file until they are needed. Sparse disk files
900 only use space when written to, but they are slower and there is a
901 danger you could run out of real disk space during a write operation.
903 For more advanced image creation, see L<qemu-img(1)> utility.
905 Size can be specified using standard suffixes, eg. C<1M>.
911 This command returns a list of the optional groups
912 known to the daemon, and indicates which ones are
913 supported by this build of the libguestfs appliance.
915 See also L<guestfs(3)/AVAILABILITY>.
921 Run the command as usual, but print the elapsed time afterwards. This
922 can be useful for benchmarking operations.
930 guestfish returns 0 if the commands completed without error, or
931 1 if there was an error.
933 =head1 ENVIRONMENT VARIABLES
939 The C<edit> command uses C<$EDITOR> as the editor. If not
944 Used with the I<--remote> option to specify the remote guestfish
945 process to control. See section
946 L</REMOTE CONTROL GUESTFISH OVER A SOCKET>.
950 If compiled with GNU readline support, various files in the
951 home directory can be used. See L</FILES>.
953 =item LIBGUESTFS_APPEND
955 Pass additional options to the guest kernel.
957 =item LIBGUESTFS_DEBUG
959 Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages. This has the
960 same effect as using the B<-v> option.
962 =item LIBGUESTFS_MEMSIZE
964 Set the memory allocated to the qemu process, in megabytes. For
967 LIBGUESTFS_MEMSIZE=700
969 =item LIBGUESTFS_PATH
971 Set the path that guestfish uses to search for kernel and initrd.img.
972 See the discussion of paths in L<guestfs(3)>.
974 =item LIBGUESTFS_QEMU
976 Set the default qemu binary that libguestfs uses. If not set, then
977 the qemu which was found at compile time by the configure script is
980 =item LIBGUESTFS_TRACE
982 Set C<LIBGUESTFS_TRACE=1> to enable command traces.
986 The C<more> command uses C<$PAGER> as the pager. If not
987 set, it uses C<more>.
991 Location of temporary directory, defaults to C</tmp>.
993 If libguestfs was compiled to use the supermin appliance then each
994 handle will require rather a large amount of space in this directory
995 for short periods of time (~ 80 MB). You can use C<$TMPDIR> to
996 configure another directory to use in case C</tmp> is not large
1005 =item $HOME/.guestfish
1007 If compiled with GNU readline support, then the command history
1008 is saved in this file.
1010 =item $HOME/.inputrc
1014 If compiled with GNU readline support, then these files can be used to
1015 configure readline. For further information, please see
1016 L<readline(3)/INITIALIZATION FILE>.
1018 To write rules which only apply to guestfish, use:
1024 Variables that you can set in inputrc that change the behaviour
1025 of guestfish in useful ways include:
1029 =item completion-ignore-case (default: on)
1031 By default, guestfish will ignore case when tab-completing
1032 paths on the disk. Use:
1034 set completion-ignore-case off
1036 to make guestfish case sensitive.
1042 =item test2.img (etc)
1044 When using the C<-N> or C<--new> option, the prepared disk or
1045 filesystem will be created in the file C<test1.img> in the current
1046 directory. The second use of C<-N> will use C<test2.img> and so on.
1047 Any existing file with the same name will be overwritten.
1054 L<http://libguestfs.org/>,
1058 L<virt-list-filesystems(1)>,
1059 L<virt-list-partitions(1)>,
1069 Richard W.M. Jones (C<rjones at redhat dot com>)
1073 Copyright (C) 2009-2010 Red Hat Inc.
1074 L<http://libguestfs.org/>
1076 This program is free software; you can redistribute it and/or modify
1077 it under the terms of the GNU General Public License as published by
1078 the Free Software Foundation; either version 2 of the License, or
1079 (at your option) any later version.
1081 This program is distributed in the hope that it will be useful,
1082 but WITHOUT ANY WARRANTY; without even the implied warranty of
1083 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1084 GNU General Public License for more details.
1086 You should have received a copy of the GNU General Public License
1087 along with this program; if not, write to the Free Software
1088 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.