1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
5 # rjones <rjones@redhat.com>, 2011.
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-10-04 19:22+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Japanese (http://www.transifex.net/projects/p/fedora/team/"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=1; plural=0\n"
22 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
23 #: ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
24 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
25 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
26 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
27 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
28 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
29 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
30 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
31 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
32 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
33 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
34 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
36 #: ../tools/virt-win-reg.pl:35
41 #: ../cat/virt-cat.pod:5
42 msgid "virt-cat - Display files in a virtual machine"
46 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
47 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
48 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
49 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
50 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
51 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
52 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
53 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
54 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
55 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
56 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
57 #: ../test-tool/libguestfs-test-tool.pod:7
58 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
59 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
60 #: ../tools/virt-win-reg.pl:39
65 #: ../cat/virt-cat.pod:9
68 " virt-cat [--options] -d domname file [file ...]\n"
73 #: ../cat/virt-cat.pod:11
76 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
81 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
82 #: ../inspector/virt-inspector.pod:13
87 #: ../cat/virt-cat.pod:15
90 " virt-cat domname file\n"
95 #: ../cat/virt-cat.pod:17
98 " virt-cat disk.img file\n"
103 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
104 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
105 #: ../erlang/examples/guestfs-erlang.pod:16
106 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
107 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
108 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
109 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
110 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
111 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
112 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
113 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
114 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
115 #: ../test-tool/libguestfs-test-tool.pod:11
116 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
117 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
118 #: ../tools/virt-win-reg.pl:63
123 #: ../cat/virt-cat.pod:21
125 "C<virt-cat> is a command line tool to display the contents of C<file> where "
126 "C<file> exists in the named virtual machine (or disk image)."
130 #: ../cat/virt-cat.pod:24
132 "Multiple filenames can be given, in which case they are concatenated "
133 "together. Each filename must be a full path, starting at the root directory "
134 "(starting with '/')."
138 #: ../cat/virt-cat.pod:28
140 "C<virt-cat> can be used to quickly view a file. To edit a file, use C<virt-"
141 "edit>. For more complex cases you should look at the L<guestfish(1)> tool "
142 "(see L</USING GUESTFISH> below)."
146 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
147 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
148 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
149 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
150 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
151 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
152 #: ../tools/virt-tar.pl:50
157 #: ../cat/virt-cat.pod:34
159 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
163 #: ../cat/virt-cat.pod:37
166 " virt-cat -d mydomain /etc/fstab\n"
171 #: ../cat/virt-cat.pod:39
172 msgid "List syslog messages from a VM disk image file:"
176 #: ../cat/virt-cat.pod:41
179 " virt-cat -a disk.img /var/log/messages | tail\n"
184 #: ../cat/virt-cat.pod:43
185 msgid "Find out what DHCP IP address a VM acquired:"
189 #: ../cat/virt-cat.pod:45
192 " virt-cat -d mydomain /var/log/messages | \\\n"
193 " grep 'dhclient: bound to' | tail\n"
198 #: ../cat/virt-cat.pod:48
199 msgid "Find out what packages were recently installed:"
203 #: ../cat/virt-cat.pod:50
206 " virt-cat -d mydomain /var/log/yum.log | tail\n"
211 #: ../cat/virt-cat.pod:52
212 msgid "Find out who is logged on inside a virtual machine:"
216 #: ../cat/virt-cat.pod:54
219 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
225 #: ../cat/virt-cat.pod:57
226 msgid "or who was logged on:"
230 #: ../cat/virt-cat.pod:59
233 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
234 " last -f /tmp/wtmp\n"
239 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
240 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
241 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
242 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
243 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
244 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
245 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
246 #: ../test-tool/libguestfs-test-tool.pod:36
247 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
248 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
249 #: ../tools/virt-win-reg.pl:96
254 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
255 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
256 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
257 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
258 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
259 #: ../test-tool/libguestfs-test-tool.pod:40
260 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
261 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
262 #: ../tools/virt-win-reg.pl:104
267 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
268 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
269 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
270 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
271 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
272 #: ../tools/virt-win-reg.pl:106
273 msgid "Display brief help."
277 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
278 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
279 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
284 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
285 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
286 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
287 msgid "B<--add> file"
291 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
292 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
293 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
295 "Add I<file> which should be a disk image from a virtual machine. If the "
296 "virtual machine has multiple block devices, you must supply all of them with "
297 "separate I<-a> options."
301 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
302 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
303 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
304 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
306 "The format of the disk image is auto-detected. To override this and force a "
307 "particular format use the I<--format=..> option."
311 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
312 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
317 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
318 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
319 msgid "B<--connect> URI"
323 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
324 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
325 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
326 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
327 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
329 "If using libvirt, connect to the given I<URI>. If omitted, then we connect "
330 "to the default libvirt hypervisor."
334 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
335 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
337 "If you specify guest block devices directly (I<-a>), then libvirt is not "
342 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
343 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
344 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
349 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
350 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
351 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
352 msgid "B<--domain> guest"
356 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
357 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
358 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
360 "Add all the disks from the named libvirt guest. Domain UUIDs can be used "
365 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
366 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
367 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
368 msgid "B<--echo-keys>"
372 #: ../cat/virt-cat.pod:100
374 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
375 "so you cannot see what you are typing. If you are not worried about Tempest "
376 "attacks and there is no one else in the room you can specify this flag to "
377 "see what you are typing."
381 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
382 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
383 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
384 #: ../rescue/virt-rescue.pod:124
385 msgid "B<--format=raw|qcow2|..>"
389 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
390 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
391 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
392 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
397 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
398 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
399 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
400 #: ../rescue/virt-rescue.pod:128
402 "The default for the I<-a> option is to auto-detect the format of the disk "
403 "image. Using this forces the disk format for I<-a> options which follow on "
404 "the command line. Using I<--format> with no argument switches back to auto-"
405 "detection for subsequent I<-a> options."
409 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
410 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
411 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
412 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
413 #: ../src/guestfs.pod:2791
418 #: ../cat/virt-cat.pod:116
421 " virt-cat --format=raw -a disk.img file\n"
426 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
427 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
428 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
429 msgid "forces raw format (no auto-detection) for C<disk.img>."
433 #: ../cat/virt-cat.pod:120
436 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
441 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
442 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
443 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
445 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
446 "detection for C<another.img>."
450 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
451 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
452 #: ../rescue/virt-rescue.pod:144
454 "If you have untrusted raw-format guest disk images, you should use this "
455 "option to specify the disk format. This avoids a possible security problem "
456 "with malicious guests (CVE-2010-3851)."
460 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
461 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
462 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
463 msgid "B<--keys-from-stdin>"
467 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
468 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
469 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
471 "Read key or passphrase parameters from stdin. The default is to try to read "
472 "passphrases from the user by opening C</dev/tty>."
476 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
477 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
478 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
479 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
480 #: ../sparsify/virt-sparsify.pod:159
485 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
486 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
487 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
488 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
489 #: ../sparsify/virt-sparsify.pod:161
494 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
495 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
496 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
497 #: ../sparsify/virt-sparsify.pod:163
498 msgid "Enable verbose messages for debugging."
502 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
503 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
504 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
505 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
506 #: ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
511 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
512 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
513 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
514 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
515 #: ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167
516 #: ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70
517 #: ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119
518 #: ../tools/virt-win-reg.pl:112
523 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
524 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
525 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
526 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
527 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
528 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
529 #: ../tools/virt-win-reg.pl:114
530 msgid "Display version number and exit."
534 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
535 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
536 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
537 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
538 #: ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
543 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
544 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
545 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
546 #: ../sparsify/virt-sparsify.pod:173
547 msgid "Enable tracing of libguestfs API calls."
551 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
552 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
553 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
557 #: ../cat/virt-cat.pod:154
558 msgid "Previous versions of virt-cat allowed you to write either:"
562 #: ../cat/virt-cat.pod:156
565 " virt-cat disk.img [disk.img ...] file\n"
570 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
571 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
576 #: ../cat/virt-cat.pod:160
579 " virt-cat guestname file\n"
584 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
585 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
587 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
588 "the confusing case where a disk image might have the same name as a guest."
592 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
593 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
594 msgid "For compatibility the old style is still supported."
598 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
599 msgid "USING GUESTFISH"
603 #: ../cat/virt-cat.pod:170
605 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
606 "C<virt-cat> doesn't work."
610 #: ../cat/virt-cat.pod:173
611 msgid "Using C<virt-cat> is approximately equivalent to doing:"
615 #: ../cat/virt-cat.pod:175
618 " guestfish --ro -i -d domname download file -\n"
623 #: ../cat/virt-cat.pod:177
625 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
626 "path to the file. Note the final C<-> (meaning \"output to stdout\")."
630 #: ../cat/virt-cat.pod:181
632 "The command above uses libguestfs's guest inspection feature and so does not "
633 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
634 "disk images that don't contain guests. To display a file from a disk image "
639 #: ../cat/virt-cat.pod:186
642 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
647 #: ../cat/virt-cat.pod:188
649 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
650 "the disk image, and C<file> is the full path to the file."
654 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
655 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
656 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
657 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
658 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
659 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
660 msgid "SHELL QUOTING"
664 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
665 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
666 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
667 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
668 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
669 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
671 "Libvirt guest names can contain arbitrary characters, some of which have "
672 "meaning to the shell such as C<#> and space. You may need to quote or "
673 "escape these characters on the command line. See the shell manual page L<sh"
678 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
679 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
680 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
681 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
682 #: ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
687 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
688 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
689 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
690 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
692 "This program returns 0 if successful, or non-zero if there was an error."
696 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
697 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
698 #: ../erlang/examples/guestfs-erlang.pod:97
699 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
700 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
701 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
702 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
703 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
704 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
705 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
706 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
707 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3167
708 #: ../test-tool/libguestfs-test-tool.pod:100
709 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
710 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
711 #: ../tools/virt-win-reg.pl:746
716 #: ../cat/virt-cat.pod:205
718 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
719 "tar-out(1)>, L<http://libguestfs.org/>."
723 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
724 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
725 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
726 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
727 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
728 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
733 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
734 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
735 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
736 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
737 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
738 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
739 #: ../tools/virt-win-reg.pl:774
740 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
744 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
745 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
746 #: ../erlang/examples/guestfs-erlang.pod:114
747 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
748 #: ../fish/guestfish.pod:1265 ../fish/virt-copy-in.pod:64
749 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
750 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
751 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
752 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
753 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
754 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
755 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3246
756 #: ../test-tool/libguestfs-test-tool.pod:110
757 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
758 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
759 #: ../tools/virt-win-reg.pl:776
764 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
765 #: ../resize/virt-resize.pod:641
766 msgid "Copyright (C) 2010-2011 Red Hat Inc."
770 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
771 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
772 #: ../fish/guestfish.pod:1270 ../fish/virt-copy-in.pod:69
773 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
774 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
775 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
776 #: ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272
777 #: ../test-tool/libguestfs-test-tool.pod:115
778 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
779 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
780 #: ../tools/virt-win-reg.pl:780
782 "This program is free software; you can redistribute it and/or modify it "
783 "under the terms of the GNU General Public License as published by the Free "
784 "Software Foundation; either version 2 of the License, or (at your option) "
789 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
790 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
791 #: ../fish/guestfish.pod:1275 ../fish/virt-copy-in.pod:74
792 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
793 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
794 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
795 #: ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277
796 #: ../test-tool/libguestfs-test-tool.pod:120
797 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
798 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
799 #: ../tools/virt-win-reg.pl:785
801 "This program is distributed in the hope that it will be useful, but WITHOUT "
802 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
803 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for "
808 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
809 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
810 #: ../fish/guestfish.pod:1280 ../fish/virt-copy-in.pod:79
811 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
812 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
813 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
814 #: ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282
815 #: ../test-tool/libguestfs-test-tool.pod:125
816 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
817 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
818 #: ../tools/virt-win-reg.pl:790
820 "You should have received a copy of the GNU General Public License along with "
821 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
822 "Ave, Cambridge, MA 02139, USA."
826 #: ../cat/virt-filesystems.pod:5
828 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
829 "virtual machine or disk image"
833 #: ../cat/virt-filesystems.pod:9
836 " virt-filesystems [--options] -d domname\n"
841 #: ../cat/virt-filesystems.pod:11
844 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
849 #: ../cat/virt-filesystems.pod:15
851 "This tool allows you to discover filesystems, partitions, logical volumes, "
852 "and their sizes in a disk image or virtual machine. It is a replacement for "
853 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
857 #: ../cat/virt-filesystems.pod:20
859 "One use for this tool is from shell scripts to iterate over all filesystems "
864 #: ../cat/virt-filesystems.pod:23
867 " for fs in $(virt-filesystems -a disk.img); do\n"
874 #: ../cat/virt-filesystems.pod:27
876 "Another use is to list partitions before using another tool to modify those "
877 "partitions (such as L<virt-resize(1)>). If you are curious about what an "
878 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
882 #: ../cat/virt-filesystems.pod:32
884 "Various command line options control what this program displays. You need "
885 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
886 "guest respectively. If you just specify that then the program shows "
887 "filesystems found, one per line, like this:"
891 #: ../cat/virt-filesystems.pod:37
894 " $ virt-filesystems -a disk.img\n"
896 " /dev/vg_guest/lv_root\n"
901 #: ../cat/virt-filesystems.pod:41
903 "If you add I<-l> or I<--long> then the output includes extra information:"
907 #: ../cat/virt-filesystems.pod:44
910 " $ virt-filesystems -a disk.img -l\n"
911 " Name Type VFS Label Size\n"
912 " /dev/sda1 filesystem ext4 boot 524288000\n"
913 " /dev/vg_guest/lv_root filesystem ext4 root 10212081664\n"
918 #: ../cat/virt-filesystems.pod:49
920 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
925 #: ../cat/virt-filesystems.pod:52
928 " $ virt-filesystems -a disk.img --extra\n"
930 " /dev/vg_guest/lv_root\n"
931 " /dev/vg_guest/lv_swap\n"
932 " /dev/vg_guest/lv_data\n"
937 #: ../cat/virt-filesystems.pod:58
939 "If you add I<--partitions> then partitions are shown instead of filesystems:"
943 #: ../cat/virt-filesystems.pod:60
946 " $ virt-filesystems -a disk.img --partitions\n"
953 #: ../cat/virt-filesystems.pod:64
955 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
956 "volumes>, I<--block-devices> to list those items."
960 #: ../cat/virt-filesystems.pod:67
962 "You can use these options in combination as well (if you want a combination "
963 "including filesystems, you have to add I<--filesystems>). Notice that some "
964 "items fall into several categories (eg. C</dev/sda1> might be both a "
965 "partition and a filesystem). These items are listed several times. To get "
966 "a list which includes absolutely everything that virt-filesystems knows "
967 "about, use the I<--all> option."
971 #: ../cat/virt-filesystems.pod:74
973 "UUIDs (because they are quite long) are not shown by default. Add the I<--"
974 "uuid> option to display device and filesystem UUIDs in the long output."
978 #: ../cat/virt-filesystems.pod:78
980 "I<--all --long --uuid> is a useful combination to display all possible "
981 "information about everything."
985 #: ../cat/virt-filesystems.pod:81
988 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
989 " Name Type VFS Label Size Parent UUID\n"
990 " /dev/sda1 filesystem ntfs System Reserved 100M - F81C92571C92112C\n"
991 " /dev/sda2 filesystem ntfs - 20G - F2E8996AE8992E3B\n"
992 " /dev/sda1 partition - - 100M /dev/sda -\n"
993 " /dev/sda2 partition - - 20G /dev/sda -\n"
994 " /dev/sda device - - 20G - -\n"
999 #: ../cat/virt-filesystems.pod:89
1001 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1005 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1010 #: ../cat/virt-filesystems.pod:112
1012 "Display everything. This is currently the same as specifying these options: "
1013 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1014 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>. (More may be "
1015 "added to this list in future)."
1019 #: ../cat/virt-filesystems.pod:117
1020 msgid "See also I<--long>."
1024 #: ../cat/virt-filesystems.pod:119
1025 msgid "B<--blkdevs>"
1029 #: ../cat/virt-filesystems.pod:121
1030 msgid "B<--block-devices>"
1034 #: ../cat/virt-filesystems.pod:123
1035 msgid "Display block devices."
1039 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1044 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1046 "Write out the results in CSV format (comma-separated values). This format "
1047 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1048 "ABOUT CSV FORMAT> below."
1052 #: ../cat/virt-filesystems.pod:150
1054 "When prompting for keys and passphrases, virt-filesystems normally turns "
1055 "echoing off so you cannot see what you are typing. If you are not worried "
1056 "about Tempest attacks and there is no one else in the room you can specify "
1057 "this flag to see what you are typing."
1061 #: ../cat/virt-filesystems.pod:155
1066 #: ../cat/virt-filesystems.pod:157
1068 "This causes filesystems that are not ordinary, mountable filesystems to be "
1069 "displayed. This category includes swapspace, and filesystems that are empty "
1070 "or contain unknown data."
1074 #: ../cat/virt-filesystems.pod:161
1075 msgid "This option implies I<--filesystems>."
1079 #: ../cat/virt-filesystems.pod:163
1080 msgid "B<--filesystems>"
1084 #: ../cat/virt-filesystems.pod:165
1086 "Display mountable filesystems. If no display option was selected then this "
1087 "option is implied."
1091 #: ../cat/virt-filesystems.pod:168
1092 msgid "With I<--extra>, non-mountable filesystems are shown too."
1096 #: ../cat/virt-filesystems.pod:181
1099 " virt-filesystems --format=raw -a disk.img\n"
1104 #: ../cat/virt-filesystems.pod:185
1107 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1112 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1113 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1114 #: ../tools/virt-list-partitions.pl:109
1119 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1120 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1121 msgid "B<--human-readable>"
1125 #: ../cat/virt-filesystems.pod:198
1126 msgid "In I<--long> mode, display sizes in human-readable format."
1130 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1131 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1136 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1137 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1142 #: ../cat/virt-filesystems.pod:209
1143 msgid "Display extra columns of data (\"long format\")."
1147 #: ../cat/virt-filesystems.pod:211
1148 msgid "A title row is added unless you also specify I<--no-title>."
1152 #: ../cat/virt-filesystems.pod:213
1154 "The extra columns displayed depend on what output you select, and the "
1155 "ordering of columns may change in future versions. Use the title row, I<--"
1156 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1161 #: ../cat/virt-filesystems.pod:218
1163 "Use I<-h> if you want sizes to be displayed in human-readable format. The "
1164 "default is to show raw numbers of I<bytes>."
1168 #: ../cat/virt-filesystems.pod:221
1169 msgid "Use I<--uuid> to display UUIDs too."
1173 #: ../cat/virt-filesystems.pod:223
1178 #: ../cat/virt-filesystems.pod:225
1179 msgid "B<--logvols>"
1183 #: ../cat/virt-filesystems.pod:227
1184 msgid "B<--logical-volumes>"
1188 #: ../cat/virt-filesystems.pod:229
1190 "Display LVM logical volumes. In this mode, these are displayed irrespective "
1191 "of whether the LVs contain filesystems."
1195 #: ../cat/virt-filesystems.pod:232
1196 msgid "B<--no-title>"
1200 #: ../cat/virt-filesystems.pod:234
1201 msgid "In I<--long> mode, don't add a title row."
1205 #: ../cat/virt-filesystems.pod:236
1207 "Note that the order of the columns is not fixed, and may change in future "
1208 "versions of virt-filesystems, so using this option may give you unexpected "
1213 #: ../cat/virt-filesystems.pod:240
1218 #: ../cat/virt-filesystems.pod:242
1219 msgid "B<--partitions>"
1223 #: ../cat/virt-filesystems.pod:244
1225 "Display partitions. In this mode, these are displayed irrespective of "
1226 "whether the partitions contain filesystems."
1230 #: ../cat/virt-filesystems.pod:247
1235 #: ../cat/virt-filesystems.pod:249
1236 msgid "B<--physvols>"
1240 #: ../cat/virt-filesystems.pod:251
1241 msgid "B<--physical-volumes>"
1245 #: ../cat/virt-filesystems.pod:253
1246 msgid "Display LVM physical volumes."
1250 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1255 #: ../cat/virt-filesystems.pod:257
1260 #: ../cat/virt-filesystems.pod:259
1261 msgid "In I<--long> mode, display UUIDs as well."
1265 #: ../cat/virt-filesystems.pod:273
1270 #: ../cat/virt-filesystems.pod:275
1271 msgid "B<--volgroups>"
1275 #: ../cat/virt-filesystems.pod:277
1276 msgid "B<--volume-groups>"
1280 #: ../cat/virt-filesystems.pod:279
1281 msgid "Display LVM volume groups."
1285 #: ../cat/virt-filesystems.pod:287
1290 #: ../cat/virt-filesystems.pod:289
1292 "Note that columns in the output are subject to reordering and change in "
1293 "future versions of this tool."
1297 #: ../cat/virt-filesystems.pod:294
1302 #: ../cat/virt-filesystems.pod:296
1303 msgid "The filesystem, partition, block device or LVM name."
1307 #: ../cat/virt-filesystems.pod:298
1309 "For device and partition names these are displayed as canonical libguestfs "
1310 "names, so that for example C</dev/sda2> is the second partition on the first "
1315 #: ../cat/virt-filesystems.pod:302
1317 "If the I<--long> option is B<not> specified, then only the name column is "
1318 "shown in the output."
1322 #: ../cat/virt-filesystems.pod:305
1327 #: ../cat/virt-filesystems.pod:307
1328 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1332 #: ../cat/virt-filesystems.pod:309
1337 #: ../cat/virt-filesystems.pod:311
1339 "If there is a filesystem, then this column displays the filesystem type if "
1340 "one could be detected, eg. C<ext4>."
1344 #: ../cat/virt-filesystems.pod:314
1349 #: ../cat/virt-filesystems.pod:316
1351 "If the object has a label (used for identifying and mounting filesystems) "
1352 "then this column contains the label."
1356 #: ../cat/virt-filesystems.pod:319
1361 #: ../cat/virt-filesystems.pod:321
1363 "The size of the object in bytes. If the I<--human> option is used then the "
1364 "size is displayed in a human-readable form."
1368 #: ../cat/virt-filesystems.pod:324
1373 #: ../cat/virt-filesystems.pod:326
1375 "The parent column records the parent relationship between objects. For "
1376 "example, if the object is a partition, then this column contains the name of "
1377 "the containing device. If the object is a logical volume, then this column "
1378 "is the name of the volume group."
1382 #: ../cat/virt-filesystems.pod:331
1387 #: ../cat/virt-filesystems.pod:333
1389 "If the object has a UUID (used for identifying and mounting filesystems and "
1390 "block devices) then this column contains the UUID as a string."
1394 #: ../cat/virt-filesystems.pod:337
1395 msgid "The UUID is only displayed if the I<--uuid> option is given."
1399 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1400 #: ../df/virt-df.pod:191
1401 msgid "NOTE ABOUT CSV FORMAT"
1405 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1406 #: ../df/virt-df.pod:193
1408 "Comma-separated values (CSV) is a deceptive format. It I<seems> like it "
1409 "should be easy to parse, but it is definitely not easy to parse."
1413 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1414 #: ../df/virt-df.pod:196
1416 "Myth: Just split fields at commas. Reality: This does I<not> work "
1417 "reliably. This example has two columns:"
1421 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1422 #: ../df/virt-df.pod:199
1425 " \"foo,bar\",baz\n"
1430 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1431 #: ../df/virt-df.pod:201
1433 "Myth: Read the file one line at a time. Reality: This does I<not> work "
1434 "reliably. This example has one row:"
1438 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1439 #: ../df/virt-df.pod:204
1448 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1449 #: ../df/virt-df.pod:207
1451 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1452 "packaged in major Linux distributions)."
1456 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1457 #: ../df/virt-df.pod:210
1459 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1460 "or Python's built-in csv library)."
1464 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1465 #: ../df/virt-df.pod:213
1466 msgid "Most spreadsheets and databases can import CSV directly."
1470 #: ../cat/virt-filesystems.pod:379
1472 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1473 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1478 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1479 #: ../tools/virt-win-reg.pl:778
1480 msgid "Copyright (C) 2010 Red Hat Inc."
1484 #: ../cat/virt-ls.pod:5
1485 msgid "virt-ls - List files in a virtual machine"
1489 #: ../cat/virt-ls.pod:9
1492 " virt-ls [--options] -d domname directory [directory ...]\n"
1497 #: ../cat/virt-ls.pod:11
1500 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1505 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1510 #: ../cat/virt-ls.pod:15
1513 " virt-ls [--options] domname directory\n"
1518 #: ../cat/virt-ls.pod:17
1521 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1526 #: ../cat/virt-ls.pod:21
1528 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1529 "more from a virtual machine or disk image."
1533 #: ../cat/virt-ls.pod:24
1535 "Multiple directory names can be given, in which case the output from each is "
1540 #: ../cat/virt-ls.pod:27
1542 "To list directories from a libvirt guest use the I<-d> option to specify the "
1543 "name of the guest. For a disk image, use the I<-a> option."
1547 #: ../cat/virt-ls.pod:31
1549 "C<virt-ls> can do many simple file listings. For more complicated cases you "
1550 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1555 #: ../cat/virt-ls.pod:37
1556 msgid "Get a list of all files and directories in a virtual machine:"
1560 #: ../cat/virt-ls.pod:39
1563 " virt-ls -R -d guest /\n"
1568 #: ../cat/virt-ls.pod:41
1569 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1573 #: ../cat/virt-ls.pod:43
1576 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1581 #: ../cat/virt-ls.pod:45
1582 msgid "List all public-writable directories in a Linux virtual machine:"
1586 #: ../cat/virt-ls.pod:47
1589 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1594 #: ../cat/virt-ls.pod:49
1595 msgid "List all Unix domain sockets in a Linux virtual machine:"
1599 #: ../cat/virt-ls.pod:51
1602 " virt-ls -lR -d guest / | grep '^s'\n"
1607 #: ../cat/virt-ls.pod:53
1608 msgid "List all regular files with filenames ending in '.png':"
1612 #: ../cat/virt-ls.pod:55
1615 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1620 #: ../cat/virt-ls.pod:57
1621 msgid "To display files larger than 10MB in home directories:"
1625 #: ../cat/virt-ls.pod:59
1628 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1633 #: ../cat/virt-ls.pod:61
1634 msgid "Find everything modified in the last 7 days:"
1638 #: ../cat/virt-ls.pod:63
1641 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1646 #: ../cat/virt-ls.pod:65
1647 msgid "Find regular files modified in the last 24 hours:"
1651 #: ../cat/virt-ls.pod:67
1654 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1659 #: ../cat/virt-ls.pod:69
1660 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1664 #: ../cat/virt-ls.pod:71
1666 "Find the differences between files in a guest and an earlier snapshot of the "
1671 #: ../cat/virt-ls.pod:74
1674 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1675 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1676 " diff -u old new | less\n"
1681 #: ../cat/virt-ls.pod:78
1683 "The commands above won't find files where the content has changed but the "
1684 "metadata (eg. file size and modification date) is the same. To do that, you "
1685 "need to add the I<--checksum> parameter to both C<virt-ls> commands. I<--"
1686 "checksum> can be quite slow since it has to read and compute a checksum of "
1687 "every regular file in the virtual machine."
1691 #: ../cat/virt-ls.pod:84
1692 msgid "OUTPUT MODES"
1696 #: ../cat/virt-ls.pod:86
1698 "C<virt-ls> has four output modes, controlled by different combinations of "
1699 "the I<-l> and I<-R> options."
1703 #: ../cat/virt-ls.pod:89
1704 msgid "SIMPLE LISTING"
1708 #: ../cat/virt-ls.pod:91
1709 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1713 #: ../cat/virt-ls.pod:93
1716 " $ virt-ls -d guest /\n"
1724 #: ../cat/virt-ls.pod:98
1725 msgid "LONG LISTING"
1729 #: ../cat/virt-ls.pod:100
1731 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1732 "(more specifically, like the C<guestfs_ll> function)."
1736 #: ../cat/virt-ls.pod:103
1739 " $ virt-ls -l -d guest /\n"
1741 " dr-xr-xr-x. 2 root root 4096 2009-08-25 19:06 bin\n"
1742 " dr-xr-xr-x. 5 root root 3072 2009-08-25 19:06 boot\n"
1748 #: ../cat/virt-ls.pod:109
1750 "Note that while this is useful for displaying a directory, do not try "
1751 "parsing this output in another program. Use L</RECURSIVE LONG LISTING> "
1756 #: ../cat/virt-ls.pod:113
1757 msgid "RECURSIVE LISTING"
1761 #: ../cat/virt-ls.pod:115
1763 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1764 "and directories recursively:"
1768 #: ../cat/virt-ls.pod:118
1771 " $ virt-ls -R -d guest /tmp\n"
1779 #: ../cat/virt-ls.pod:123
1781 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1782 "converts C<\\0> characters to C<\\n>."
1786 #: ../cat/virt-ls.pod:126
1787 msgid "RECURSIVE LONG LISTING"
1791 #: ../cat/virt-ls.pod:128
1793 "Using I<-lR> options together changes the output to display directories "
1794 "recursively, with file stats, and optionally other features such as "
1795 "checksums and extended attributes."
1799 #: ../cat/virt-ls.pod:132
1801 "Most of the interesting features of C<virt-ls> are only available when using "
1806 #: ../cat/virt-ls.pod:135
1808 "The fields are normally space-separated. Filenames are B<not> quoted, so "
1809 "you cannot use the output in another program (because filenames can contain "
1810 "spaces and other unsafe characters). If the guest was untrusted and someone "
1811 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1812 "on you by creating filenames with embedded newline characters. To B<safely> "
1813 "parse the output in another program, use the I<--csv> (Comma-Separated "
1818 #: ../cat/virt-ls.pod:143
1820 "Note that this output format is completely unrelated to the C<ls -lR> "
1825 #: ../cat/virt-ls.pod:146
1828 " $ virt-ls -lR -d guest /bin\n"
1829 " d 0555 4096 /bin\n"
1830 " - 0755 123 /bin/alsaunmute\n"
1831 " - 0755 28328 /bin/arch\n"
1832 " l 0777 4 /bin/awk -> gawk\n"
1833 " - 0755 27216 /bin/basename\n"
1834 " - 0755 943360 /bin/bash\n"
1840 #: ../cat/virt-ls.pod:155
1841 msgid "These basic fields are always shown:"
1845 #: ../cat/virt-ls.pod:159
1850 #: ../cat/virt-ls.pod:161
1852 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1853 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1854 "link), C<s> (socket) or C<u> (unknown)."
1858 #: ../cat/virt-ls.pod:171
1863 #: ../cat/virt-ls.pod:173
1864 msgid "The Unix permissions, displayed as a 4 digit octal number."
1868 #: ../cat/virt-ls.pod:175
1873 #: ../cat/virt-ls.pod:177
1875 "The size of the file. This is shown in bytes unless I<-h> or I<--human-"
1876 "readable> option is given, in which case this is shown as a human-readable "
1881 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
1886 #: ../cat/virt-ls.pod:183
1887 msgid "The full path of the file or directory."
1891 #: ../cat/virt-ls.pod:185
1896 #: ../cat/virt-ls.pod:187
1897 msgid "For symbolic links only, the link target."
1901 #: ../cat/virt-ls.pod:191
1903 "In I<-lR> mode, additional command line options enable the display of more "
1908 #: ../cat/virt-ls.pod:194
1910 "With the I<--uids> flag, these additional fields are displayed before the "
1915 #: ../cat/virt-ls.pod:199
1920 #: ../cat/virt-ls.pod:201
1925 #: ../cat/virt-ls.pod:203
1927 "The UID and GID of the owner of the file (displayed numerically). Note "
1928 "these only make sense in the context of a Unix-like guest."
1932 #: ../cat/virt-ls.pod:208
1933 msgid "With the I<--times> flag, these additional fields are displayed:"
1937 #: ../cat/virt-ls.pod:212
1942 #: ../cat/virt-ls.pod:214
1943 msgid "The time of last access."
1947 #: ../cat/virt-ls.pod:216
1952 #: ../cat/virt-ls.pod:218
1953 msgid "The time of last modification."
1957 #: ../cat/virt-ls.pod:220
1962 #: ../cat/virt-ls.pod:222
1963 msgid "The time of last status change."
1967 #: ../cat/virt-ls.pod:226
1969 "The time fields are displayed as string dates and times, unless one of the "
1970 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1974 #: ../cat/virt-ls.pod:229
1975 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1979 #: ../cat/virt-ls.pod:233
1984 #: ../cat/virt-ls.pod:235
1986 "The device containing the file (displayed as major:minor). This may not "
1987 "match devices as known to the guest."
1991 #: ../cat/virt-ls.pod:238
1996 #: ../cat/virt-ls.pod:240
1997 msgid "The inode number."
2001 #: ../cat/virt-ls.pod:242
2006 #: ../cat/virt-ls.pod:244
2007 msgid "The number of hard links."
2011 #: ../cat/virt-ls.pod:246
2016 #: ../cat/virt-ls.pod:248
2018 "For block and char special files, the device (displayed as major:minor)."
2022 #: ../cat/virt-ls.pod:251
2027 #: ../cat/virt-ls.pod:253
2028 msgid "The number of 512 byte blocks allocated to the file."
2032 #: ../cat/virt-ls.pod:257
2034 "With the I<--checksum> flag, the checksum of the file contents is shown "
2035 "(only for regular files). Computing file checksums can take a considerable "
2040 #: ../cat/virt-ls.pod:280
2041 msgid "B<--checksum>"
2045 #: ../cat/virt-ls.pod:282
2046 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2050 #: ../cat/virt-ls.pod:284
2052 "Display checksum over file contents for regular files. With no argument, "
2053 "this defaults to using I<md5>. Using an argument, you can select the "
2054 "checksum type to use."
2058 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2059 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2060 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2062 "This option only has effect in I<-lR> output mode. See L</RECURSIVE LONG "
2067 #: ../cat/virt-ls.pod:316
2069 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2070 "so you cannot see what you are typing. If you are not worried about Tempest "
2071 "attacks and there is no one else in the room you can specify this flag to "
2072 "see what you are typing."
2076 #: ../cat/virt-ls.pod:321
2077 msgid "B<--extra-stats>"
2081 #: ../cat/virt-ls.pod:323
2082 msgid "Display extra stats."
2086 #: ../cat/virt-ls.pod:339
2089 " virt-ls --format=raw -a disk.img /dir\n"
2094 #: ../cat/virt-ls.pod:343
2097 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2102 #: ../cat/virt-ls.pod:356
2103 msgid "Display file sizes in human-readable format."
2107 #: ../cat/virt-ls.pod:370
2112 #: ../cat/virt-ls.pod:372
2113 msgid "B<--recursive>"
2117 #: ../cat/virt-ls.pod:374
2119 "Select the mode. With neither of these options, C<virt-ls> produces a "
2120 "simple, flat list of the files in the named directory. See L</SIMPLE "
2125 #: ../cat/virt-ls.pod:378
2127 "C<virt-ls -l> produces a \"long listing\", which shows more detail. See L</"
2132 #: ../cat/virt-ls.pod:381
2134 "C<virt-ls -R> produces a recursive list of files starting at the named "
2135 "directory. See L</RECURSIVE LISTING>."
2139 #: ../cat/virt-ls.pod:384
2141 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2142 "parsed. See L</RECURSIVE LONG LISTING>."
2146 #: ../cat/virt-ls.pod:387
2151 #: ../cat/virt-ls.pod:389
2152 msgid "Display time fields."
2156 #: ../cat/virt-ls.pod:394
2157 msgid "B<--time-days>"
2161 #: ../cat/virt-ls.pod:396
2162 msgid "Display time fields as days before now (negative if in the future)."
2166 #: ../cat/virt-ls.pod:398
2168 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2169 "of the file is between 0 and 86399 seconds."
2173 #: ../cat/virt-ls.pod:404
2174 msgid "B<--time-relative>"
2178 #: ../cat/virt-ls.pod:406
2179 msgid "Display time fields as seconds before now (negative if in the future)."
2183 #: ../cat/virt-ls.pod:411
2188 #: ../cat/virt-ls.pod:413
2189 msgid "Display time fields as seconds since the Unix epoch."
2193 #: ../cat/virt-ls.pod:418
2198 #: ../cat/virt-ls.pod:420
2199 msgid "Display UID and GID fields."
2203 #: ../cat/virt-ls.pod:445
2204 msgid "Previous versions of virt-ls allowed you to write either:"
2208 #: ../cat/virt-ls.pod:447
2211 " virt-ls disk.img [disk.img ...] /dir\n"
2216 #: ../cat/virt-ls.pod:451
2219 " virt-ls guestname /dir\n"
2224 #: ../cat/virt-ls.pod:497
2226 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2227 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2228 "L<http://libguestfs.org/>."
2232 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2233 #: ../rescue/virt-rescue.pod:302
2234 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2238 #: ../df/virt-df.pod:5
2239 msgid "virt-df - Display free space on virtual filesystems"
2243 #: ../df/virt-df.pod:9
2246 " virt-df [--options]\n"
2251 #: ../df/virt-df.pod:11
2254 " virt-df [--options] -d domname\n"
2259 #: ../df/virt-df.pod:13
2262 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2267 #: ../df/virt-df.pod:17
2270 " virt-df [--options] domname\n"
2275 #: ../df/virt-df.pod:19
2278 " virt-df [--options] disk.img [disk.img ...]\n"
2283 #: ../df/virt-df.pod:23
2285 "C<virt-df> is a command line tool to display free space on virtual machine "
2286 "filesystems. Unlike other tools, it doesn't just display the size of disk "
2287 "allocated to a virtual machine, but can look inside disk images to see how "
2288 "much space is really being used."
2292 #: ../df/virt-df.pod:28
2294 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2295 "to get a list of all active and inactive guests, and performs a C<df>-type "
2296 "operation on each one in turn, printing out the results."
2300 #: ../df/virt-df.pod:32
2302 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2303 "type operation on either the single named libvirt domain, or on the disk "
2304 "image(s) listed on the command line (which must all belong to a single VM). "
2305 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2306 "guest>. If you want to run on multiple guests, then you have to invoke "
2307 "C<virt-df> multiple times."
2311 #: ../df/virt-df.pod:39
2313 "Use the I<--csv> option to get a format which can be easily parsed by other "
2314 "programs. Other options are similar to the standard L<df(1)> command."
2318 #: ../df/virt-df.pod:45
2320 "Show disk usage for a single libvirt guest called C<F14x64>. Make the "
2321 "output human-readable:"
2325 #: ../df/virt-df.pod:48
2328 " # virt-df -d F14x64 -h\n"
2329 " Filesystem Size Used Available Use%\n"
2330 " F14x64:/dev/sda1 484M 66M 393M 14%\n"
2331 " F14x64:/dev/vg_f13x64/lv_root 7.4G 3.4G 4.0G 46%\n"
2336 #: ../df/virt-df.pod:53
2337 msgid "Show disk usage for a disk image file called C<test.img>:"
2341 #: ../df/virt-df.pod:55
2344 " $ virt-df -a test1.img\n"
2345 " Filesystem 1K-blocks Used Available Use%\n"
2346 " test1.img:/dev/sda1 99099 1551 92432 2%\n"
2351 #: ../df/virt-df.pod:112
2354 " virt-df --format=raw -a disk.img\n"
2359 #: ../df/virt-df.pod:116
2362 " virt-df --format=raw -a disk.img --format -a another.img\n"
2367 #: ../df/virt-df.pod:129
2368 msgid "Print sizes in human-readable format."
2372 #: ../df/virt-df.pod:131
2373 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2377 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2382 #: ../df/virt-df.pod:135
2387 #: ../df/virt-df.pod:137
2388 msgid "Print inodes instead of blocks."
2392 #: ../df/virt-df.pod:139
2393 msgid "B<--one-per-guest>"
2397 #: ../df/virt-df.pod:141
2399 "Run one libguestfs appliance per guest. Normally C<virt-df> will add the "
2400 "disks from several guests to a single libguestfs appliance."
2404 #: ../df/virt-df.pod:144
2405 msgid "You might use this option in the following circumstances:"
2409 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2410 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2411 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2412 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2413 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2414 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2415 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2416 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2417 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2418 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2419 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2420 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2421 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2422 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2423 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2424 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2425 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2426 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2427 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2428 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2429 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2430 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2431 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2432 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2433 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2434 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2435 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2436 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2437 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
2438 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
2439 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
2440 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
2441 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2442 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2443 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2444 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2445 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
2446 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2447 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
2448 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
2449 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
2450 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
2451 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
2452 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
2453 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
2454 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
2455 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
2456 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
2457 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
2458 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
2459 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
2460 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
2461 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
2462 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
2463 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
2464 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
2465 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
2466 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
2467 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
2468 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2959
2469 #: ../src/guestfs.pod:2964 ../src/guestfs.pod:2968 ../src/guestfs.pod:2972
2470 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2990 ../src/guestfs.pod:2995
2471 #: ../src/guestfs.pod:3223 ../src/guestfs.pod:3227 ../src/guestfs.pod:3231
2472 #: ../src/guestfs.pod:3235 ../tools/virt-win-reg.pl:197
2473 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
2474 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
2475 #: ../tools/virt-win-reg.pl:722
2480 #: ../df/virt-df.pod:150
2482 "If you think an untrusted guest might actively try to exploit the libguestfs "
2483 "appliance kernel, then this prevents one guest from interfering with the "
2484 "stats printed for another guest."
2488 #: ../df/virt-df.pod:156
2490 "If the kernel has a bug which stops it from accessing a filesystem in one "
2491 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2492 "and report stats for further guests."
2496 #: ../df/virt-df.pod:165
2498 "Print UUIDs instead of names. This is useful for following a guest even "
2499 "when the guest is migrated or renamed, or when two guests happen to have the "
2504 #: ../df/virt-df.pod:169
2506 "Note that only domains that we fetch from libvirt come with UUIDs. For disk "
2507 "images, we still print the disk image name even when this option is "
2512 #: ../df/virt-df.pod:229
2514 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2519 #: ../edit/virt-edit.pod:5
2520 msgid "virt-edit - Edit a file in a virtual machine"
2524 #: ../edit/virt-edit.pod:9
2527 " virt-edit [--options] -d domname file [file ...]\n"
2532 #: ../edit/virt-edit.pod:11
2535 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2540 #: ../edit/virt-edit.pod:13
2543 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2548 #: ../edit/virt-edit.pod:17
2551 " virt-edit domname file\n"
2556 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2559 " virt-edit disk.img [disk.img ...] file\n"
2564 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2565 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2566 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2567 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2572 #: ../edit/virt-edit.pod:23
2574 "You must I<not> use C<virt-edit> on live virtual machines. If you do this, "
2575 "you risk disk corruption in the VM. C<virt-edit> tries to stop you from "
2576 "doing this, but doesn't catch all cases."
2580 #: ../edit/virt-edit.pod:29
2582 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2583 "exists in the named virtual machine (or disk image)."
2587 #: ../edit/virt-edit.pod:32
2589 "Multiple filenames can be given, in which case they are each edited in "
2590 "turn. Each filename must be a full path, starting at the root directory "
2591 "(starting with '/')."
2595 #: ../edit/virt-edit.pod:36
2596 msgid "If you want to just view a file, use L<virt-cat(1)>."
2600 #: ../edit/virt-edit.pod:38
2602 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2603 "USING GUESTFISH> below)."
2607 #: ../edit/virt-edit.pod:41
2609 "C<virt-edit> cannot be used to create a new file. L<guestfish(1)> can do "
2610 "that and much more."
2614 #: ../edit/virt-edit.pod:46
2615 msgid "Edit the named files interactively:"
2619 #: ../edit/virt-edit.pod:48
2622 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2627 #: ../edit/virt-edit.pod:50
2630 " virt-edit -d mydomain /etc/passwd\n"
2635 #: ../edit/virt-edit.pod:52
2636 msgid "For Windows guests, some Windows paths are understood:"
2640 #: ../edit/virt-edit.pod:54
2643 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2648 #: ../edit/virt-edit.pod:56
2650 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2651 "INTERACTIVE EDITING> below). To change the init default level to 5:"
2655 #: ../edit/virt-edit.pod:60
2658 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2663 #: ../edit/virt-edit.pod:81
2664 msgid "B<-b> extension"
2668 #: ../edit/virt-edit.pod:83
2669 msgid "B<--backup> extension"
2673 #: ../edit/virt-edit.pod:85
2675 "Create a backup of the original file I<in the guest disk image>. The backup "
2676 "has the original filename with C<extension> added."
2680 #: ../edit/virt-edit.pod:88
2682 "Usually the first character of C<extension> would be a dot C<.> so you would "
2687 #: ../edit/virt-edit.pod:91
2690 " virt-edit -b .orig [etc]\n"
2695 #: ../edit/virt-edit.pod:93
2696 msgid "By default, no backup file is made."
2700 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2701 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2702 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2703 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2708 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2709 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2710 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2711 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2712 msgid "B<--connect URI>"
2716 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2717 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2718 #: ../tools/virt-win-reg.pl:135
2720 "If you specify guest block devices directly, then libvirt is not used at all."
2724 #: ../edit/virt-edit.pod:114
2726 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2727 "off so you cannot see what you are typing. If you are not worried about "
2728 "Tempest attacks and there is no one else in the room you can specify this "
2729 "flag to see what you are typing."
2733 #: ../edit/virt-edit.pod:119
2738 #: ../edit/virt-edit.pod:121
2739 msgid "B<--expr> EXPR"
2743 #: ../edit/virt-edit.pod:123
2745 "Instead of launching the external editor, non-interactively apply the Perl "
2746 "expression C<EXPR> to each line in the file. See L</NON-INTERACTIVE "
2751 #: ../edit/virt-edit.pod:127
2753 "Be careful to properly quote the expression to prevent it from being altered "
2758 #: ../edit/virt-edit.pod:130
2759 msgid "Note that this option is only available when Perl 5 is installed."
2763 #: ../edit/virt-edit.pod:132
2764 msgid "B<--format> raw|qcow2|..."
2768 #: ../edit/virt-edit.pod:143
2771 " virt-edit --format=raw -a disk.img file\n"
2776 #: ../edit/virt-edit.pod:147
2779 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2784 #: ../edit/virt-edit.pod:181
2785 msgid "Previous versions of virt-edit allowed you to write either:"
2789 #: ../edit/virt-edit.pod:187
2792 " virt-edit guestname file\n"
2797 #: ../edit/virt-edit.pod:195
2798 msgid "NON-INTERACTIVE EDITING"
2802 #: ../edit/virt-edit.pod:197
2804 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2805 "administrator can interactively edit the file."
2809 #: ../edit/virt-edit.pod:200
2811 "There are two ways also to use C<virt-edit> from scripts in order to make "
2812 "automated edits to files. (Note that although you I<can> use C<virt-edit> "
2813 "like this, it's less error-prone to write scripts directly using the "
2814 "libguestfs API and Augeas for configuration file editing.)"
2818 #: ../edit/virt-edit.pod:206
2820 "The first method is to temporarily set C<$EDITOR> to any script or program "
2821 "you want to run. The script is invoked as C<$EDITOR tmpfile> and it should "
2822 "update C<tmpfile> in place however it likes."
2826 #: ../edit/virt-edit.pod:210
2828 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2829 "short Perl snippet in the style of L<sed(1)>. For example to replace all "
2830 "instances of C<foo> with C<bar> in a file:"
2834 #: ../edit/virt-edit.pod:214
2837 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2842 #: ../edit/virt-edit.pod:216
2844 "The full power of Perl regular expressions can be used (see L<perlre(1)>). "
2845 "For example to delete root's password you could do:"
2849 #: ../edit/virt-edit.pod:219
2852 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2857 #: ../edit/virt-edit.pod:221
2859 "What really happens is that the snippet is evaluated as a Perl expression "
2860 "for each line of the file. The line, including the final C<\\n>, is passed "
2861 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2865 #: ../edit/virt-edit.pod:226
2867 "To delete a line, set C<$_> to the empty string. For example, to delete the "
2868 "C<apache> user account from the password file you can do:"
2872 #: ../edit/virt-edit.pod:229
2875 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2880 #: ../edit/virt-edit.pod:231
2882 "To insert a line, prepend or append it to C<$_>. However appending lines to "
2883 "the end of the file is rather difficult this way since there is no concept "
2884 "of \"last line of the file\" - your expression just doesn't get called "
2885 "again. You might want to use the first method (setting C<$EDITOR>) if you "
2890 #: ../edit/virt-edit.pod:237
2892 "The variable C<$lineno> contains the current line number. As is "
2893 "traditional, the first line in the file is number C<1>."
2897 #: ../edit/virt-edit.pod:240
2899 "The return value from the expression is ignored, but the expression may call "
2900 "C<die> in order to abort the whole program, leaving the original file "
2905 #: ../edit/virt-edit.pod:244
2907 "Remember when matching the end of a line that C<$_> may contain the final C<"
2908 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2909 "newline then neither of these. Thus to match or substitute some text at the "
2910 "end of a line, use this regular expression:"
2914 #: ../edit/virt-edit.pod:249
2917 " /some text(\\r?\\n)?$/\n"
2922 #: ../edit/virt-edit.pod:251
2924 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
2925 "$_> itself (since that would remove all newlines from the file):"
2929 #: ../edit/virt-edit.pod:255
2932 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2937 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2938 msgid "WINDOWS PATHS"
2942 #: ../edit/virt-edit.pod:259
2944 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2945 "paths (eg. C<E:\\foo\\bar.txt>)."
2949 #: ../edit/virt-edit.pod:262
2950 msgid "If and only if the guest is running Windows then:"
2954 #: ../edit/virt-edit.pod:268
2956 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2957 "to the correct filesystem."
2961 #: ../edit/virt-edit.pod:273
2963 "Any backslash (C<\\>) characters in the path are replaced with forward "
2964 "slashes so that libguestfs can process it."
2968 #: ../edit/virt-edit.pod:278
2970 "The path is resolved case insensitively to locate the file that should be "
2975 #: ../edit/virt-edit.pod:283
2976 msgid "There are some known shortcomings:"
2980 #: ../edit/virt-edit.pod:289
2981 msgid "Some NTFS symbolic links may not be followed correctly."
2985 #: ../edit/virt-edit.pod:293
2986 msgid "NTFS junction points that cross filesystems are not followed."
2990 #: ../edit/virt-edit.pod:299
2992 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2993 "C<virt-edit> doesn't work."
2997 #: ../edit/virt-edit.pod:302
2998 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3002 #: ../edit/virt-edit.pod:304
3005 " guestfish --rw -i -d domname edit /file\n"
3010 #: ../edit/virt-edit.pod:306
3012 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3017 #: ../edit/virt-edit.pod:309
3019 "The command above uses libguestfs's guest inspection feature and so does not "
3020 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3021 "disk images that don't contain guests. To edit a file on a disk image "
3026 #: ../edit/virt-edit.pod:314
3029 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3034 #: ../edit/virt-edit.pod:316
3036 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3037 "the disk image to edit, and C</file> is the full path to the file."
3041 #: ../edit/virt-edit.pod:320
3043 "C<virt-edit> cannot create new files. Use the guestfish commands C<touch>, "
3044 "C<write> or C<upload> instead:"
3048 #: ../edit/virt-edit.pod:323
3051 " guestfish --rw -i -d domname touch /newfile\n"
3056 #: ../edit/virt-edit.pod:325
3059 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3064 #: ../edit/virt-edit.pod:327
3067 " guestfish --rw -i -d domname upload localfile /newfile\n"
3072 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3073 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3074 #: ../src/guestfs.pod:3106 ../test-tool/libguestfs-test-tool.pod:95
3075 msgid "ENVIRONMENT VARIABLES"
3079 #: ../edit/virt-edit.pod:333
3084 #: ../edit/virt-edit.pod:335
3086 "If set, this string is used as the editor. It may contain arguments, eg. C<"
3091 #: ../edit/virt-edit.pod:338
3092 msgid "If not set, C<vi> is used."
3096 #: ../edit/virt-edit.pod:356
3098 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3099 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3100 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3104 #: ../erlang/examples/guestfs-erlang.pod:5
3105 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3109 #: ../erlang/examples/guestfs-erlang.pod:9
3112 " {ok, G} = guestfs:create(),\n"
3113 " ok = guestfs:add_drive_opts(G, Disk,\n"
3114 " [{format, \"raw\"}, {readonly, true}]),\n"
3115 " ok = guestfs:launch(G),\n"
3116 " [Device] = guestfs:list_devices(G),\n"
3117 " ok = guestfs:close(G).\n"
3122 #: ../erlang/examples/guestfs-erlang.pod:18
3124 "This manual page documents how to call libguestfs from the Erlang "
3125 "programming language. This page just documents the differences from the C "
3126 "API and gives some examples. If you are not familiar with using libguestfs, "
3127 "you also need to read L<guestfs(3)>."
3131 #: ../erlang/examples/guestfs-erlang.pod:23
3132 msgid "OPENING AND CLOSING THE HANDLE"
3136 #: ../erlang/examples/guestfs-erlang.pod:25
3138 "The Erlang bindings are implemented using an external program called C<erl-"
3139 "guestfs>. This program must be on the current PATH, or else you should "
3140 "specify the full path to the program:"
3144 #: ../erlang/examples/guestfs-erlang.pod:29
3147 " {ok, G} = guestfs:create().\n"
3152 #: ../erlang/examples/guestfs-erlang.pod:31
3155 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3160 #: ../erlang/examples/guestfs-erlang.pod:33
3161 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3165 #: ../erlang/examples/guestfs-erlang.pod:36
3166 msgid "To close the handle:"
3170 #: ../erlang/examples/guestfs-erlang.pod:38
3173 " ok = guestfs:close(G).\n"
3178 #: ../erlang/examples/guestfs-erlang.pod:40
3179 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3183 #: ../erlang/examples/guestfs-erlang.pod:42
3185 "For functions that take optional arguments, the first arguments are the non-"
3186 "optional ones. The last argument is a list of tuples supplying the "
3187 "remaining optional arguments."
3191 #: ../erlang/examples/guestfs-erlang.pod:46
3194 " ok = guestfs:add_drive_opts(G, Disk,\n"
3195 " [{format, \"raw\"}, {readonly, true}]).\n"
3200 #: ../erlang/examples/guestfs-erlang.pod:49
3201 msgid "If the last argument would be an empty list, you can also omit it:"
3205 #: ../erlang/examples/guestfs-erlang.pod:51
3208 " ok = guestfs:add_drive_opts(G, Disk).\n"
3213 #: ../erlang/examples/guestfs-erlang.pod:53
3214 msgid "RETURN VALUES AND ERRORS"
3218 #: ../erlang/examples/guestfs-erlang.pod:55
3220 "On success, most functions return a C<Result> term (which could be a list, "
3221 "string, tuple etc.). If there is nothing for the function to return, then "
3222 "the atom C<ok> is returned."
3226 #: ../erlang/examples/guestfs-erlang.pod:59
3227 msgid "On error, you would see one of the following tuples:"
3231 #: ../erlang/examples/guestfs-erlang.pod:63
3232 msgid "C<{error, Msg, Errno}>"
3236 #: ../erlang/examples/guestfs-erlang.pod:65
3237 msgid "This indicates an ordinary error from the function."
3241 #: ../erlang/examples/guestfs-erlang.pod:67
3243 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3248 #: ../erlang/examples/guestfs-erlang.pod:70
3249 msgid "C<Errno> can be zero. See L<guestfs(3)/guestfs_last_errno>."
3253 #: ../erlang/examples/guestfs-erlang.pod:72
3254 msgid "C<{unknown, Function}>"
3258 #: ../erlang/examples/guestfs-erlang.pod:74
3260 "This indicates that the function you called is not known. Generally this "
3261 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3262 "which you should not do."
3266 #: ../erlang/examples/guestfs-erlang.pod:78
3267 msgid "C<Function> is the name of the unknown function."
3271 #: ../erlang/examples/guestfs-erlang.pod:80
3272 msgid "C<{unknownarg, Arg}>"
3276 #: ../erlang/examples/guestfs-erlang.pod:82
3278 "This indicates that you called a function with optional arguments, with an "
3279 "unknown argument name."
3283 #: ../erlang/examples/guestfs-erlang.pod:85
3284 msgid "C<Arg> is the name of the unknown argument."
3288 #: ../erlang/examples/guestfs-erlang.pod:89
3289 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3290 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3291 #: ../python/examples/guestfs-python.pod:34
3292 #: ../ruby/examples/guestfs-ruby.pod:28
3293 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3297 #: ../erlang/examples/guestfs-erlang.pod:91
3298 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3299 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3300 #: ../python/examples/guestfs-python.pod:36
3301 #: ../ruby/examples/guestfs-ruby.pod:30
3306 #: ../erlang/examples/guestfs-erlang.pod:93
3307 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3308 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3309 #: ../python/examples/guestfs-python.pod:38
3310 #: ../ruby/examples/guestfs-ruby.pod:32
3311 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3315 #: ../erlang/examples/guestfs-erlang.pod:95
3316 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3317 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3318 #: ../python/examples/guestfs-python.pod:40
3319 #: ../ruby/examples/guestfs-ruby.pod:34
3324 #: ../erlang/examples/guestfs-erlang.pod:99
3326 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3327 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3328 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>. L<http://libguestfs.org/>."
3332 #: ../erlang/examples/guestfs-erlang.pod:110
3333 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3334 #: ../fish/guestfish.pod:1261 ../fish/virt-copy-in.pod:60
3335 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3336 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3337 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3338 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3339 #: ../python/examples/guestfs-python.pod:54
3340 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3242
3341 #: ../test-tool/libguestfs-test-tool.pod:106
3346 #: ../erlang/examples/guestfs-erlang.pod:112
3347 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3348 #: ../fish/guestfish.pod:1263 ../fish/virt-copy-in.pod:62
3349 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3350 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3351 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3352 #: ../perl/examples/guestfs-perl.pod:54
3353 #: ../python/examples/guestfs-python.pod:56
3354 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3244
3355 #: ../test-tool/libguestfs-test-tool.pod:108
3356 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3360 #: ../erlang/examples/guestfs-erlang.pod:116
3361 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3362 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3366 #: ../erlang/examples/guestfs-erlang.pod:118
3367 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3368 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3369 #: ../perl/examples/guestfs-perl.pod:60
3370 #: ../python/examples/guestfs-python.pod:62
3371 #: ../ruby/examples/guestfs-ruby.pod:56
3373 "The examples in this manual page may be freely copied, modified and "
3374 "distributed without any restrictions."
3378 #: ../erlang/examples/guestfs-erlang.pod:121
3379 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3380 #: ../java/examples/guestfs-java.pod:69
3381 #: ../ocaml/examples/guestfs-ocaml.pod:102
3382 #: ../perl/examples/guestfs-perl.pod:63
3383 #: ../python/examples/guestfs-python.pod:65
3384 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3251
3386 "This library is free software; you can redistribute it and/or modify it "
3387 "under the terms of the GNU Lesser General Public License as published by the "
3388 "Free Software Foundation; either version 2 of the License, or (at your "
3389 "option) any later version."
3393 #: ../erlang/examples/guestfs-erlang.pod:126
3394 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3395 #: ../java/examples/guestfs-java.pod:74
3396 #: ../ocaml/examples/guestfs-ocaml.pod:107
3397 #: ../perl/examples/guestfs-perl.pod:68
3398 #: ../python/examples/guestfs-python.pod:70
3399 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3256
3401 "This library is distributed in the hope that it will be useful, but WITHOUT "
3402 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3403 "FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License "
3408 #: ../erlang/examples/guestfs-erlang.pod:131
3409 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3410 #: ../java/examples/guestfs-java.pod:79
3411 #: ../ocaml/examples/guestfs-ocaml.pod:112
3412 #: ../perl/examples/guestfs-perl.pod:73
3413 #: ../python/examples/guestfs-python.pod:75
3414 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3261
3416 "You should have received a copy of the GNU Lesser General Public License "
3417 "along with this library; if not, write to the Free Software Foundation, "
3418 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3422 #: ../examples/guestfs-examples.pod:5
3423 msgid "guestfs-examples - Examples of using libguestfs from C"
3427 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3430 " #include <guestfs.h>\n"
3435 #: ../examples/guestfs-examples.pod:11
3438 " guestfs_h *g = guestfs_create ();\n"
3439 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3440 " guestfs_launch (g);\n"
3445 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3448 " cc prog.c -o prog -lguestfs\n"
3450 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3455 #: ../examples/guestfs-examples.pod:21
3457 "This manual page contains examples of calling libguestfs from the C "
3458 "programming language. If you are not familiar with using libguestfs, you "
3459 "also need to read L<guestfs(3)>."
3463 #: ../examples/guestfs-examples.pod:35
3465 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3466 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3467 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3471 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3472 #: ../python/examples/guestfs-python.pod:60
3473 #: ../ruby/examples/guestfs-ruby.pod:54
3474 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3478 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3483 #: ../examples/guestfs-recipes.pod:5
3485 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3486 "here. The only way which works for both sorts of output is to just write "
3487 "the URL directly. Do NOT use L<...> for URLs."
3491 #: ../examples/guestfs-recipes.pod:9
3493 "We break with tradition here and don't use ALL CAPS for the section "
3494 "headings, as this makes them much easier to read."
3498 #: ../examples/guestfs-recipes.pod:16
3499 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3503 #: ../examples/guestfs-recipes.pod:20
3505 "This page contains recipes for and links to things you can do using "
3506 "libguestfs, L<guestfish(1)> and the virt tools."
3510 #: ../examples/guestfs-recipes.pod:23
3511 msgid "Audit a virtual machine for setuid files"
3515 #: ../examples/guestfs-recipes.pod:25
3517 "The link below contains a small program which can be used to audit a Linux "
3518 "virtual machine to see what setuid and setgid files it contains."
3522 #: ../examples/guestfs-recipes.pod:28
3524 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3529 #: ../examples/guestfs-recipes.pod:30
3530 msgid "Change the background image in a Windows XP VM"
3534 #: ../examples/guestfs-recipes.pod:32
3536 "The links below explain how to use L<guestfish(1)> to change the background "
3537 "image for a user of a Windows XP VM. Unfortunately the technique appears to "
3538 "be substantially different for each version of Windows."
3542 #: ../examples/guestfs-recipes.pod:37
3544 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3545 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3549 #: ../examples/guestfs-recipes.pod:40
3550 msgid "Cloning a virtual machine (Linux)"
3554 #: ../examples/guestfs-recipes.pod:42
3556 "The guestfish technique described in the link below works well for most "
3557 "Linux VMs. Depending on the Linux distro you may need to change the paths "
3562 #: ../examples/guestfs-recipes.pod:46
3564 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3569 #: ../examples/guestfs-recipes.pod:48
3571 "Avoid L<virt-clone(1)>. Currently what to do about virt-clone is under "
3576 #: ../examples/guestfs-recipes.pod:51
3577 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3581 #: ../examples/guestfs-recipes.pod:53
3582 msgid "Cloning a virtual machine (Windows)"
3586 #: ../examples/guestfs-recipes.pod:55
3588 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3589 "straightforward. Currently there is code in the Aeolus Oz project which "
3590 "does this (using libguestfs). As part of our review of the virt-clone tool, "
3591 "we may add sysprepping ability."
3595 #: ../examples/guestfs-recipes.pod:60
3597 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3598 "list/2011-May/msg00019.html"
3602 #: ../examples/guestfs-recipes.pod:63
3603 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3607 #: ../examples/guestfs-recipes.pod:65
3608 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3612 #: ../examples/guestfs-recipes.pod:67
3615 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3620 #: ../examples/guestfs-recipes.pod:69
3621 msgid "To export just a subdirectory, eg. C</files>, do:"
3625 #: ../examples/guestfs-recipes.pod:71
3628 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3633 #: ../examples/guestfs-recipes.pod:73
3634 msgid "Create empty disk images"
3638 #: ../examples/guestfs-recipes.pod:75
3640 "You can use the L<guestfish(1)> I<-N> option to create empty disk images. "
3641 "The useful guide below explains the options available."
3645 #: ../examples/guestfs-recipes.pod:78
3647 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3652 #: ../examples/guestfs-recipes.pod:80
3653 msgid "Dump raw filesystem content from inside a disk image or VM"
3657 #: ../examples/guestfs-recipes.pod:82
3659 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3660 "filesystem content from any filesystem in a disk image or a VM (even one "
3661 "which is encrypted or buried inside an LV):"
3665 #: ../examples/guestfs-recipes.pod:86
3668 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3673 #: ../examples/guestfs-recipes.pod:88
3676 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3681 #: ../examples/guestfs-recipes.pod:90
3682 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3686 #: ../examples/guestfs-recipes.pod:92
3687 msgid "Edit grub configuration in a VM"
3691 #: ../examples/guestfs-recipes.pod:94
3692 msgid "You can use this to:"
3696 #: ../examples/guestfs-recipes.pod:100
3697 msgid "Fix a virtual machine that does not boot."
3701 #: ../examples/guestfs-recipes.pod:104
3702 msgid "Change which kernel is used to boot the VM."
3706 #: ../examples/guestfs-recipes.pod:108
3707 msgid "Change kernel command line options."
3711 #: ../examples/guestfs-recipes.pod:112
3712 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3716 #: ../examples/guestfs-recipes.pod:114
3719 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3724 #: ../examples/guestfs-recipes.pod:116
3726 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3731 #: ../examples/guestfs-recipes.pod:119
3734 " virt-rescue -d BrokenGuest\n"
3739 #: ../examples/guestfs-recipes.pod:121
3740 msgid "Export any directory from a VM"
3744 #: ../examples/guestfs-recipes.pod:123
3746 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3750 #: ../examples/guestfs-recipes.pod:126
3753 " virt-copy-out -d Guest /home .\n"
3758 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3759 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
3760 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
3761 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
3762 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
3763 #: ../tools/virt-win-reg.pl:706
3768 #: ../examples/guestfs-recipes.pod:134
3770 "The final dot of the command is not a printing error. It means we want to "
3771 "copy out to the current directory."
3775 #: ../examples/guestfs-recipes.pod:139
3776 msgid "This creates a directory called C<home> under the current directory."
3780 #: ../examples/guestfs-recipes.pod:143
3782 "If the guest is a Windows guest then you can use drive letters and "
3783 "backslashes, but you must prefix the path with C<win:> and quote it to "
3784 "protect it from the shell, like this:"
3788 #: ../examples/guestfs-recipes.pod:147
3791 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3796 #: ../examples/guestfs-recipes.pod:149
3797 msgid "To get the output as a compressed tarball, do:"
3801 #: ../examples/guestfs-recipes.pod:151
3804 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3809 #: ../examples/guestfs-recipes.pod:153
3811 "Although it sounds tempting, this is usually not a reliable way to get a "
3812 "backup from a running guest. See the entry in the FAQ: http://libguestfs."
3813 "org/FAQ.html#backup"
3817 #: ../examples/guestfs-recipes.pod:157
3818 msgid "Find out which user is using the most space"
3822 #: ../examples/guestfs-recipes.pod:159
3824 "This simple script examines a Linux guest to find out which user is using "
3825 "the most space in their home directory:"
3829 #: ../examples/guestfs-recipes.pod:162
3837 #: ../examples/guestfs-recipes.pod:164
3845 #: ../examples/guestfs-recipes.pod:166
3854 #: ../examples/guestfs-recipes.pod:169
3857 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3862 #: ../examples/guestfs-recipes.pod:171
3865 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3866 " echo -n \"$dir/$d\"\n"
3868 " guestfish --remote du \"$dir/$d\";\n"
3869 " done | sort -nr -k 2\n"
3874 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3877 " guestfish --remote exit\n"
3882 #: ../examples/guestfs-recipes.pod:179
3883 msgid "Get DHCP address from a VM"
3887 #: ../examples/guestfs-recipes.pod:181
3889 "The link below explains the many different possible techniques for getting "
3890 "the last assigned DHCP address of a virtual machine."
3894 #: ../examples/guestfs-recipes.pod:184
3896 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
3897 "a-virtual-machine-disk-image/#content"
3901 #: ../examples/guestfs-recipes.pod:186
3903 "In the libguestfs source examples directory you will find the latest version "
3904 "of the C<virt-dhcp-address.c> program."
3908 #: ../examples/guestfs-recipes.pod:189
3909 msgid "Get the operating system product name string"
3913 #: ../examples/guestfs-recipes.pod:191
3914 msgid "Save the following script into a file called C<product-name.sh>:"
3918 #: ../examples/guestfs-recipes.pod:193
3923 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3924 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3925 " guestfish --remote inspect-get-product-name \"$root\"\n"
3926 " guestfish --remote exit\n"
3931 #: ../examples/guestfs-recipes.pod:200
3932 msgid "Make the script executable and run it on a named guest:"
3936 #: ../examples/guestfs-recipes.pod:202
3939 " # product-name.sh RHEL60x64\n"
3940 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3945 #: ../examples/guestfs-recipes.pod:205
3947 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3948 "C<xpath> command line tool or from your favourite programming language:"
3952 #: ../examples/guestfs-recipes.pod:209
3955 " # virt-inspector RHEL60x64 > xml\n"
3956 " # xpath '//product_name' < xml\n"
3959 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
3964 #: ../examples/guestfs-recipes.pod:215
3965 msgid "Get the default boot kernel for a Linux VM"
3969 #: ../examples/guestfs-recipes.pod:217
3971 "The link below contains a program to print the default boot kernel for a "
3976 #: ../examples/guestfs-recipes.pod:220
3978 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
3979 "kernel-for-a-vm/#content"
3983 #: ../examples/guestfs-recipes.pod:222
3985 "It uses Augeas, and the technique is generally applicable for many different "
3990 #: ../examples/guestfs-recipes.pod:229
3991 msgid "listing the user accounts in the guest"
3995 #: ../examples/guestfs-recipes.pod:233
3996 msgid "what repositories is it configured to use"
4000 #: ../examples/guestfs-recipes.pod:237
4001 msgid "what NTP servers does it connect to"
4005 #: ../examples/guestfs-recipes.pod:241
4006 msgid "what were the boot messages last time it booted"
4010 #: ../examples/guestfs-recipes.pod:245
4011 msgid "listing who was logged in recently"
4015 #: ../examples/guestfs-recipes.pod:249
4016 msgid "http://augeas.net/"
4020 #: ../examples/guestfs-recipes.pod:251
4021 msgid "Install RPMs in a guest"
4025 #: ../examples/guestfs-recipes.pod:253
4027 "The link below contains a method to install RPMs in a guest. In fact the "
4028 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4029 "installs them next time the guest is booted. You could use this technique "
4030 "to install vital security updates in an offline guest."
4034 #: ../examples/guestfs-recipes.pod:259
4036 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4040 #: ../examples/guestfs-recipes.pod:261
4041 msgid "List applications installed in a VM"
4045 #: ../examples/guestfs-recipes.pod:263
4046 msgid "Save the following to a file C<list-apps.sh>:"
4050 #: ../examples/guestfs-recipes.pod:265
4055 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4056 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4057 " guestfish --remote inspect-list-applications \"$root\"\n"
4058 " guestfish --remote exit\n"
4063 #: ../examples/guestfs-recipes.pod:272
4065 "Make the file executable and then you can run it on any named virtual "
4070 #: ../examples/guestfs-recipes.pod:275
4073 " # list-apps.sh WinGuest\n"
4075 " app_name: Mozilla Firefox (3.6.12)\n"
4076 " app_display_name: Mozilla Firefox (3.6.12)\n"
4078 " app_version: 3.6.12 (en-GB)\n"
4080 " app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4081 " app_trans_path:\n"
4082 " app_publisher: Mozilla\n"
4083 " app_url: http://www.mozilla.com/en-GB/\n"
4084 " app_source_package:\n"
4086 " app_description: Mozilla Firefox\n"
4089 " app_name: VLC media player\n"
4090 " app_display_name: VLC media player 1.1.5\n"
4092 " app_version: 1.1.5\n"
4094 " app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4095 " app_trans_path:\n"
4096 " app_publisher: VideoLAN\n"
4097 " app_url: http://www.videolan.org/\n"
4098 " app_source_package:\n"
4100 " app_description:\n"
4106 #: ../examples/guestfs-recipes.pod:305
4108 "If you want to run the script on disk images (instead of libvirt virtual "
4109 "machines), change C<-d \"$1\"> to C<-a \"$1\">. See also L<virt-inspector(1)"
4114 #: ../examples/guestfs-recipes.pod:309
4115 msgid "List files and directories in a VM"
4119 #: ../examples/guestfs-recipes.pod:311
4120 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4124 #: ../examples/guestfs-recipes.pod:313
4127 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4132 #: ../examples/guestfs-recipes.pod:315
4133 msgid "List services in a Windows VM"
4137 #: ../examples/guestfs-recipes.pod:317
4139 "The link below contains a script that can be used to list out the services "
4140 "from a Windows VM, and whether those services run at boot time or are loaded "
4145 #: ../examples/guestfs-recipes.pod:321
4147 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4152 #: ../examples/guestfs-recipes.pod:323
4153 msgid "Make a disk image sparse"
4157 #: ../examples/guestfs-recipes.pod:325
4159 "The link below contains some guides for making a disk image sparse (or "
4160 "reintroducing sparseness)."
4164 #: ../examples/guestfs-recipes.pod:328
4166 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4170 #: ../examples/guestfs-recipes.pod:330
4171 msgid "Monitor disk usage over time"
4175 #: ../examples/guestfs-recipes.pod:332
4177 "You can use L<virt-df(1)> to monitor disk usage of your guests over time. "
4178 "The link below contains a guide."
4182 #: ../examples/guestfs-recipes.pod:335
4183 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4187 #: ../examples/guestfs-recipes.pod:337
4188 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4192 #: ../examples/guestfs-recipes.pod:339
4194 "L<guestfish(1)> plus the tools described in the link below can be used to "
4195 "read out the Windows Event Log from any virtual machine running Windows "
4196 "Vista or a later version."
4200 #: ../examples/guestfs-recipes.pod:343
4202 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4203 "guestfish/#content"
4207 #: ../examples/guestfs-recipes.pod:345
4208 msgid "Remove root password (Linux)"
4212 #: ../examples/guestfs-recipes.pod:347
4214 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4215 "files. One use is to remove the root password from a Linux guest:"
4219 #: ../examples/guestfs-recipes.pod:350
4222 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4227 #: ../examples/guestfs-recipes.pod:352
4228 msgid "Remove Administrator password (Windows)"
4232 #: ../examples/guestfs-recipes.pod:354
4234 "The link below contains one technique for removing the Administrator "
4235 "password from a Windows VM, or to be more precise, it gives you a command "
4236 "prompt the next time you log in which you can use to bypass any security:"
4240 #: ../examples/guestfs-recipes.pod:359
4242 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4243 "administrator-password-with-guestfish/"
4247 #: ../examples/guestfs-recipes.pod:361
4248 msgid "Unpack a live CD"
4252 #: ../examples/guestfs-recipes.pod:363
4254 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4255 "Russian doll. You can use L<guestfish(1)> to look inside these multiple "
4256 "layers, as outlined in the guide below."
4260 #: ../examples/guestfs-recipes.pod:367
4262 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4267 #: ../examples/guestfs-recipes.pod:369
4268 msgid "Uploading and downloading files"
4272 #: ../examples/guestfs-recipes.pod:371
4274 "The link below contains general tips on uploading (copying in) and "
4275 "downloading (copying out) files from VMs."
4279 #: ../examples/guestfs-recipes.pod:374
4281 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4285 #: ../examples/guestfs-recipes.pod:376
4286 msgid "Use libguestfs tools on VMware ESX guests"
4290 #: ../examples/guestfs-recipes.pod:378
4292 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4293 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4297 #: ../examples/guestfs-recipes.pod:382
4299 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4304 #: ../examples/guestfs-recipes.pod:386
4306 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4307 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4308 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4312 #: ../examples/guestfs-recipes.pod:403
4313 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4317 #: ../fish/guestfish-actions.pod:1
4322 #: ../fish/guestfish-actions.pod:3
4325 " add-cdrom filename\n"
4330 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4331 msgid "This function adds a virtual CD-ROM disk image to the guest."
4335 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4336 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4340 #: ../fish/guestfish-actions.pod:15
4342 "This call checks for the existence of C<filename>. This stops you from "
4343 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4344 "and C<http:> URLs. To specify those, use the general L</config> call "
4349 #: ../fish/guestfish-actions.pod:22
4351 "If you just want to add an ISO file (often you use this as an efficient way "
4352 "to transfer large files into the guest), then you should probably use L</add-"
4353 "drive-ro> instead."
4357 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4358 #: ../fish/guestfish-actions.pod:177
4360 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4365 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4366 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4367 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4368 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
4369 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4370 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4371 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4372 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4373 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4374 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
4375 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
4376 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
4377 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
4378 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
4379 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
4380 #: ../src/guestfs-actions.pod:8040
4382 "Deprecated functions will not be removed from the API, but the fact that "
4383 "they are deprecated indicates that there are problems with correct use of "
4388 #: ../fish/guestfish-actions.pod:35
4393 #: ../fish/guestfish-actions.pod:37
4398 #: ../fish/guestfish-actions.pod:39
4401 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4406 #: ../fish/guestfish-actions.pod:41
4408 "This function adds the disk(s) attached to the named libvirt domain C<dom>. "
4409 "It works by connecting to libvirt, requesting the domain and domain XML from "
4410 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4414 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4416 "The number of disks added is returned. This operation is atomic: if an "
4417 "error is returned, then no disks are added."
4421 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4423 "This function does some minimal checks to make sure the libvirt domain is "
4424 "not running (unless C<readonly> is true). In a future version we will try "
4425 "to acquire the libvirt lock on each disk."
4429 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4431 "Disks must be accessible locally. This often means that adding disks from a "
4432 "remote libvirt connection (see L<http://libvirt.org/remote.html>) will fail "
4433 "unless those disks are accessible via the same device path locally too."
4437 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4439 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4440 "libvirt.org/uri.html>). If this is not set then we connect to the default "
4441 "libvirt URI (or one set through an environment variable, see the libvirt "
4442 "documentation for full details)."
4446 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4448 "The optional C<live> flag controls whether this call will try to connect to "
4449 "a running virtual machine C<guestfsd> process if it sees a suitable "
4450 "E<lt>channelE<gt> element in the libvirt XML definition. The default (if "
4451 "the flag is omitted) is never to try. See L<guestfs(3)/ATTACHING TO RUNNING "
4452 "DAEMONS> for more information."
4456 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4458 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4459 "passed instead of the domain name. The C<dom> string is treated as a UUID "
4460 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4465 #: ../fish/guestfish-actions.pod:76
4467 "The other optional parameters are passed directly through to L</add-drive-"
4472 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4473 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4474 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4475 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4476 #: ../fish/guestfish-actions.pod:3504
4478 "This command has one or more optional arguments. See L</OPTIONAL ARGUMENTS>."
4482 #: ../fish/guestfish-actions.pod:81
4487 #: ../fish/guestfish-actions.pod:83
4490 " add-drive filename\n"
4495 #: ../fish/guestfish-actions.pod:85
4497 "This function is the equivalent of calling L</add-drive-opts> with no "
4498 "optional parameters, so the disk is added writable, with the format being "
4499 "detected automatically."
4503 #: ../fish/guestfish-actions.pod:89
4505 "Automatic detection of the format opens you up to a potential security hole "
4506 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4507 "RHBZ#642934. Specifying the format closes this security hole. Therefore "
4508 "you should think about replacing calls to this function with calls to L</add-"
4509 "drive-opts>, and specifying the format."
4513 #: ../fish/guestfish-actions.pod:96
4514 msgid "add-drive-opts"
4518 #: ../fish/guestfish-actions.pod:98
4523 #: ../fish/guestfish-actions.pod:100
4526 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4531 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4533 "This function adds a virtual machine disk image C<filename> to libguestfs. "
4534 "The first time you call this function, the disk appears as C</dev/sda>, the "
4535 "second time as C</dev/sdb>, and so on."
4539 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4541 "You don't necessarily need to be root when using libguestfs. However you "
4542 "obviously do need sufficient permissions to access the filename for whatever "
4543 "operations you want to perform (ie. read access if you just want to read the "
4544 "image or write access if you want to modify the image)."
4548 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4549 msgid "This call checks that C<filename> exists."
4553 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4554 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
4555 msgid "The optional arguments are:"
4559 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4564 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4566 "If true then the image is treated as read-only. Writes are still allowed, "
4567 "but they are stored in a temporary snapshot overlay which is discarded at "
4568 "the end. The disk that you add is not modified."
4572 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4577 #: ../fish/guestfish-actions.pod:127
4579 "This forces the image format. If you omit this (or use L</add-drive> or L</"
4580 "add-drive-ro>) then the format is automatically detected. Possible formats "
4581 "include C<raw> and C<qcow2>."
4585 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4587 "Automatic detection of the format opens you up to a potential security hole "
4588 "when dealing with untrusted raw-format images. See CVE-2010-3851 and "
4589 "RHBZ#642934. Specifying the format closes this security hole."
4593 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4598 #: ../fish/guestfish-actions.pod:138
4600 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4601 "add-drive-with-if> call (q.v.)"
4605 #: ../fish/guestfish-actions.pod:145
4606 msgid "add-drive-ro"
4610 #: ../fish/guestfish-actions.pod:147
4615 #: ../fish/guestfish-actions.pod:149
4618 " add-drive-ro filename\n"
4623 #: ../fish/guestfish-actions.pod:151
4625 "This function is the equivalent of calling L</add-drive-opts> with the "
4626 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4627 "is added read-only, with the format being detected automatically."
4631 #: ../fish/guestfish-actions.pod:156
4632 msgid "add-drive-ro-with-if"
4636 #: ../fish/guestfish-actions.pod:158
4639 " add-drive-ro-with-if filename iface\n"
4644 #: ../fish/guestfish-actions.pod:160
4646 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4647 "interface emulation to use at run time."
4651 #: ../fish/guestfish-actions.pod:170
4652 msgid "add-drive-with-if"
4656 #: ../fish/guestfish-actions.pod:172
4659 " add-drive-with-if filename iface\n"
4664 #: ../fish/guestfish-actions.pod:174
4666 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4667 "interface emulation to use at run time."
4671 #: ../fish/guestfish-actions.pod:184
4676 #: ../fish/guestfish-actions.pod:186
4679 " aug-clear augpath\n"
4684 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4686 "Set the value associated with C<path> to C<NULL>. This is the same as the "
4687 "L<augtool(1)> C<clear> command."
4691 #: ../fish/guestfish-actions.pod:191
4696 #: ../fish/guestfish-actions.pod:193
4704 #: ../fish/guestfish-actions.pod:195
4706 "Close the current Augeas handle and free up any resources used by it. After "
4707 "calling this, you have to call L</aug-init> again before you can use any "
4708 "other Augeas functions."
4712 #: ../fish/guestfish-actions.pod:200
4717 #: ../fish/guestfish-actions.pod:202
4720 " aug-defnode name expr val\n"
4725 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4727 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4731 #: ../fish/guestfish-actions.pod:207
4733 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4734 "calling L</aug-set> C<expr>, C<value>. C<name> will be the nodeset "
4735 "containing that single node."
4739 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4741 "On success this returns a pair containing the number of nodes in the "
4742 "nodeset, and a boolean flag if a node was created."
4746 #: ../fish/guestfish-actions.pod:215
4751 #: ../fish/guestfish-actions.pod:217
4754 " aug-defvar name expr\n"
4759 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4761 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4762 "C<expr>. If C<expr> is NULL, then C<name> is undefined."
4766 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4768 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4769 "evaluates to something which is not a nodeset."
4773 #: ../fish/guestfish-actions.pod:226
4778 #: ../fish/guestfish-actions.pod:228
4781 " aug-get augpath\n"
4786 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4788 "Look up the value associated with C<path>. If C<path> matches exactly one "
4789 "node, the C<value> is returned."
4793 #: ../fish/guestfish-actions.pod:233
4798 #: ../fish/guestfish-actions.pod:235
4801 " aug-init root flags\n"
4806 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4808 "Create a new Augeas handle for editing configuration files. If there was "
4809 "any previous Augeas handle associated with this guestfs session, then it is "
4814 #: ../fish/guestfish-actions.pod:241
4815 msgid "You must call this before using any other L</aug-*> commands."
4819 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4821 "C<root> is the filesystem root. C<root> must not be NULL, use C</> instead."
4825 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4827 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4828 "logical I<or> of the following integers:"
4832 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4833 msgid "C<AUG_SAVE_BACKUP> = 1"
4837 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4838 msgid "Keep the original file with a C<.augsave> extension."
4842 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4843 msgid "C<AUG_SAVE_NEWFILE> = 2"
4847 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4849 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4850 "original. Overrides C<AUG_SAVE_BACKUP>."
4854 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4855 msgid "C<AUG_TYPE_CHECK> = 4"
4859 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4860 msgid "Typecheck lenses."
4864 #: ../fish/guestfish-actions.pod:266
4866 "This option is only useful when debugging Augeas lenses. Use of this option "
4867 "may require additional memory for the libguestfs appliance. You may need to "
4868 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4872 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4873 msgid "C<AUG_NO_STDINC> = 8"
4877 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4878 msgid "Do not use standard load path for modules."
4882 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4883 msgid "C<AUG_SAVE_NOOP> = 16"
4887 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4888 msgid "Make save a no-op, just record what would have been changed."
4892 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4893 msgid "C<AUG_NO_LOAD> = 32"
4897 #: ../fish/guestfish-actions.pod:281
4898 msgid "Do not load the tree in L</aug-init>."
4902 #: ../fish/guestfish-actions.pod:285
4903 msgid "To close the handle, you can call L</aug-close>."
4907 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4908 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4912 #: ../fish/guestfish-actions.pod:289
4917 #: ../fish/guestfish-actions.pod:291
4920 " aug-insert augpath label true|false\n"
4925 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4927 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4928 "or after C<path> (depending on the boolean flag C<before>)."
4932 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4934 "C<path> must match exactly one existing node in the tree, and C<label> must "
4935 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4939 #: ../fish/guestfish-actions.pod:301
4944 #: ../fish/guestfish-actions.pod:303
4952 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4953 msgid "Load files into the tree."
4957 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4958 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4962 #: ../fish/guestfish-actions.pod:310
4967 #: ../fish/guestfish-actions.pod:312
4975 #: ../fish/guestfish-actions.pod:314
4977 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4978 "resulting nodes into alphabetical order."
4982 #: ../fish/guestfish-actions.pod:317
4987 #: ../fish/guestfish-actions.pod:319
4990 " aug-match augpath\n"
4995 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4997 "Returns a list of paths which match the path expression C<path>. The "
4998 "returned paths are sufficiently qualified so that they match exactly one "
4999 "node in the current tree."
5003 #: ../fish/guestfish-actions.pod:325
5008 #: ../fish/guestfish-actions.pod:327
5011 " aug-mv src dest\n"
5016 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5018 "Move the node C<src> to C<dest>. C<src> must match exactly one node. "
5019 "C<dest> is overwritten if it exists."
5023 #: ../fish/guestfish-actions.pod:332
5028 #: ../fish/guestfish-actions.pod:334
5036 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5037 msgid "Remove C<path> and all of its children."
5041 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5042 msgid "On success this returns the number of entries which were removed."
5046 #: ../fish/guestfish-actions.pod:340
5051 #: ../fish/guestfish-actions.pod:342
5059 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5060 msgid "This writes all pending changes to disk."
5064 #: ../fish/guestfish-actions.pod:346
5066 "The flags which were passed to L</aug-init> affect exactly how files are "
5071 #: ../fish/guestfish-actions.pod:349
5076 #: ../fish/guestfish-actions.pod:351
5079 " aug-set augpath val\n"
5084 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5085 msgid "Set the value associated with C<path> to C<val>."
5089 #: ../fish/guestfish-actions.pod:355
5091 "In the Augeas API, it is possible to clear a node by setting the value to "
5092 "NULL. Due to an oversight in the libguestfs API you cannot do that with "
5093 "this call. Instead you must use the L</aug-clear> call."
5097 #: ../fish/guestfish-actions.pod:360
5102 #: ../fish/guestfish-actions.pod:362
5105 " available 'groups ...'\n"
5110 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5112 "This command is used to check the availability of some groups of "
5113 "functionality in the appliance, which not all builds of the libguestfs "