guestfish(1) Virtualization Support guestfish(1) (NAME) guestfish - (SYNOPSIS) guestfish [--options] [commands] guestfish guestfish [--ro|--rw] -a disk.img guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint] guestfish -d libvirt-domain guestfish [--ro|--rw] -a disk.img -i guestfish -d libvirt-domain -i (WARNING) "guestfish" () . . --ro () "guestfish" . . (DESCRIPTION) Guestfish . libguestfs API guestfs guestfs(3) . Guestfish API libguestfs . virt-rescue(1) . (EXAMPLES) (As an interactive shell) $ guestfish Welcome to guestfish, the guest filesystem shell for editing virtual machine filesystems. Type: 'help' for a list of commands 'man' to read the manual 'quit' to quit the shell > add-ro disk.img > run > list-filesystems /dev/sda1: ext4 /dev/vg_guest/lv_root: ext4 /dev/vg_guest/lv_swap: swap > mount /dev/vg_guest/lv_root / > cat /etc/fstab # /etc/fstab # Created by anaconda [...] > exit (From shell scripts) /etc/motd : guestfish <<_EOF_ add disk.img run mount /dev/vg_guest/lv_root / write /etc/motd "Welcome, new users" _EOF_ LVM : guestfish -a disk.img --ro <<_EOF_ run lvs _EOF_ : guestfish -a disk.img --ro <<_EOF_ run list-filesystems _EOF_ (On one command line) /etc/resolv.conf : guestfish \ add disk.img : run : mount /dev/vg_guest/lv_root / : \ write /etc/resolv.conf "nameserver 1.2.3.4" /boot/grub/grub.conf: guestfish --rw --add disk.img \ --mount /dev/vg_guest/lv_root \ --mount /dev/sda1:/boot \ edit /boot/grub/grub.conf (Mount disks automatically) -i : guestfish --ro -a disk.img -i cat /etc/group guestfish --ro -d libvirt-domain -i cat /etc/group /boot/grub/grub.conf: guestfish --rw -a disk.img -i edit /boot/grub/grub.conf (As a script interpreter) ext2: #!/usr/bin/guestfish -f sparse test1.img 100M run part-disk /dev/sda mbr mkfs ext2 /dev/sda1 (Start with a prepared disk) test1.img ext2: guestfish -N fs : guestfish -N help | less (Remote drives) ssh: guestfish -a ssh://example.com/path/to/disk.img (Remote control) eval "`guestfish --listen`" guestfish --remote add-ro disk.img guestfish --remote run guestfish --remote lvs (OPTIONS) --help . -h --cmd-help guestfish. -h CMD --cmd-help CMD "cmd". -a IMAGE --add IMAGE . . --format=.. . "add" "readonly:true" --ro "format:..." --format=... . -a URI --add URI . << >> (ADDING REMOTE STORAGE) . --blocksize=512 --blocksize=4096 --blocksize . . --blocksize . "guestfs_add_drive_opts" guestfs(3) . -c URI --connect URI -d URI libvirt . libvirt . --csh --listen csh . << CSH>> (REMOTE CONTROL AND CSH) . -d LIBVIRT-DOMAIN --domain LIBVIRT-DOMAIN libvirt. --ro libvirt . libvirt . UUID . "add-domain" "readonly:true" --ro "format:..." --format=... . --echo-keys guestfish (echoing) . (Tempest) . -f FILE --file FILE "FILE". guestfish : #!/usr/bin/guestfish -f --format=raw|qcow2|.. --format -a . -a . --format -a . : guestfish --format=raw -a disk.img raw ( ) disk.img . guestfish --format=raw -a disk.img --format -a another.img raw ( ) disk.img another.img . raw . (CVE-2010-3851). "add" . -i --inspector virt-inspector(1) . : guestfish -d myguest -i ( libvirt myguest) : guestfish --ro -d myguest -i ( ) : guestfish --rw -a /dev/Guests/MyGuest -i guestfish . : guestfish [--ro] -i disk.img guestfish [--ro] -i libvirt-domain "inspect-os" . --key SELECTOR LUKS LUKS (inspection). --key NAME:key:KEY_STRING --key UUID:key:KEY_STRING --key all:key:KEY_STRING "NAME" libguestfs ( "/dev/sda1"). "UUID" (UUID) . "all" . "KEY_STRING" . --key NAME:file:FILENAME --key UUID:file:FILENAME --key all:file:FILENAME FILENAME. --key NAME:clevis --key UUID:clevis --key all:clevis Clevis . (NBDE) "ENCRYPTED DISKS" guestfs(3) . QEMU libguestfs . --keys-from-stdin (stdin). /dev/tty . . --listen (fork) . << GUESTFISH >> (REMOTE CONTROL GUESTFISH OVER A SOCKET) . -m dev[:mountpoint[:options[:fstype]]] --mount dev[:mountpoint[:options[:fstype]]] . / . / . -m --mount (launch) . guestfish LV ( "list-partitions" "list-filesystems" "lvs" ) virt-filesystems(1) . ( ) . "ro" ( --ro ). . ACL / (extended attributes) : -m /dev/sda1:/:acl,user_xattr "mount-options" . "ext3" "ntfs". ( "ext2" "ext3") libguestfs . --network QEMU . -N [FILENAME=]TYPE --new [FILENAME=]TYPE -N help "TYPE". -a : -a -N . << >> (PREPARED DISK IMAGES) . -n --no-sync (autosync). . autosync guestfs(3) . --no-dest-paths Tab . Tab <<>> guestfs . --pipe-error ( <<>> (PIPES) ) . ( ) : > command_with_lots_of_output | head . --progress-bars guestfish . guestfish . --no-progress-bars . --remote --remote=PID $GUESTFISH_PID "pid". << GUESTFISH >> (REMOTE CONTROL GUESTFISH OVER A SOCKET) . -r --ro -a -d -m . . -N . "add" - "readonly:true" . << >> (OPENING DISKS FOR READ AND WRITE) . --selinux . -v --verbose . . -V --version guestfish / libguestfs . -w --rw -a -d -m . << >> (OPENING DISKS FOR READ AND WRITE) . -x . (COMMANDS ON COMMAND LINE) ( ) . (":") . : guestfish cmd [args...] : cmd [args...] : cmd [args...] ... ( ) . . ( ) . ("-") guestfish : guestfish ( ) ("--") . : guestfish -- disk_create overlay.qcow2 qcow2 -1 backingfile:image.img launch ( run) (USING launch (OR run)) guestfs(3) (launch) / . : o add -a/--add o launch ( run) o mount -m/--mount o "run" "launch" . "launch" ( "run") . -i -m --mount -N --new "run" guestfish . (OPENING DISKS FOR READ AND WRITE) --ro --rw guestfish guestmount(1) virt-rescue(1) -a -c -d -i -m . libguestfs . guestfish guestmount virt-rescue . -a image --ro . : . libguestfs . . guestfish --rw guestmount --rw virt-rescue --rw . guestfish guestmount virt-rescue --rw ( ). . : "add" "mount" libguestfs guestfish guestmount . (QUOTING) (single quote) (double quote) . : add "file with a space.img" rm '/file name' rm '/"' . . . . vgcreate VG "/dev/sda1 /dev/sdb1" command "/bin/echo 'foo bar'" command "/bin/echo \'foo\'" (ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS) : "\a" (Alert/bell). "\b" (Backspace). "\f" (Form feed). "\n" (Newline). "\r" (Carriage return). "\t" (Horizontal tab). "\v" (Vertical tab). "\"" . "\ooo" () ooo. ( C). "\xhh" () hh. . "\000" "\x00" . "\\" . (OPTIONAL ARGUMENTS) . "[argname:..]" . : add filename add filename readonly:true add filename format:qcow2 readonly:false . . (NUMBERS) . (SIZE SUFFIX) : k K KiB ( ). KB SI . M MiB ( ). MB SI . G GiB ( ). GB SI . T TiB ( ). TB SI . P PiB ( ). PB SI . E EiB ( ). EB SI . Z ZiB ( ). ZB SI . Y YiB ( ). YB SI . : truncate-size /file 1G (truncate) . ( "memsize" ). . (OCTAL AND HEXADECIMAL NUMBERS) (radix) C : 0 (octal) "0x" (hexadecimal). : 1234 decimal number 1234 02322 octal number, equivalent to decimal 1234 0x4d2 hexadecimal number, equivalent to decimal 1234 "chmod" (mode) 0 ( chmod(1) ): chmod 0777 /public # OK chmod 777 /public # WRONG! This is mode 777 decimal = 01411 octal. () ( "umask" 0 ). (WILDCARDS AND GLOBBING) guestfish API guestfs (globbing) . : rm-rf /home/* /home/* . "glob" . glob rm-rf /home/* "rm-rf" ( ) : rm-rf /home/jim rm-rf /home/joe rm-rf /home/mary "glob" . (wildcard) glob . (COMMENTS) # (comment) . # . : # this is a comment # this is a comment foo # NOT a comment . (RUNNING COMMANDS LOCALLY) ! (/bin/sh system(3) ). : !mkdir local tgz-out /remote local/remote-data.tar.gz "local" /remote local/remote-data.tar.gz . ( "tgz-out" ). "lcd" . "!cd" (subprocesses) . (LOCAL COMMANDS WITH INLINE EXECUTION) ( !) (stdout) guestfish . guestfish guestfish . ( /foo.1 /foo.100) guestfish . guestfish : /foo.001: guestfish ( "<" ! ) guestfish "<" guestfish . (PIPES) "command | command" ( ) ( guestfish) ( ) . : cat /etc/passwd | awk -F: '$3 == 0 { print }' ( "cat" cat guestfish "awk" awk ). UID 0 (backdoors). : hexdump /bin/ls | head list-devices | tail -1 tgz-out / - | tar ztf - . (redirection) (globs) . : echo "|" (HOME DIRECTORIES) "~" ( "~" "~user" ). . : echo "~" (ENCRYPTED DISKS) Libguestfs (LUKS) BitLocker . "vfs-type": > vfs-type /dev/sda2 crypto_LUKS : > vfs-type /dev/sda2 BitLocker "cryptsetup-open". device-mapper /dev/mapper/name . > cryptsetup-open /dev/sda2 name Enter key or passphrase ("key"): LVM (volume groups) : vgscan vg-activate-all true (mount) . (unmount) "vg-activate false VG" . (mapper device) : vg-activate false /dev/VG cryptsetup-close /dev/mapper/name (WINDOWS PATHS) "win:" ( ) . : file /WINDOWS/system32/config/system.LOG file win:\windows\system32\config\system.log file WIN:C:\Windows\SYSTEM32\CONFIG\SYSTEM.LOG << >> "case-sensitive-path" . E: /e : win:e:\foo\bar => /e/FOO/bar . (UPLOADING AND DOWNLOADING FILES) "upload" "download" "tar-in" "tar-out" "-" << (stdin)>> << (stdout)>> . : upload - /foo (stdin) /foo : tar-out /etc - | tar tf - (tarball) stdout "tar" (pipe) ( "PIPES" ). "-" stdin stdin . "heredoc" : upload -< "END" . ( ) . "-<<" ( "FileIn" ) . (EXIT ON ERROR BEHAVIOUR) guestfish ( tty) ( ) . - guestfish . GUESTFISH (REMOTE CONTROL GUESTFISH OVER A SOCKET) Guestfish . guestfish . guestfish : eval "`guestfish --listen`" : guestfish --remote cmd [...] exit : guestfish --remote exit . . " (EXIT ON ERROR BEHAVIOUR)" . GUESTFISH (CONTROLLING MULTIPLE GUESTFISH PROCESSES) "eval" $GUESTFISH_PID --remote . guestfish : eval "`guestfish --listen`" pid1=$GUESTFISH_PID eval "`guestfish --listen`" pid2=$GUESTFISH_PID ... guestfish --remote=$pid1 cmd guestfish --remote=$pid2 cmd CSH (REMOTE CONTROL AND CSH) csh ( csh tcsh ) --csh : eval "`guestfish --listen --csh`" (REMOTE CONTROL DETAILS) (Unix domain socket) /tmp/.guestfish-$UID/socket-$PID $UID $PID . guestfish . guestfish CVE-2013-4419 ( "CVE-2013-4419" guestfs(3) ). . (USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS) Bash guestfish guestfish : #!/bin/bash - set -e guestfish[0]="guestfish" guestfish[1]="--listen" guestfish[2]="--ro" guestfish[3]="-a" guestfish[4]="disk.img" GUESTFISH_PID= eval $("${guestfish[@]}") if [ -z "$GUESTFISH_PID" ]; then echo "error: guestfish didn't start up, see error messages above" exit 1 fi cleanup_guestfish () { guestfish --remote -- exit >/dev/null 2>&1 ||: } trap cleanup_guestfish EXIT ERR guestfish --remote -- run # ... -a (REMOTE CONTROL DOES NOT WORK WITH -a ETC. OPTIONS) -a --add -N --new . guestfish . : guestfish --remote --add disk.img . : guestfish --remote add-drive disk.img : guestfish --remote > add disk.img RUN (REMOTE CONTROL RUN COMMAND HANGING) "run" ( "launch") (command substitution) (hang) ( ): a=`guestfish --remote run` "run" stdout . https://bugzilla.redhat.com/show_bug.cgi?id=592910 . (PREPARED DISK IMAGES) -N [filename=]type --new [filename=]type guestfish . . -a -a ( -a ). -N test1.img test2.img . . "filename=" ( ). (type) () . ":" () . -N fs (sparsely-allocated) ext2 . -N fs:ext4:2G ext4 . (mount) . "mount /dev/sda1 /" -m /dev/sda1 . -N --new (appliance) libguestfs . (EXAMPLES) ext4 test1.img : guestfish -N fs:ext4 VFAT : guestfish -N fs:vfat:32M -m /dev/sda1 : guestfish -N disk:200M blankdisk.img ( test1.img): guestfish -N blankdisk.img=disk:200M -N disk - "guestfish -N [filename=]disk[:size]" 1G. . : Name Default value size 1G the size of the disk image -N part - "guestfish -N [filename=]part[:size[:partition]]" . 1G ( ) MBR ( DOS) . . : Name Default value size 1G the size of the disk image partition mbr partition table type -N fs - "guestfish -N [filename=]fs[:filesystem[:size[:partition]]]" . 1G ( ) MBR ( DOS) ext2 . . : Name Default value filesystem ext2 the type of filesystem to use size 1G the size of the disk image partition mbr partition table type -N lv - "guestfish -N [filename=]lv[:name[:size[:partition]]]" LVM2 (volume group) (logical volume) . 1G VG LV "/dev/VG/LV" . VG LV . . 'lvfs' . : Name Default value name /dev/VG/LV the name of the VG and LV to use size 1G the size of the disk image partition mbr partition table type -N lvfs - "guestfish -N [filename=]lvfs[:name[:filesystem[:size[:partition]]]]" LVM2 . LV . 1G VG LV "/dev/VG/LV" ext2 . : Name Default value name /dev/VG/LV the name of the VG and LV to use filesystem ext2 the type of filesystem to use size 1G the size of the disk image partition mbr partition table type -N bootroot - "guestfish -N [filename=]bootroot[:bootfs[:rootfs[:size[:bootsize[:partition]]]]]" (boot) (root). . . : Name Default value bootfs ext2 the type of filesystem to use for boot rootfs ext2 the type of filesystem to use for root size 1G the size of the disk image bootsize 128M the size of the boot filesystem partition mbr partition table type -N bootrootlv - LVM "guestfish -N [filename=]bootrootlv[:name[:bootfs[:rootfs[:size[:bootsize[:partition]]]]]]" "bootroot" () "/dev/VG/LV" . . : Name Default value name /dev/VG/LV the name of the VG and LV for root bootfs ext2 the type of filesystem to use for boot rootfs ext2 the type of filesystem to use for root size 1G the size of the disk image bootsize 128M the size of the boot filesystem partition mbr partition table type (ADDING REMOTE STORAGE) API "guestfs_add_drive_opts" guestfs(3) "REMOTE STORAGE" guestfs(3) . -a URI : guestfish -a ssh://root@example.com/disk.img URI "add" . API : > add /disk.img protocol:ssh server:tcp:example.com username:root -a URI . -a disk.img -a file:///path/to/disk.img ( ) disk.img. -a ftp://[user@]example.com[:port]/disk.img -a ftps://[user@]example.com[:port]/disk.img -a http://[user@]example.com[:port]/disk.img -a https://[user@]example.com[:port]/disk.img FTP HTTP. API : > add /disk.img protocol:(ftp|...) server:tcp:example.com -a iscsi://example.com[:port]/target-iqn-name[/lun] iSCSI. API : > add target-iqn-name/lun protocol:iscsi server:tcp:example.com -a nbd://example.com[:port] -a nbd://example.com[:port]/exportname -a nbd://?socket=/socket -a nbd:///exportname?socket=/socket Network Block Device (nbd). exportname URI NBD . ?socket NBD . ( TCP/IP) . API ( ): > add "" protocol:nbd server:[tcp:example.com|unix:/socket] -a rbd:///pool/disk -a rbd://example.com[:port]/pool/disk Ceph (RBD/librbd). libguestfs Ceph URI . API : > add pool/disk protocol:rbd server:tcp:example.com:port -a ssh://[user@]example.com[:port]/disk.img SFTP (ssh). SFTP SSH . API : > add /disk protocol:ssh server:tcp:example.com [username:user] URI RFC 3986 : URI . ":" "@" "/" (percent-encoded) : $ guestfish -a ssh://user:pass%40word@example.com/disk.img "pass@word" . (PROGRESS BARS) ( ) . Guestfish . : > copy-size /large-file /another-file 2048M / 10% [#####-----------------------------------------] 00:30 ( ) . ( ) << >> . . guestfish . --progress-bars --no-progress-bars . (PROMPT) (prompt) (">") "GUESTFISH_PS1" . ("GUESTFISH_OUTPUT") . ("GUESTFISH_INIT") . ("GUESTFISH_RESTORE") guestfish . "GUESTFISH_PS1" : $ GUESTFISH_PS1='(type a command) ' $ export GUESTFISH_PS1 $ guestfish [...] (type a command) (escape sequences) : \\ . \[ \] ( "GUESTFISH_PS1" .) ( ) "\[...\]" . readline(3) (zero-width) . \a (bell). \e ASCII ESC ( / escape). \n (newline). \r (carriage return). \NNN NNN . \xNN NN . (EXAMPLES OF PROMPTS) ANSI . o GUESTFISH_PS1='\[\e[1;30m\]>\[\e[0;30m\] ' (bold) . o GUESTFISH_PS1='\[\e[1;32m\]>\[\e[0;31m\] ' GUESTFISH_OUTPUT='\e[0m' GUESTFISH_RESTORE="$GUESTFISH_OUTPUT" GUESTFISH_INIT='\e[1;34m' . (WINDOWS 8) << >> (fast startup) NTFS guestfish . "WINDOWS HIBERNATION AND WINDOWS 8 FAST STARTUP" guestfs(3) . GUESTFISH (GUESTFISH COMMANDS) guestfish API guestfs(3) . help help help cmd help -l|--list . "cmd" . -l --list . exit quit guestfish . "^D" . alloc allocate alloc filename size () . "disk-create" . "1M". (sparse) "sparse" . " (PREPARED DISK IMAGES)" . copy-in copy-in local [local ...] /remotedir "copy-in" /remotedir ( ) . (meta-command) guestfish "tar-in" . . (wildcards) . copy-out copy-out remote [remote ...] localdir "copy-out" "localdir" ( ) . guestfish "download" "tar-out" . . "." : copy-out /home . "glob" : glob copy-out /home/* . delete-event delete-event name (event handler) "name" . . guestfish "event" "list-events" . display display filename "display" ( ) . "display" . "GUESTFISH_DISPLAY_IMAGE" . : export GUESTFISH_DISPLAY_IMAGE=eog display(1) . echo echo [params ...] (echo) . edit vi emacs edit filename . . $EDITOR . "vi" "emacs" . event event name eventset "shell script ..." . API libguestfs "guestfs_set_event_callback" guestfs(3) . "name" . ( ) "delete-event" guestfish . "eventset" "close" "close,trace". "*" . ( ) eventset . "$SHELL -c" $SHELL /bin/sh -c. (callback) $1 $2 . $EVENT . event "" close "echo closed" event messages appliance,library,trace "echo $@" event "" progress "echo progress: $3/$4" event "" * "echo $EVENT $@" guestfish "delete-event" "list-events" . glob glob command args... args "command" . "WILDCARDS AND GLOBBING" . hexedit hexedit hexedit hexedit hexedit ( ) . . "max" / "start" "max" . "start" "max" "1M" ( ) . : hexedit /dev/sda 1M . ext2 /dev/sda1 : hexedit /dev/sda1 0x400 0x400 ( ). hexedit(1) . "HEXEDITOR" . "hexdump" . lcd lcd directory guestfish. "!cd" . list-events list-events "event" guestfish. man manual man guestfish . more less more filename less filename . $PAGER . "less" "less" . not not command [args...] guestfish () "not command" . ( "not exists /foo" ). "not cat /foo" . reopen reopen libguestfs. guestfish . . setenv setenv VAR value "VAR" "value". : !echo $VAR sparse sparse filename size (sparse) . "alloc" . . "disk-create" . "1M". "scratch" guestfish . supported supported (daemon) libguestfs . "AVAILABILITY" guestfs(3) . time time command args... . (benchmarking) . unsetenv unsetenv VAR "VAR" . (COMMANDS) acl-delete-def-file acl-delete-def-file dir (ACL) POSIX "dir" . "acl" . "feature-available" . acl-get-file acl-get-file path acltype (ACL) "path" . ACL << >> ( acl(5)). "acltype" : "access" ACL (access) . "default" ACL . "path" . "acl" . "feature-available". acl-set-file acl-set-file path acltype acl (ACL) "path" . "acltype" : "access" ACL (access) . "default" ACL . "path" . "acl" ACL << >> << >> ( acl(5)). ACL ACL . ACL ( "u::rwx,g::rx,o::rx"). mask ( "m::rwx") () "u:ID:..." / "g:ID:..." . ACL : u::rwx,g::rwx,o::rwx,m::rwx,u:500:rwx,g:500:rwx \ Unix permissions / \mask/ \ ACL / (UID) (GID) . Augeas ( "aug-init"). "acl" . "feature-available". add-cdrom add-cdrom filename CD-ROM . "add-drive-ro" . . "add-drive-ro" . API . add-domain domain add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..] [cachemode:..] [discard:..] [copyonread:true|false] () libvirt "dom" . libvirt XML libvirt "add-drive-opts" . . : . libvirt ( "readonly" true ). libvirt . . libvirt ( https://libvirt.org/remote.html) . "libvirturi" URI libvirt ( https://libvirt.org/uri.html). URI libvirt ( libvirt ). "live" libguestfs >= 1.48 . "allowuuid" true ( false ) UUID . "dom" UUID "dom" . "readonlydisk" XML libvirt . : readonlydisk = "error" "readonly" false : . "readonly" true : . readonlydisk = "read" "readonly" false : . / . "readonly" true : . readonlydisk = "write" (default) "readonly" false : / . "readonly" true : . readonlydisk = "ignore" "readonly" true false : . "logical_block_size" XML libvirt "blocksize" "add-drive-opts" . "add-drive-opts" . . "OPTIONAL ARGUMENTS". add-drive add add-drive-opts add-drive filename [readonly:true|false] [format:..] [iface:..] [name:..] [label:..] [protocol:..] [server:..] [username:..] [secret:..] [cachemode:..] [discard:..] [copyonread:true|false] [blocksize:N] filename . filename . "launch" ( ) /dev/sda /dev/sdb API . libguestfs (root) . ( ). filename . filename "/dev/null" . "NULL DISKS" guestfs(3) . : "readonly" true . . . "format" . ( "add-drive" "add-drive-ro" ) . "raw" "qcow2" . (raw) . CVE-2010-3851 RHBZ#642934 . . "iface" "add-drive-with-if" ( ). "name" . "label" . "[a-zA-Z]" . API ( /dev/sda) /dev/disk/guestfs/label . "DISK LABELS" guestfs(3) . "protocol" . : "REMOTE STORAGE" guestfs(3). "protocol = "file"" filename . . "protocol = "ftp"|"ftps"|"http"|"https"" FTP HTTP. "server" - . : "FTP AND HTTP" guestfs(3) "protocol = "iscsi"" iSCSI. "server" - . "username" . "secret" . : "ISCSI" guestfs(3). "protocol = "nbd"" Network Block Device ( ). "server" - . : "NETWORK BLOCK DEVICE" guestfs(3). "protocol = "rbd"" Ceph (librbd/RBD). "server" - . "username" "secret" . : "CEPH" guestfs(3). "protocol = "ssh"" Secure Shell (ssh). "server" . "username" . : "SSH" guestfs(3). "server" () . Protocol Number of servers required -------- -------------------------- file List must be empty or param not used at all ftp|ftps|http|https Exactly one iscsi Exactly one nbd Exactly one rbd Zero or more ssh Exactly one . : hostname hostname:port tcp:hostname tcp:hostname:port unix:/path/to/socket ( /etc/services). "username" "ftp" "ftps" "http" "https" "iscsi" "rbd" "ssh" . "ssh" ceph . libvirt qemu "qemu.qemu" . . "secret" "rbd" (<>) . base64 . secret . "cachemode" libguestfs (sync) ( ) ( ). : "cachemode = "writeback"" . API write(2) [ ]. API fdatasync(2) . "cachemode = "unsafe"" . libguestfs . . "discard" ( trim / unmap / discard) . "fstrim" (punch holes). discard : "discard = "disable"" discard. . "discard = "enable"" discard. discard . "discard = "besteffort"" discard . discard discard . "copyonread" "copyonread" (copy-on-read) . (backing files) . false . "blocksize" . 512 ( ) 4096. << >> (Advanced Format) 4K 4096 (https://en.wikipedia.org/wiki/Advanced_Format). ( libvirt ). . "OPTIONAL ARGUMENTS". add-drive-ro add-ro add-drive-ro filename "add-drive-opts" "GUESTFS_ADD_DRIVE_OPTS_READONLY" 1 . add-drive-ro-with-if add-drive-ro-with-if filename iface "add-drive-ro" QEMU . libvirt "iface" . . "add-drive" . API . add-drive-scratch scratch add-drive-scratch size [name:..] [label:..] [blocksize:N] (scratch) . "size" ( ) . ( ). . "name" "label" "blocksize" "add-drive-opts" . . "OPTIONAL ARGUMENTS". add-drive-with-if add-drive-with-if filename iface "add-drive" QEMU . libvirt "iface" . . "add-drive" . API . aug-clear aug-clear augpath "path" "NULL" . "clear" augtool(1) . aug-close aug-close Augeas . Augeas "aug-init" . aug-defnode aug-defnode name expr val "name" "expr" . "expr" (nodeset) "aug-set" "expr" "val" . "name" . . aug-defvar aug-defvar name expr Augeas "name" "expr" . "expr" NULL "name" . "expr" "expr" 0 . aug-get aug-get augpath "path" . "path" "value" . aug-init aug-init root flags Augeas . Augeas guestfs . "aug-*" . "root" . "root" NULL / . or : "AUG_SAVE_BACKUP" = 1 ".augsave". "AUG_SAVE_NEWFILE" = 2 ".augnew" . "AUG_SAVE_BACKUP" . "AUG_TYPE_CHECK" = 4 (lens). Augeas . libguestfs . "LIBGUESTFS_MEMSIZE" "set-memsize" . "AUG_NO_STDINC" = 8 . "AUG_SAVE_NOOP" = 16 (no-op) . "AUG_NO_LOAD" = 32 "aug-init". "aug-close" . Augeas http://augeas.net . aug-insert aug-insert augpath label true|false (sibling) "label" "path" "path" ( "before") . "path" "label" / "*" "[N]" . aug-label aug-label augpath ( ) Augeas "augpath" . "augpath" . aug-load aug-load . "aug_load" Augeas . aug-ls aug-ls augpath "aug-match" "path/*" . aug-match aug-match augpath "path" . . aug-mv aug-mv src dest "src" "dest". "src" . "dest" . aug-rm aug-rm augpath "path" . . aug-save aug-save . "aug-init" . aug-set aug-set augpath val "augpath" "val" . API Augeas NULL . API libguestfs . "aug-clear" . aug-setm aug-setm base sub val Augeas . "base" . "sub" "base" . "base" "sub" "val" . "sub" "NULL" "base" . . aug-transform aug-transform lens file [remove:true|false] Augeas "lens" "file" . "remove" true ( "false" ) . . "OPTIONAL ARGUMENTS". available available 'groups ...' libguestfs . libguestfs "AVAILABILITY" guestfs(3) . "available-all-groups" . "groups" : "["inotify", "augeas"]" inotify Augeas ( ) . . . . : o "feature-available" API : true/false . o "launch" . / . o . API . o libguestfs . libguestfs . o 1.0.80 . libguestfs . "version". "filesystem-available". available-all-groups available-all-groups . . "available" / "feature-available" . "available" "feature-available" "AVAILABILITY" guestfs(3). base64-in base64-in (base64file|-) filename base64 "base64file" filename . "-" / stdin/stdout . base64-out base64-out filename (base64file|-) filename base64 "base64file" . "-" / stdin/stdout . blkdiscard blkdiscard device "device" (discard ) . libguestfs qemu . . "discard" ( "add-drive-opts"). "blkdiscard" . "feature-available". blkdiscardzeroes blkdiscardzeroes device "device" "blkdiscard" true . false . "blkdiscardzeroes" . "feature-available". blkid blkid device "device" . . . "UUID" uuid . "LABEL" . "VERSION" blkid. "TYPE" RAID . "USAGE" "filesystem" "raid". blockdev-flushbufs blockdev-flushbufs device "device" (flush) . blockdev(8) . blockdev-getbsz blockdev-getbsz device . : . . . . blockdev(8) . blockdev-getro blockdev-getro device (true false ). blockdev(8) . blockdev-getsize64 blockdev-getsize64 device . "blockdev-getsz". blockdev(8) . blockdev-getss blockdev-getss device . 512 . ( "blockdev-getsz" ). blockdev(8) . blockdev-getsz blockdev-getsz device 512 ( 512 ... ). "blockdev-getss" "blockdev-getsize64" . blockdev(8) . blockdev-rereadpt blockdev-rereadpt device "device" . blockdev(8) . blockdev-setbsz blockdev-setbsz device blocksize blockdev . . "blocksize" "mkfs" . . . API guestfs(3) . API . blockdev-setra blockdev-setra device sectors readahead ( 512 ) . blockdev(8) . blockdev-setro blockdev-setro device "device" . blockdev(8) . blockdev-setrw blockdev-setrw device "device" / . blockdev(8) . btrfs-balance-cancel btrfs-balance-cancel path (balance) btrfs. "btrfs" . "feature-available". btrfs-balance-pause btrfs-balance-pause path (balance) btrfs. "btrfs" . "feature-available". btrfs-balance-resume btrfs-balance-resume path (balance) btrfs. "btrfs" . "feature-available". btrfs-balance-status btrfs-balance-status path (balance) btrfs. "btrfs" . "feature-available". btrfs-device-add btrfs-device-add 'devices ...' fs () "devices" btrfs "fs". "devices" . "btrfs" . "feature-available". btrfs-device-delete btrfs-device-delete 'devices ...' fs "devices" btrfs "fs". "devices" . "btrfs" . "feature-available". btrfs-filesystem-balance btrfs-balance btrfs-filesystem-balance fs (balance) (chunks) btrfs "fs" . "btrfs" . "feature-available". btrfs-filesystem-defragment btrfs-filesystem-defragment path [flush:true|false] [compress:..] (defragment) btrfs. compress zlib lzo . . "OPTIONAL ARGUMENTS" . "btrfs" . "feature-available". btrfs-filesystem-resize btrfs-filesystem-resize mountpoint [size:N] btrfs . ( btrfs ). : "size" ( ) . . btrfs(8). . "OPTIONAL ARGUMENTS" . "btrfs" . "feature-available". btrfs-filesystem-show btrfs-filesystem-show device "device" . "errno" "ENODEV" . "btrfs" . "feature-available". btrfs-filesystem-sync btrfs-filesystem-sync fs (sync) btrfs "fs". "btrfs" . "feature-available". btrfs-fsck btrfs-fsck device [superblock:N] [repair:true|false] btrfs "device" . . "OPTIONAL ARGUMENTS" . . "btrfs-scrub-full" . API . "btrfs" . "feature-available". btrfs-image btrfs-image 'source ...' image [compresslevel:N] btrfs . . . "OPTIONAL ARGUMENTS" . "btrfs" . "feature-available". btrfs-qgroup-assign btrfs-qgroup-assign src dst path qgroup "src" qgroup "dst". qgroup qgroup . "btrfs" . "feature-available". btrfs-qgroup-create btrfs-qgroup-create qgroupid subvolume (qgroup) "subvolume". "btrfs" . "feature-available". btrfs-qgroup-destroy btrfs-qgroup-destroy qgroupid subvolume (quota group). "btrfs" . "feature-available". btrfs-qgroup-limit btrfs-qgroup-limit subvolume size "subvolume". "btrfs" . "feature-available". btrfs-qgroup-remove btrfs-qgroup-remove src dst path qgroup "src" qgroup "dst". "btrfs" . "feature-available". btrfs-qgroup-show btrfs-qgroup-show path btrfs . "btrfs" . "feature-available". btrfs-quota-enable btrfs-quota-enable fs true|false "path" . "btrfs" . "feature-available". btrfs-quota-rescan btrfs-quota-rescan fs qgroup . "btrfs" . "feature-available". btrfs-replace btrfs-replace srcdev targetdev mntpoint btrfs. . . "targetdev" "srcdev" . "targetdev" . "btrfs" . "feature-available". btrfs-rescue-chunk-recover btrfs-rescue-chunk-recover device (chunk tree) btrfs . "btrfs" . "feature-available". btrfs-rescue-super-recover btrfs-rescue-super-recover device . "btrfs" . "feature-available". btrfs-scrub-cancel btrfs-scrub-cancel path (scrub) btrfs. "btrfs" . "feature-available". btrfs-scrub-full btrfs-scrub-full path [readonly:true|false] btrfs . . . "OPTIONAL ARGUMENTS" . "btrfs" . "feature-available". btrfs-scrub-resume btrfs-scrub-resume path btrfs. "btrfs" . "feature-available". btrfs-scrub-start btrfs-scrub-start path RAID . "btrfs" . "feature-available". btrfs-scrub-status btrfs-scrub-status path btrfs. "btrfs" . "feature-available". btrfs-set-seeding btrfs-set-seeding device true|false (seeding) btrfs . "btrfs" . "feature-available". btrfs-subvolume-create btrfs-subvolume-create-opts btrfs-subvolume-create dest [qgroupid:..] (subvolume) btrfs. "dest" /path/to/dest/name . "qgroupid" qgroup . . "OPTIONAL ARGUMENTS" . "btrfs" . "feature-available". btrfs-subvolume-delete btrfs-subvolume-delete subvolume btrfs. "btrfs" . "feature-available". btrfs-subvolume-get-default btrfs-subvolume-get-default fs "mountpoint". "btrfs" . "feature-available". btrfs-subvolume-list btrfs-subvolume-list fs btrfs "fs" . "btrfs" . "feature-available". btrfs-subvolume-set-default btrfs-subvolume-set-default id fs btrfs "fs" . "btrfs-subvolume-list" . "btrfs" . "feature-available". btrfs-subvolume-show btrfs-subvolume-show subvolume . "btrfs" . "feature-available". btrfs-subvolume-snapshot btrfs-subvolume-snapshot-opts btrfs-subvolume-snapshot source dest [ro:true|false] [qgroupid:..] btrfs "source". "dest" /path/to/dest/name . "ro" true . "qgroupid" qgroup . . "OPTIONAL ARGUMENTS" . "btrfs" . "feature-available". btrfstune-enable-extended-inode-refs btrfstune-enable-extended-inode-refs device inode (extended inode refs) . "btrfs" . "feature-available". btrfstune-enable-skinny-metadata-extent-refs btrfstune-enable-skinny-metadata-extent-refs device (skinny metadata extent refs) . "btrfs" . "feature-available". btrfstune-seeding btrfstune-seeding device true|false btrfs . "btrfs" . "feature-available". c-pointer c-pointer C C ( "h *") . libguestfs . canonical-device-name canonical-device-name device . : /dev/hdX /dev/vdX /dev/sdX . . "BLOCK DEVICE NAMING" guestfs(3) . /dev/mapper/VG-LV /dev/dm-N "lvm-canonical-lv-name" /dev/VG/LV . . cap-get-file cap-get-file path (capabilities) "path" . ( cap_to_text(3)). . "linuxcaps" . "feature-available". cap-set-file cap-set-file path cap "path" . "cap" ( cap_from_text(3)). "linuxcaps" . "feature-available". case-sensitive-path case-sensitive-path path . . ntfs-3g ( ) . C:\windows /WINDOWS /windows ( ) . . . ntfs-3g : https://github.com/tuxera/ntfs-3g/wiki/NTFS-3G-FAQ "case-sensitive-path" . . . "/Windows/System32/netkvm.sys" : "case-sensitive-path" ("/windows/system32/netkvm.sys") "Windows/System32/netkvm.sys" "case-sensitive-path" ("/windows/system32/NoSuchFile") "Windows/System32/NoSuchFile" "case-sensitive-path" ("/windows/system33/netkvm.sys") ERROR : "case-sensitive-path" . : . "realpath". cat cat path "path" . C "char *" "\0" . "read-file" "download" . checksum checksum csumtype path MD5 SHAx CRC "path" . "csumtype" : "crc" (CRC) POSIX "cksum". "gost" "gost12" GOST R34.11-94 GOST R34.11-2012. "md5" MD5 ( md5sum(1)). "sha1" SHA1 ( sha1sum(1)). "sha224" SHA224 ( sha224sum(1)). "sha256" SHA256 ( sha256sum(1)). "sha384" SHA384 ( sha384sum(1)). "sha512" SHA512 ( sha512sum(1)). . "checksum-device" . "checksums-out" . checksum-device checksum-device csumtype device MD5 SHAx CRC "device" . "checksum" . checksums-out checksums-out csumtype directory (sumsfile|-) directory "sumsfile" . . ( GNU coreutils ). coreutils . info GNU coreutils . "-" / stdin/stdout . chmod chmod mode path ( ) "path" "mode". . : guestfish "mode" () 0 () 0700 700. umask . chown chown owner group path "owner" "group". uid gid . ( Augeas ). clear-backend-setting clear-backend-setting name "name" "name=" . ( 0 1 1 ). "BACKEND" guestfs(3) "BACKEND SETTINGS" guestfs(3). clevis-luks-unlock clevis-luks-unlock device mapname Linux Unified Key Setup (LUKS) (NBDE) . "device" . Tang Clevis keyslot LUKS . Clevis "sss" () () "tang" . "tpm2" . Tang LUKS "key" . . "set-network" . /dev/mapper/mapname . "device" . "cryptsetup-close" . "mapname" "control" device-mapper . LVM "lvm-scan" "activate" "true" . "list-dm-devices" device mapper . "clevisluks" . "feature-available". command command 'arguments ...' . ( ). argv . . . ( ). (shell) ( "sh"). stdout . . stderr . $PATH /usr/bin /bin . . . . . "PROTOCOL LIMITS" guestfs(3). command-lines command-lines 'arguments ...' "command" . : "sh-lines" . "PROTOCOL LIMITS" guestfs(3). command-out command-out 'arguments ...' (output|-) "command" (stream) . : "sh-out" "-" / stdin/stdout . compress-device-out compress-device-out ctype device (zdevice|-) [level:N] "device" "zdevice" . "ctype" "level" "compress-out" . "-" / stdin/stdout . . "OPTIONAL ARGUMENTS" . compress-out compress-out ctype file (zfile|-) [level:N] file zfile . "ctype" . : "compress", "gzip", "bzip2", "xz" "lzop". libguestfs "not supported" . "level" . . "-" / stdin/stdout . . "OPTIONAL ARGUMENTS" . config config hvparam hvvalue -param value . - . "hvparam" "-" ( ) . "hvvalue" NULL . copy-attributes copy-attributes src dest [all:true|false] [mode:true|false] [xattributes:true|false] [ownership:true|false] ( ) . ( "all" ). : "mode" "source" "destination". sticky/setuid/setgid . "xattributes" (xattrs) "source" "destination". linuxxattrs ( "feature-available"). "ownership" uid gid "source" "destination". "all" "source" "destination". . . "OPTIONAL ARGUMENTS" . copy-device-to-device copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N] [sparse:true|false] [append:true|false] "copy-device-to-device", "copy-device-to-file", "copy-file-to-device", "copy-file-to-file" (|) (|) . . . . . . . . "append" (truncate) . "append" . "append" . "sparse" true (thin-provisioned) . . . "OPTIONAL ARGUMENTS" . copy-device-to-file copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N] [sparse:true|false] [append:true|false] "copy-device-to-device" . . "OPTIONAL ARGUMENTS" . copy-file-to-device copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N] [sparse:true|false] [append:true|false] "copy-device-to-device" . . "OPTIONAL ARGUMENTS" . copy-file-to-file copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N] [sparse:true|false] [append:true|false] "copy-device-to-device" . . . "cp", "cp-a" "mv" . . "OPTIONAL ARGUMENTS" . copy-size copy-size src dest size "size" "src" "dest" . . . "copy-device-to-device" . API . cp cp src dest "src" "dest" "dest" . cp-a cp-a src dest "src" "dest" "cp -a" . cp-r cp-r src dest "src" "dest" "cp -rP" . "cp-a" . ( DOS FAT). cpio-out cpio-out directory (cpiofile|-) [format:..] directory "cpiofile" . "format" . : "newc" (SVR4). cpio- initramfs . . "crc" (SVR4) . "-" / stdin/stdout . . "OPTIONAL ARGUMENTS" . cryptsetup-close cryptsetup-close device "cryptsetup-open" . "device" ( /dev/mapper/mapname) . "luks" . "feature-available" . cryptsetup-open cryptsetup-open device mapname [readonly:true|false] [crypttype:..] [cipher:..] Linux Unified Key Setup (LUKS) Windows BitLocker . "device" . "key" . /dev/mapper/mapname . "device" . "mapname" "control" device-mapper . "crypttype" libguestfs ( LUKS BitLocker). : "luks" LUKS. "bitlk" Windows BitLocker. "readonly" true . "cipher" (cipher) . LVM "lvm-scan" "activate" "true" . device mapper "list-dm-devices" . . Guestfish . . "OPTIONAL ARGUMENTS" . "luks" . "feature-available" . dd dd src dest "src" "dest" . . . ("copy-device-to-device" ). . "copy-device-to-device" . API . device-index device-index device ( "/dev/sdb") . 0 . "list-devices" . "list-devices" "part-to-dev" "device-name" . device-name device-name index . 0 "/dev/sda" . . "list-devices" "part-to-dev" "device-index" . df df df(1) . . . "statvfs" . df-h df-h "df -h" . . . "statvfs" . disk-create disk-create filename format size [backingfile:..] [backingformat:..] [preallocation:..] [compat:..] [clustersize:N] filename ( ) "format" ( "raw" "qcow2") . "size" . "backingfile" (backing file) . "size" -1 . . "backingfile" "backingformat" . filename . "size" . : "preallocation" "raw" "off" ( "sparse") "full" (sparse) . "off" . "qcow2" "off" ( "sparse") "metadata" "full" . . "off" . "compat" "qcow2": 1.1 qcow2 qemu >= 1.1 . "clustersize" "qcow2": qcow2. 65536 () 512 2097152 . . "add-drive-opts" . . "OPTIONAL ARGUMENTS" . disk-format disk-format filename filename . filename . "unknown" . . "CVE-2010-3851" guestfs(3) . : "DISK IMAGE FORMATS" guestfs(3) disk-has-backing-file disk-has-backing-file filename filename (backing file) . . "CVE-2010-3851" guestfs(3) . disk-virtual-size disk-virtual-size filename filename . . "CVE-2010-3851" guestfs(3) . dmesg dmesg ( dmesg(1)) . . "set-verbose" "LIBGUESTFS_DEBUG=1" . download download remotefilename (filename|-) remotefilename filename . filename (named pipe) . "upload" "cat" . / stdin/stdout "-" . download-blocks download-blocks device start stop (filename|-) [unallocated:true|false] start stop ( /dev/sda1) filename . API QCOW . . NTFS (cluster) ExtX (fragment) . "unallocated" true ( false ) . . / stdin/stdout "-" . . "OPTIONAL ARGUMENTS" . "sleuthkit" . "feature-available" . download-inode download-inode device inode (filename|-) (inode) ( /dev/sda1) filename . . . / stdin/stdout "-" . "sleuthkit" . "feature-available" . download-offset download-offset remotefilename (filename|-) offset size remotefilename filename . remotefilename "size" "offset" ( ). "pread" . "download" "pread" . / stdin/stdout "-" . drop-caches drop-caches whattodrop (page cache) / dentry . "whattodrop" https://linux-mm.org/Drop_Caches "whattodrop" 3 . sync(2) . du du path "path" "du -s" . "path" . "path" ( ) . ( ) . e2fsck e2fsck device [correct:true|false] [forceall:true|false] [forceno:true|false] ext2/ext3 "device" . : "correct" . e2fsck . "forceall" "forceno" . "forceall" <<>> e2fsck . "correct" "forceno" . "forceno" <<>> e2fsck . "correct" "forceall" . . "OPTIONAL ARGUMENTS" . e2fsck-f e2fsck-f device "e2fsck -p -f device" ext2/ext3 "device" (-p) (-f). . "e2fsck" . API . echo-daemon echo-daemon 'words ...' "words" . . "ping-daemon" . egrep egrep regex path egrep(1) . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . egrepi egrepi regex path "egrep -i" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . equal equal file1 file2 file1 file2 true false . cmp(1) . exists exists path ( ) "path" "true" . "is-file" "is-dir" "stat" . extlinux extlinux directory SYSLINUX directory . "syslinux" FAT ext2/3/4 btrfs . directory . <<>> ("part-set-bootable") Master Boot Record ( "pwrite-device") . SYSLINUX Master Boot Record . extlinux(1) . extlinux.conf directory SYSLINUX . extlinux(1) . "syslinux" . "extlinux" . "feature-available" . f2fs-expand f2fs-expand device f2fs . "f2fs" . "feature-available" . fallocate fallocate path len ( ) "path" "len" . . guestfish "alloc" . . "fallocate64" . API . fallocate64 fallocate64 path len ( ) "path" "len" . . . (sparse) "truncate-size" . "fallocate" . guestfish "alloc" "sparse" . feature-available feature-available 'groups ...' "available" true/false . "available" . fgrep fgrep pattern path fgrep(1) . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . fgrepi fgrepi pattern path "fgrep -i" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . file file path file(1) . . ( -b file). file(1) . ABI . : file(1) "vfs-type" "lstat" "is-file" "is-blockdev" ( ) "is-zero". file-architecture file-architecture filename filename . : "aarch64" ARM. "arm" ARM. "i386" i386 i486 i586 i686 . "ia64" (Intel Itanium). "ppc" Power PC. "ppc64" Power PC ( / big endian). "ppc64le" Power PC ( / little endian). "loongarch64" LoongArch64 ( / little endian). "riscv32" "riscv64" "riscv128" RISC-V. "s390" IBM S/390. "s390x" IBM S/390. "sparc" SPARC. "sparc64" SPARC V9 . "x86_64" x86-64. Libguestfs . : o o o Win32 Win64 o DLL Win32 Win64 DLL Win32 "i386" . DLL Win64 "x86_64" . o o initrd o vmlinuz x86 : o (libfoo.a) o initrd ext2 ( RHEL 3) o vmlinuz x86 vmlinuz x86 ( bzImage) . initrd () . filesize filesize file file . "stat" "lstat" "is-dir" "is-file" . "blockdev-getsize64" . filesystem-available filesystem-available filesystem libguestfs . "filesystem" "ext3" . "launch" . . true mkfs. . "available" "feature-available" "AVAILABILITY" guestfs(3) . filesystem-walk filesystem-walk device ( /dev/sda1) . . . . . "tsk_dirent" : "tsk_inode" (node). 0 . "tsk_type" . . "tsk_size" . -1 . "tsk_name" . "tsk_flags" . OR : 0x0001 1 . . "download_inode" . 0x0002 NTFS Ext2 . 1 . . . 0x0004 (NTFS) 1 . API . "tsk_atime_sec" "tsk_atime_nsec" "tsk_mtime_sec" "tsk_mtime_nsec" "tsk_ctime_sec" "tsk_ctime_nsec" "tsk_crtime_sec" "tsk_crtime_nsec" . "tsk_nlink" . "tsk_link" (symlink) . "tsk_type" : 'b' (Block special) 'c' (Char special) 'd' (Directory) 'f' FIFO ( ) 'l' (Symbolic link) 'r' (Regular file) 's' (Socket) 'h' / Shadow inode () 'w' / Whiteout inode () 'u' "libtsk" . "feature-available" . fill fill c len path "path" . "len" "c" "c" "[0..255]" . ( / sparse) "truncate-size" . "fill-pattern" . fill-dir fill-dir dir nr "nr" "dir" 00000000 "nr-1" ( ). fill-pattern fill-pattern pattern len path "fill" "len" "pattern" . "len" . find find directory directory . "find directory -print" . . : /tmp/a /tmp/b /tmp/c/d "find" /tmp : a b c c/d directory . . find0 find0 directory (files|-) directory files . "find" : o . o ( ) "\0" . -print0 find(1) . o . / stdin/stdout "-" . find-inode find-inode device inode . "tsk_dirent" . "tsk_dirent" "filesystem_walk" . "libtsk" . "feature-available" . findfs-label findfs-label label (label) . . "vfs-label" . findfs-partlabel findfs-partlabel label . . "blkid" ("PART_ENTRY_NAME") . findfs-partuuid findfs-partuuid uuid UUID . . UUID "blkid" ("PART_ENTRY_UUID") . findfs-uuid findfs-uuid uuid UUID . . UUID "vfs-uuid" . fsck fsck fstype device (fsck) "device" "fstype" . . "fsck" fsck(8) . : o . o <<>> . o NTFS ( linux-ntfs) . "fsck -a -t fstype device" . fstrim fstrim mountpoint [offset:N] [length:N] [minimumfreeextent:N] "mountpoint" (trim) . - (read-write) . <<>> (sparse) qcow2 . libguestfs qemu . . vfs errno "ENOTSUP" . FAT . "zero-free-space". . "fstrim" "zero-free-space" . . "OPTIONAL ARGUMENTS" . "fstrim" . "feature-available". get-append get-append libguestfs . "NULL" . get-attach-method get-attach-method . "set-backend" "BACKEND" guestfs(3) . . "get-backend" . API . get-autosync get-autosync (autosync) . get-backend get-backend . << >> (attach method) . "set-backend" "BACKEND" guestfs(3) . get-backend-setting get-backend-setting name "name" "name=" . "name" "1" . "name=" ( ). . errno ( "last-errno") "ESRCH" . "BACKEND" guestfs(3) "BACKEND SETTINGS" guestfs(3) . get-backend-settings get-backend-settings . . "get-backend-setting" . "BACKEND" guestfs(3) "BACKEND SETTINGS" guestfs(3) . get-cachedir get-cachedir . get-direct get-direct (direct appliance mode) . . "internal-get-console-socket" . API . get-e2attrs get-e2attrs file file . inode . ( ) . . ext2/3/4 . . ( ) : 'A' atime . 'a' (append-only) . 'c' . 'D' ( .) (synchronous) . 'd' ( dump(8) ). 'E' . 'e' extent . 'h' . 'I' ( .) (hashed trees) . 'i' (immutable) . . . 'j' (data-journaled) . 's' . 'S' . 'T' ( .) . . 't' (tail-merging) . ( ext2 .) 'u' (undelete) . 'X' . 'Z' (dirty) . . . chattr(1) . "set-e2attrs". ( "getxattr"). get-e2generation get-e2generation file (file generation) ext2 . ( <<>> ) inode . NFS . ext2/3/4 . . "set-e2generation". get-e2label get-e2label device ext2/3/4 "device" . . "vfs-label" . API . get-e2uuid get-e2uuid device UUID ext2/3/4 "device" . . "vfs-uuid" . API . get-hv get-hv . qemu . . get-identifier get-identifier . "set-identifier". get-libvirt-requested-credential-challenge get-libvirt-requested-credential-challenge index ( libvirt) "index" . libvirt "" . "LIBVIRT AUTHENTICATION" guestfs(3) . get-libvirt-requested-credential-defresult get-libvirt-requested-credential-defresult index ( libvirt) "index" . libvirt "" . "LIBVIRT AUTHENTICATION" guestfs(3) . get-libvirt-requested-credential-prompt get-libvirt-requested-credential-prompt index ( libvirt) "index" . libvirt "" . "LIBVIRT AUTHENTICATION" guestfs(3) . get-libvirt-requested-credentials get-libvirt-requested-credentials callback "GUESTFS_EVENT_LIBVIRT_AUTH" . libvirt . "set-libvirt-supported-credentials" . "LIBVIRT AUTHENTICATION" guestfs(3) . get-memsize get-memsize . "set-memsize" "LIBGUESTFS_MEMSIZE" memsize . libguestfs guestfs(3) . get-network get-network . get-path get-path . -NULL . . get-pgroup get-pgroup (process group) . get-pid pid get-pid (PID) . . . get-program get-program . "set-program". get-qemu get-qemu ( qemu) . -NULL . qemu . . "get-hv" . API . get-recovery-proc get-recovery-proc . get-selinux get-selinux selinux . "set-selinux". libguestfs guestfs(3) . . "selinux-relabel" . API . get-smp get-smp CPU . get-sockdir get-sockdir PID . "get-tmpdir" ( UNIX) "get-tmpdir" . PID libguestfs "get-tmpdir" . "XDG_RUNTIME_DIR" : "XDG_RUNTIME_DIR" . /tmp . get-tmpdir get-tmpdir . get-trace get-trace (command trace) . get-umask get-umask umask . umask 022 "umask" . get-verbose get-verbose (verbose messages) . getcon getcon SELinux . SELINUX guestfs(3) "setcon" . . "selinux-relabel" . API . "selinux" . "feature-available". getxattr getxattr path name "path" "name" . . "lgetxattr" . "getxattrs" . . ( ntfs-3g) . (blob) . "name" . : "getxattrs" "lgetxattr" attr(5). "linuxxattrs" . "feature-available". getxattrs getxattrs path "path" . listxattr(2) getxattr(2) . : "lgetxattrs" attr(5). "linuxxattrs" . "feature-available". glob-expand glob-expand-opts glob-expand pattern [directoryslash:true|false] "pattern" (wildcard) . (: ). glob(3) C "GLOB_MARK|GLOB_BRACE" . . "directoryslash" "GLOB_MARK" glob(3) true . . ( /dev/sd*) . "list-devices" "list-partitions" . . "OPTIONAL ARGUMENTS" . grep grep-opts grep regex path [extended:true|false] [fixed:true|false] [insensitive:true|false] [compressed:true|false] grep(1) . : "extended" . -E . "fixed" ( ). -F . "insensitive" . -i . "compressed" zgrep(1) grep(1). compress gzip . . "OPTIONAL ARGUMENTS" . . "PROTOCOL LIMITS" guestfs(3) . grepi grepi regex path "grep -i" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . grub-install grub-install root device GRUB 1 ( ) "device" "root" . : o API grub2 . grub2 "RUNNING COMMANDS" guestfs(3) . o grub-install(8) . grub . . o grub-install "No suitable drive was found in the generated device map." /boot/grub/device.map grub . : (hd0) /dev/vda /dev/vda . "grub" . "feature-available". head head path . . "PROTOCOL LIMITS" guestfs(3) . head-n head-n nrlines path "nrlines" "nrlines" "path" . "nrlines" "path" "nrlines" . "nrlines" . . "PROTOCOL LIMITS" guestfs(3) . hexdump hexdump path "hexdump -C" "path" . . . "PROTOCOL LIMITS" guestfs(3) . hivex-close hivex-close hivex . hivex(3) . "hivex" . "feature-available". hivex-commit hivex-commit filename (hive) () . filename null . null . hivex(3) . "hivex" . "feature-available". hivex-node-add-child hivex-node-add-child parent name "parent" "name" . hivex(3) . "hivex" . "feature-available". hivex-node-children hivex-node-children nodeh "nodeh" . hivex(3) . "hivex" . "feature-available". hivex-node-delete-child hivex-node-delete-child nodeh "nodeh" . hivex(3) . "hivex" . "feature-available". hivex-node-get-child hivex-node-get-child nodeh name "nodeh" "name" . 0 . hivex(3) . "hivex" . "feature-available". hivex-node-get-value hivex-node-get-value nodeh key "nodeh" "key" . 0 . hivex(3) . "hivex" . "feature-available". hivex-node-name hivex-node-name nodeh "nodeh" . hivex(3) . "hivex" . "feature-available". hivex-node-parent hivex-node-parent nodeh "nodeh" . hivex(3) . "hivex" . "feature-available". hivex-node-set-value hivex-node-set-value nodeh key t val "nodeh" . "key" "t" "val" . hivex(3) . "hivex" . "feature-available". hivex-node-values hivex-node-values nodeh (key, datatype, data) "nodeh" . hivex(3) . "hivex" . "feature-available". hivex-open hivex-open filename [verbose:true|false] [debug:true|false] [write:true|false] [unsafe:true|false] filename . hivex guestfs . hivex(3) . . "OPTIONAL ARGUMENTS" . "hivex" . "feature-available". hivex-root hivex-root . hivex(3) . "hivex" . "feature-available". hivex-value-key hivex-value-key valueh () (key, datatype, data) . hivex(3) . "hivex" . "feature-available". hivex-value-string hivex-value-string valueh "hivex-value-value" ( hivex ). UTF-16LE UTF-8 ( ). . . "hivex" . "feature-available". hivex-value-type hivex-value-type valueh (key, datatype, data) . hivex(3) . "hivex" . "feature-available". hivex-value-utf8 hivex-value-utf8 valueh "hivex-value-value" ( hivex ). UTF-16LE UTF-8 ( ). . . . "hivex-value-string" . API . "hivex" . "feature-available". hivex-value-value hivex-value-value valueh (key, datatype, data) . hivex(3) . : "hivex-value-utf8". "hivex" . "feature-available". initrd-cat initrd-cat initrdpath filename filename initrd initrdpath . / . guestfish ( /init ) initrd initramfs : initrd-cat /boot/initrd-.img init "initrd-list". . "PROTOCOL LIMITS" guestfs(3) . initrd-list initrd-list path initrd . / . ( ) . . (. ) ext2 initrd . initramfs ( cpio ) . inotify-add-watch inotify-add-watch path mask "path" "mask" . "path" ( ) . C : inotify ABI /usr/include/sys/inotify.h . "inotify" . "feature-available". inotify-close inotify-close inotify inotify_init . . "inotify" . "feature-available". inotify-files inotify-files "inotify-read" ( ) . . "inotify" . "feature-available". inotify-init inotify-init maxevents inotify . inotify . "maxevents" "inotify-read" "inotify-files" . 0 ( ) . 2.6.29 . "IN_Q_OVERFLOW" ( "inotify-read"). . : "inotify-add-watch" "inotify-rm-watch". "inotify-read" ( "inotify-files" "inotify-read" ) . . "inotify-close" . . inotify inotify(7) libguestfs . libguestfs inotify . "inotify" . "feature-available". inotify-read inotify-read . . : . appliance-to-host . "inotify" . "feature-available". inotify-rm-watch inotify-rm-watch wd inotify . "inotify-add-watch". "inotify" . "feature-available". inspect-get-arch inspect-get-arch root . "file-architecture" . "unknown" . "INSPECTION" guestfs(3) . inspect-get-build-id inspect-get-build-id root (Build ID) "unknown" . . () . https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions . "BUILD_ID" /etc/os-release . "INSPECTION" guestfs(3) . inspect-get-distro inspect-get-distro root (distribution) . : "alpinelinux" (Alpine Linux). "altlinux" (ALT Linux). "archlinux" (Arch Linux). "buildroot" Buildroot . "centos" (CentOS). "circle" (Circle Linux). "cirros" (Cirros). "coreos" (CoreOS). "debian" (Debian). "fedora" (Fedora). "freebsd" (FreeBSD). "freedos" (FreeDOS). "frugalware" (Frugalware). "gentoo" (Gentoo). "kalilinux" (Kali Linux). "kylin" (Kylin). "linuxmint" (Linux Mint). "mageia" (Mageia). "mandriva" (Mandriva). "meego" (MeeGo). "msdos" (Microsoft DOS). "neokylin" (NeoKylin). "netbsd" (NetBSD). "openbsd" (OpenBSD). "openeuler" (openEuler). "openmandriva" (OpenMandriva Lx). "opensuse" (OpenSUSE). "oraclelinux" (Oracle Linux). "pardus" (Pardus). "pldlinux" (PLD Linux). "redhat-based" (Red Hat). "rhel" (Red Hat Enterprise Linux). "rocky" (Rocky Linux). "scientificlinux" (Scientific Linux). "slackware" (Slackware). "sles" (SuSE Linux Enterprise Server or Desktop). "suse-based" . "ttylinux" (ttylinux). "ubuntu" (Ubuntu). "unknown" . "voidlinux" (Void Linux). "windows" . . libguestfs . . "INSPECTION" guestfs(3) . inspect-get-drive-mappings inspect-get-drive-mappings root ( C:\) . API / : C => /dev/vda2 E => /dev/vdb1 F => /dev/vdc1 . . . OS-9 "h0" "h1" . . ( DVD-ROM) . . "INSPECTION" guestfs(3) . "inspect-get-mountpoints" "inspect-get-filesystems". inspect-get-filesystems inspect-get-filesystems root . swap . (multi-boot) . "INSPECTION" guestfs(3) . "inspect-get-mountpoints". inspect-get-format inspect-get-format root libguestfs 1.38 CD . API : "installed" . "installer" (Live CD) . "unknown" . libguestfs >= 1.38 "installed" . CD libosinfo . "INSPECTION" guestfs(3) . . . API guestfs(3) . API . inspect-get-hostname inspect-get-hostname root (hostname) . "unknown" . "INSPECTION" guestfs(3) . inspect-get-icon inspect-get-icon root [favicon:true|false] [highquality:true|false] . PNG ( PNG) . ( NULL) . . Libguestfs /etc/favicon.png C:\etc\favicon.png . "favicon" false ( true ) . . "highquality" true . (false) . : o API (mount) . o : . PNG . libpng ( ) . o PNG . . Libguestfs . . o wrestool(1) "icoutils" (bmptopnm(1) pnmtopng(1) pamcut(1)) "netpbm" . . o . . . "OPTIONAL ARGUMENTS". inspect-get-major-version inspect-get-major-version root (major version) . . "Windows 7" 6.1 ( major = 6 minor = 1). MSDN . 0 . "INSPECTION" guestfs(3) . inspect-get-minor-version inspect-get-minor-version root (minor version) . 0 . "INSPECTION" guestfs(3) . "inspect-get-major-version". inspect-get-mountpoints inspect-get-mountpoints root . /etc/fstab . . ( /boot) ( /dev/sda1). swap . " " / . "inspect-get-drive-mappings" . "INSPECTION" guestfs(3) . "inspect-get-filesystems". inspect-get-osinfo inspect-get-osinfo root libosinfo . : libguestfs osinfo-db . "unknown" . inspect-get-package-format inspect-get-package-format root "inspect-get-package-management" . "rpm" ( ) "yum" "dnf" ( ) . ( ) "unknown" . : "rpm" "deb" "ebuild" "pisi" "pacman" "pkgsrc" "apk" "xbps". libguestfs . "INSPECTION" guestfs(3) . inspect-get-package-management inspect-get-package-management root "inspect-get-package-format" . "rpm" ( ) "yum" "dnf" ( ) . ( ) "unknown" . : "yum" "dnf" "up2date" "apt" ( ) "portage" "pisi" "pacman" "urpmi" "zypper" "apk" "xbps". libguestfs . "INSPECTION" guestfs(3) . inspect-get-product-name inspect-get-product-name root . . "unknown" . "INSPECTION" guestfs(3) . inspect-get-product-variant inspect-get-product-variant root (product variant) . "HKLM\Software\Microsoft\Windows NT\CurrentVersion" "InstallationType" "Client" "Server" ( ). ( Windows 7 Windows 2008 Server 6.1 "Client" "Server" ). "Desktop" "Server" . . "unknown" . "INSPECTION" guestfs(3) . "inspect-get-product-name" "inspect-get-major-version". inspect-get-roots inspect-get-roots "inspect-os" . "inspect-os" . "INSPECTION" guestfs(3) . inspect-get-type inspect-get-type root . : "linux" . "windows" . "freebsd" (FreeBSD). "netbsd" (NetBSD). "openbsd" (OpenBSD). "hurd" / (GNU/Hurd). "dos" - (MS-DOS) (FreeDOS) . "minix" (MINIX). "unknown" . libguestfs . . "INSPECTION" guestfs(3) . inspect-get-windows-current-control-set inspect-get-windows-current-control-set root CurrentControlSet . CurrentControlSet "ControlSet001" . . . "INSPECTION" guestfs(3) . inspect-get-windows-group-policy inspect-get-windows-group-policy root (group policy) true . libguestfs . . . . . "INSPECTION" guestfs(3) . inspect-get-windows-software-hive inspect-get-windows-software-hive root ( ) HKLM\SOFTWARE . . . . "hivex-open" . "INSPECTION" guestfs(3) . inspect-get-windows-system-hive inspect-get-windows-system-hive root ( ) HKLM\SYSTEM . . . . "hivex-open" . "INSPECTION" guestfs(3) . inspect-get-windows-systemroot inspect-get-windows-systemroot root systemroot . systemroot /WINDOWS . systemroot . . "INSPECTION" guestfs(3) . inspect-is-live inspect-is-live root "false" . "INSPECTION" guestfs(3) . . . API guestfs(3) . API . inspect-is-multipart inspect-is-multipart root "false" . "INSPECTION" guestfs(3) . . . API guestfs(3) . API . inspect-is-netinst inspect-is-netinst root "false" . "INSPECTION" guestfs(3) . . . API guestfs(3) . API . inspect-list-applications inspect-list-applications root . : API . "inspect-os" "inspect-get-mountpoints" . . "inspect-get-*" libguestfs . . : "app_name" . . "app_display_name" . "" . "app_name" . "app_epoch" epoch epoch ( ). 0 . "app_version" . "" . "app_release" (release) . "" . "app_install_path" ( ). libguestfs . "" . "app_trans_path" libguestfs. "" . "app_publisher" . "" . "app_url" ( URL ) . "" . "app_source_package" . "" . "app_summary" ( ) . "" . "app_description" . "" . "INSPECTION" guestfs(3) . . "inspect-list-applications2" . API . inspect-list-applications2 inspect-list-applications2 root . : API . "inspect-os" "inspect-get-mountpoints" . . "inspect-get-*" libguestfs . . : "app2_name" . . "app2_display_name" . "" . "app2_name" . "app2_epoch" epoch epoch ( ). 0 . "app2_version" . "" . "app2_release" (release) . "" . "app2_arch" . "" . "app2_install_path" ( ). libguestfs . "" . "app2_trans_path" libguestfs. "" . "app2_publisher" . "" . "app2_url" ( URL ) . "" . "app2_source_package" . "" . "app2_summary" ( ) . "" . "app2_description" . "" . "app2_class" . "antivirus" . "" . "INSPECTION" guestfs(3) . inspect-os inspect-os libguestfs (heuristics) () ( ) . . (root) . (dual-boot) (multi-boot) . () "inspect-get-*" . libguestfs "mount-ro" "umount-all" . . Augeas Augeas . . ( ) . "INSPECTION" guestfs(3) . "list-filesystems" . is-blockdev is-blockdev-opts is-blockdev path [followsymlinks:true|false] "true" (block device) "path" . "followsymlinks" true ( ) true . . Libguestfs ( /dev/sda) "path" . "stat" . . "OPTIONAL ARGUMENTS" . is-chardev is-chardev-opts is-chardev path [followsymlinks:true|false] "true" (character device) "path" . "followsymlinks" true ( ) true . "stat" . . "OPTIONAL ARGUMENTS" . is-config is-config true ( "CONFIG"). guestfs(3) . is-dir is-dir-opts is-dir path [followsymlinks:true|false] "true" "path" . false . "followsymlinks" true ( ) true . "stat" . . "OPTIONAL ARGUMENTS" . is-fifo is-fifo-opts is-fifo path [followsymlinks:true|false] "true" FIFO ( ) "path" . "followsymlinks" true ( ) FIFO true . "stat" . . "OPTIONAL ARGUMENTS" . is-file is-file-opts is-file path [followsymlinks:true|false] "true" "path" . false . "followsymlinks" true ( ) true . "stat" . . "OPTIONAL ARGUMENTS" . is-lv is-lv mountable "mountable" (logical volume) true . is-socket is-socket-opts is-socket path [followsymlinks:true|false] "true" (Unix domain socket) "path" . "followsymlinks" true ( ) true . "stat" . . "OPTIONAL ARGUMENTS" . is-symlink is-symlink path "true" "path" . "stat" . is-whole-device is-whole-device device "true" "device" . is-zero is-zero path true . is-zero-device is-zero-device device true . . isoinfo isoinfo isofile "isoinfo-device" ISO . ISO libguestfs "isoinfo-device" . isoinfo-device isoinfo-device device "device" ISO . (primary volume descriptor - ISO) . ISO isoinfo(1) -d libguestfs . : https://wiki.osdev.org/ISO_9660#The_Primary_Volume_Descriptor journal-close journal-close . "journal" . "feature-available" . journal-get journal-get . "(attrname, attrval)" . "attrname" ( ) . "attrval" ( ) . "attrval" C \0. () (: "journal-set-data-threshold" "journal-get-data-threshold"). (0) libguestfs . "journal" . "feature-available" . journal-get-data-threshold journal-get-data-threshold . ( ). 0 . "journal-set-data-threshold" . "journal" . "feature-available" . journal-get-realtime-usec journal-get-realtime-usec ( ) . "journal" . "feature-available" . journal-next journal-next . . . "true" ( "journal-get") "false" . "journal" . "feature-available" . journal-open journal-open directory systemd directory . . "journal-next" "journal-get" . "journal-close" . "journal" . "feature-available" . journal-set-data-threshold journal-set-data-threshold threshold . ( ). 0 . "journal-get-data-threshold" . "journal" . "feature-available" . journal-skip journal-skip skip ("skip >= 0") ("skip < 0") . ( "rskip >= 0"). ("|skip|") . "journal" . "feature-available" . kill-subprocess kill-subprocess (). . "shutdown" . . "shutdown" . API . launch run launch ( ) . "launch" . ( ) . . lchown lchown owner group path "owner" "group" . "chown" "path" . uid gid . ( Augeas ). ldmtool-create-all ldmtool-create-all (dynamic disk) . "list-ldm-volumes" "list-ldm-partitions" . "launch" . "ldm" . "feature-available" . ldmtool-diskgroup-disks ldmtool-diskgroup-disks diskgroup . "diskgroup" GUID "ldmtool-scan" . "ldm" . "feature-available" . ldmtool-diskgroup-name ldmtool-diskgroup-name diskgroup . "diskgroup" GUID "ldmtool-scan" . "ldm" . "feature-available" . ldmtool-diskgroup-volumes ldmtool-diskgroup-volumes diskgroup . "diskgroup" GUID "ldmtool-scan" . "ldm" . "feature-available" . ldmtool-remove-all ldmtool-remove-all "ldmtool-create-all" . device mapper . "ldm" . "feature-available" . ldmtool-scan ldmtool-scan . (GUID) . "ldmtool-*" . . "ldmtool-scan-devices" . "ldm" . "feature-available" . ldmtool-scan-devices ldmtool-scan-devices 'devices ...' . (GUID) . "ldmtool-*" . "devices" . . "ldm" . "feature-available" . ldmtool-volume-hint ldmtool-volume-hint diskgroup volume hint "volume" GUID "diskgroup" . . hint "E:". "ldm" . "feature-available" . ldmtool-volume-partitions ldmtool-volume-partitions diskgroup volume "volume" GUID "diskgroup" . "ldm" . "feature-available" . ldmtool-volume-type ldmtool-volume-type diskgroup volume "volume" GUID "diskgroup" . : "simple" "spanned" "striped" "mirrored" "raid5". . "ldm" . "feature-available" . lgetxattr lgetxattr path name "name" "path" . "path" . "getxattrs" . . ( ntfs-3g) . . "name" . : "lgetxattrs" "getxattr" attr(5). "linuxxattrs" . "feature-available" . lgetxattrs lgetxattrs path "getxattrs" "path" . "linuxxattrs" . "feature-available" . list-9p list-9p . . . API guestfs(3) . API . list-devices list-devices . /dev/sda. "list-filesystems" . list-disk-labels list-disk-labels "label" "add-drive-opts" ( /dev/sda /dev/sda1) . (hashtable) ( /dev/disk/guestfs) ( /dev/sda /dev/sda1). list-dm-devices list-dm-devices device mapper . /dev/mapper/* "luks-open" . device mapper . "lvs" . list-filesystems list-filesystems "mountables" . . : "/dev/sda1" => "ntfs" "/dev/sda2" => "ext2" "/dev/vg_guest/lv_root" => "ext4" "/dev/vg_guest/lv_swap" => "swap" ` ' (mountable) "mount" . "unknown" . "swap" . libguestfs <= 1.36 libguestfs "mount" "umount" . libguestfs >= 1.38 . . . . ( "inspect-os" ). list-ldm-partitions list-ldm-partitions . . "ldm" . "feature-available" . list-ldm-volumes list-ldm-volumes . . "ldm" . "feature-available" . list-md-devices list-md-devices md . list-partitions list-partitions . /dev/sda1. . "lvs" . "list-filesystems" . ll ll directory directory ( ) "ls -la" . . . llz llz directory directory "ls -laZ" . . . . "lgetxattrs" . API . ln ln target linkname . ln-f ln-f target linkname "linkname" . ln-s ln-s target linkname "ln -s" . ln-sf ln-sf target linkname "ln -sf" . -f ("linkname") . lremovexattr lremovexattr xattr path "removexattr" "path" . "linuxxattrs" . "feature-available" . ls ls directory directory ( ) . "." ".." . ls0 ls0 dir (filenames|-) "dir" . filenames ( ) . "\0" . "." ".." . . / / "-" . lsetxattr lsetxattr xattr val vallen path "setxattr" "path" . "linuxxattrs" . "feature-available" . lstat lstat path "path" . "stat" "path" . lstat(2) . . "lstatns" . API . lstatlist lstatlist path 'names ...' "lstat" "path" . "names" . stat "names" . lstat "st_ino" -1 . . "lxattrlist" . . "lstatnslist" . API . lstatns lstatns path "path" . "statns" "path" . lstat(2) . lstatnslist lstatnslist path 'names ...' "lstatns" "path" . "names" . stat "names" . lstat "st_ino" -1 . . "lxattrlist" . luks-add-key luks-add-key device keyslot LUKS "device" . "key" . "newkey" . "keyslot" . "keyslot" . "luks-kill-slot" . (passphrase) . Guestfish . "luks" . "feature-available" . luks-close luks-close device LUKS "luks-open" "luks-open-ro" . "device" LUKS ( /dev/mapper/mapname) . . "cryptsetup-close" . API . "luks" . "feature-available" . luks-format luks-format device keyslot "device" LUKS . "key" "keyslot" . (LUKS ). . Guestfish . "luks" . "feature-available" . luks-format-cipher luks-format-cipher device keyslot cipher "luks-format" "cipher" . . Guestfish . "luks" . "feature-available" . luks-kill-slot luks-kill-slot device keyslot "keyslot" LUKS "device" . "key" . . Guestfish . "luks" . "feature-available" . luks-open luks-open device mapname (LUKS) . "device" . LUKS "key" . /dev/mapper/mapname . "device" . LVM "lvm-scan" "activate" "true" . "list-dm-devices" device mapper . . Guestfish . . "cryptsetup-open" . API . "luks" . "feature-available" . luks-open-ro luks-open-ro device mapname "luks-open" . . Guestfish . . "cryptsetup-open" . API . "luks" . "feature-available". luks-uuid luks-uuid device UUID LUKS "device" . "luks" . "feature-available". lvcreate lvcreate logvol volgroup mbytes LVM "logvol" "volgroup" "mbytes" . "lvm2" . "feature-available". lvcreate-free lvcreate-free logvol volgroup percent LVM /dev/volgroup/logvol "percent" . "percent" 100 LV . "lvm2" . "feature-available". lvm-canonical-lv-name lvm-canonical-lv-name lvname LV (canonical) . /dev/mapper/VG-LV /dev/VG/LV . "lvname" . errno "EINVAL" . "is-lv", "canonical-device-name". lvm-clear-filter lvm-clear-filter "lvm-set-filter" . LVM . (cache) LVM . lvm-remove-all lvm-remove-all LVM . "lvm2" . "feature-available". lvm-scan lvm-scan true|false LVM . "activate" "true" LV /dev/VG/LV . libguestfs API . ( API "luks-open" ) . lvm-set-filter lvm-set-filter 'devices ...' LVM LVM "devices" <<>> . () PV VG LVM LVM . : PV/VG UUID VG . LVM LVM. (cache) LVM . . VG ( ) VG . "lvm2" . "feature-available". lvremove lvremove device LVM "device" "device" LV /dev/VG/LV. VG /dev/VG LV . "lvm2" . "feature-available". lvrename lvrename logvol newlogvol "logvol" "newlogvol" . lvresize lvresize device mbytes LVM "mbytes" ( ). . "lvm2" . "feature-available". lvresize-free lvresize-free lv percent "lv" "percent" . . "lvm2" . "feature-available". lvs lvs . lvs(8) . ( /dev/VolGroup00/LogVol00) . "lvs-full", "list-filesystems". "lvm2" . "feature-available". lvs-full lvs-full . lvs(8) . "full" . "lvm2" . "feature-available". lvuuid lvuuid device UUID LV LVM "device" . lxattrlist lxattrlist path 'names ...' (extended attributes) "path" . "names" . xattr . xattr "attrname" . "attrval" "lgetxattr" C ( "0" ). xattr . . . "lstatlist" . "linuxxattrs" . "feature-available". max-disks max-disks ( "add-drive-opts" ) . libguestfs 1.19.7 . libguestfs . "MAXIMUM NUMBER OF DISKS" guestfs(3) . md-create md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..] md (RAID) "name" "devices" . : "missingbitmap" (bitmap) . . . : "devices = ["/dev/sda"]" "missingbitmap = 0x1" "[, "/dev/sda"]" . "devices = ["/dev/sda"]" "missingbitmap = 0x2" "["/dev/sda", ]" . 0 ( ). "devices" + "missingbitmap" "nrdevices" + "spare" . "nrdevices" RAID. "devices" "missingbitmap" . "spare" (spare). 0 . "chunk" () . "level" "raid1" ( ) "chunk" . "level" RAID : "linear", "raid0", 0, "stripe", "raid1", 1, "mirror", "raid4", 4, "raid5", 5, "raid6", 6, "raid10", 10. . "raid1" . . "OPTIONAL ARGUMENTS" . "mdadm" . "feature-available". md-detail md-detail md "mdadm -DY " . . . "level" raid MD. "devices" MD. "metadata" . "uuid" (UUID) MD. "name" MD. "mdadm" . "feature-available". md-stat md-stat md RAID "md" . RAID "list-md-devices" . : "mdstat_device" . "mdstat_index" . "mdstat_flags" . ( ) : "W" (write-mostly) "F" (faulty) "S" RAID (spare) "R" (replacement) "mdadm" . "feature-available". md-stop md-stop md MD "md" . . "mdadm" . "feature-available". mkdir mkdir path "path" . mkdir-mode mkdir-mode path mode "mode" . "mode & ~umask & 01777" . . "mkdir", "umask". mkdir-p mkdir-p path "path" . "mkdir -p" . mkdtemp mkdtemp tmpl . "tmpl" "XXXXXX" . : "/tmp/myprogXXXXXX" "/Temp/myprogXXXXXX" . . 0700 root . . : mkdtemp(3). mke2fs mke2fs device [blockscount:N] [blocksize:N] [fragsize:N] [blockspergroup:N] [numberofgroups:N] [bytesperinode:N] [inodesize:N] [journalsize:N] [numberofinodes:N] [stridesize:N] [stripewidth:N] [maxonlineresize:N] [reservedblockspercentage:N] [mmpupdateinterval:N] [journaldevice:..] [label:..] [lastmounteddir:..] [creatoros:..] [fstype:..] [usagetype:..] [uuid:..] [forcecreate:true|false] [writesbandgrouponly:true|false] [lazyitableinit:true|false] [lazyjournalinit:true|false] [testfs:true|false] [discard:true|false] [quotatype:true|false] [extent:true|false] [filetype:true|false] [flexbg:true|false] [hasjournal:true|false] [journaldev:true|false] [largefile:true|false] [quota:true|false] [resizeinode:true|false] [sparsesuper:true|false] [uninitbg:true|false] "mke2fs" ext2 ext3 ext4 "device" . "blockscount" . "device" . "mke2fs" ext2 . . "OPTIONAL ARGUMENTS" . mke2fs-J mke2fs-J fstype blocksize device journal ext2/3/4 "device" "journal" . : mke2fs -t fstype -b blocksize -J device= "mke2journal". . "mke2fs" . API . mke2fs-JL mke2fs-JL fstype blocksize device label ext2/3/4 "device" "label" . "mke2journal-L". . "mke2fs" . API . mke2fs-JU mke2fs-JU fstype blocksize device uuid ext2/3/4 "device" UUID "uuid" . "mke2journal-U". . "mke2fs" . API . "linuxfsuuid" . "feature-available". mke2journal mke2journal blocksize device ext2 "device" . : mke2fs -O journal_dev -b blocksize device . "mke2fs" . API . mke2journal-L mke2journal-L blocksize label device ext2 "device" "label" . . "mke2fs" . API . mke2journal-U mke2journal-U blocksize uuid device ext2 "device" UUID "uuid" . . "mke2fs" . API . "linuxfsuuid" . "feature-available". mkfifo mkfifo mode path FIFO ( ) "path" "mode" . "mknod" . "mknod" "mode" . umask . "mknod" . "feature-available". mkfs mkfs-opts mkfs fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N] [label:..] "device" . "fstype" "ext3". : "blocksize" . ext2/3 1024 2048 4096 . VFAT NTFS "blocksize" . UFS mkfs.ufs(8) . "features" -O mkfs . . mke2fs(8) mkfs.ufs(8) . "gfs" "gfs2" . "inode" -I mke2fs(8) inode ( ext2/3/4). "sectorsize" -S mkfs.ufs(8) ufs . . "OPTIONAL ARGUMENTS" . mkfs-b mkfs-b fstype blocksize device "mkfs" . 1024 2048 4096 . VFAT NTFS "blocksize" . . "mkfs" . API . mkfs-btrfs mkfs-btrfs 'devices ...' [allocstart:N] [bytecount:N] [datatype:..] [leafsize:N] [label:..] [metadata:..] [nodesize:N] [sectorsize:N] btrfs . mkfs.btrfs(8) . btrfs . "mkfs" . . "OPTIONAL ARGUMENTS" . "btrfs" . "feature-available". mklost-and-found mklost-and-found mountpoint "lost+found" ext2/3/4 . "mountpoint" "lost+found" . mkmountpoint mkmountpoint exemptpath "mkmountpoint" "rmmountpoint" ( ) . / . (Live CD) ( ) : ISO squashfs ext2/3 . guestfish : add-ro Fedora-11-i686-Live.iso run mkmountpoint /cd mkmountpoint /sqsh mkmountpoint /ext3fs mount /dev/sda /cd mount-loop /cd/LiveOS/squashfs.img /sqsh mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs /ext3fs . "mkmountpoint" "umount-all" . . . "umount-all" . https://bugzilla.redhat.com/show_bug.cgi?id=599503 . (Autosync) [ "set-autosync" ] "umount-all" . mknod mknod mode devmajor devminor path (FIFOs) . "mode" . "devmajor" "devminor" . mknod(2) mode S_IFBLK S_IFCHR S_IFIFO S_IFSOCK OR ( ). "mknod-b" "mknod-c" "mkfifo" OR . umask . "mknod" . "feature-available". mknod-b mknod-b mode devmajor devminor path "path" "mode" / "devmajor" "devminor" . "mknod" . "mknod" "mode" . umask . "mknod" . "feature-available". mknod-c mknod-c mode devmajor devminor path "path" "mode" / "devmajor" "devminor" . "mknod" . "mknod" "mode" . umask . "mknod" . "feature-available". mksquashfs mksquashfs path (filename|-) [compress:..] [excludes:..] squashfs "path" . "compress" . "gzip" . squashfs : "gzip", "lzma", "lzo", "lz4", "xz". : "excludes" (wildcards). . API squashfs . "-" stdin/stdout /. . "OPTIONAL ARGUMENTS" . "squashfs" . "feature-available". mkswap mkswap-opts mkswap device [label:..] [uuid:..] swap "device" . "label" "uuid" / UUID swap . . "OPTIONAL ARGUMENTS" . mkswap-L mkswap-L label device swap "device" "label" . swap ( /dev/sda) . swap . . "mkswap" . API . mkswap-U mkswap-U uuid device swap "device" "uuid" . . "mkswap" . API . "linuxfsuuid" . "feature-available". mkswap-file mkswap-file path swap . swap . "fallocate" . mktemp mktemp tmpl [suffix:..] . "tmpl" "XXXXXX" . : "/tmp/myprogXXXXXX" "/Temp/myprogXXXXXX" . . 0600 root . . "suffix" ( ".txt") . : "mkdtemp". . "OPTIONAL ARGUMENTS" . modprobe modprobe modulename . "linuxmodules" . "feature-available". mount mount mountable mountpoint . /dev/sda /dev/sdb . ( /dev/sda1). LVM /dev/VG/LV (mountable) "list-filesystems" "inspect-get-mountpoints" . mount(2) : / . . . libguestfs 1.13.16 "sync" "noatime" . "sync" . libguestfs "mount-options" ( ). mount-9p mount-9p mounttag mountpoint [options:..] . . "OPTIONAL ARGUMENTS" . . . API guestfs(3) . API . mount-local mount-local localmountpoint [readonly:true|false] [options:..] [cachetimeout:N] [debugcalls:true|false] libguestfs () "localmountpoint" . "localmountpoint" libguestfs . "readonly" true "EROFS" . "options" . guestmount(1) . "cachetimeout" ( ) . . guestmount(1) . "debugcalls" true FUSE . "mount-local" ( ). "mount-local-run" . "MOUNT LOCAL" guestfs(3) . . "OPTIONAL ARGUMENTS" . mount-local-run mount-local-run libguestfs . "mount-local" . (unmount) . not libguestfs (thread) . "mount-local" libguestfs ( "MULTIPLE HANDLES AND MULTIPLE THREADS" guestfs(3) ). "MOUNT LOCAL" guestfs(3) . mount-loop mount-loop file mountpoint file ( ) (mount point) . "mount -o loop file mountpoint" . mount-options mount-options options mountable mountpoint "mount" -o mount(8) . "options" ( ). mount-ro mount-ro mountable mountpoint "mount" (-o ro) . mount-vfs mount-vfs options vfstype mountable mountpoint "mount" vfstype -o -t mount(8) . mountable-device mountable-device mountable (mountable) . mountable . (subvolumes) btrfs mountable ( mountable "mountable-subvolume" ). mountable-subvolume mountable-subvolume mountable (subvolume) mountable . Btrfs ( mountable "mountable-device" ). mountable btrfs "errno" "EINVAL" . mountpoints mountpoints "mounts" . . () . mounts mounts . ( /dev/sda1 /dev/VG/LV) . . : "mountpoints" mv mv src dest "src" "dest" "dest" . : "rename". nr-devices nr-devices (block devices) . "list-devices" . "max-disks" . ntfs-3g-probe ntfs-3g-probe true|false device ntfs-3g.probe(8) "device" NTFS . ( NTFS - ). "rw" . - true . false . 0 ntfs-3g.probe(8) . "ntfs3g" . "feature-available" . ntfs-chmod ntfs-chmod device mode path [recursive:true|false] NTFS chmod ntfssecaudit(8). . Note: guestfish "mode" (decimal) 0 (octal) 0700 700. "device" NTFS ( "/dev/sda5"). . "mode" ( 0744). "path" . "recursive" . . "OPTIONAL ARGUMENTS" . "ntfs3g" . "feature-available" . ntfscat-i ntfscat-i device inode (filename|-) (inode) NTFS filename . $Extend . . / stdin/stdout "-" . ntfsclone-in ntfsclone-in (backupfile|-) device "backupfile" ( "ntfsclone-out") "device" . / stdin/stdout "-" . "ntfs3g" . "feature-available" . ntfsclone-out ntfsclone-out device (backupfile|-) [metadataonly:true|false] [rescue:true|false] [ignorefscheck:true|false] [preservetimestamps:true|false] [force:true|false] (Stream) NTFS "device" "backupfile". ntfsclone(8) . "metadataonly" true ( ). "rescue" "ignorefscheck" "preservetimestamps" "force" ntfsclone(8) . libguestfs "ntfsclone-in" . / stdin/stdout "-" . . "OPTIONAL ARGUMENTS" . "ntfs3g" . "feature-available" . ntfsfix ntfsfix device [clearbadsectors:true|false] NTFS NTFS NTFS . "chkdsk" not . not . "clearbadsectors" (bad sectors) . . . "OPTIONAL ARGUMENTS" . "ntfs3g" . "feature-available" . ntfsresize ntfsresize-opts ntfsresize device [size:N] [force:true|false] NTFS . : "size" ( ). ( ) . "force" true . ( ). . "force" don't "ntfsresize" . ntfsresize(8) . . "OPTIONAL ARGUMENTS" . "ntfsprogs" . "feature-available" . ntfsresize-size ntfsresize-size device size "ntfsresize" ( ) . . "ntfsresize" . API . "ntfsprogs" . "feature-available" . parse-environment parse-environment (Environment) . "LIBGUESTFS_DEBUG=1" `verbose' . . "create" . libguestfs "ENVIRONMENT VARIABLES" guestfs(3) . "guestfs_create_flags" guestfs(3) "parse-environment-list" . parse-environment-list parse-environment-list 'environment ...' "environment" . "LIBGUESTFS_DEBUG=1" `verbose' . "parse-environment" . part-add part-add device prlogex startsect endsect "device" . "part-init" . "prlogex" . "p" "primary" MBR "l" ( "logical") "e" ( "extended") . "startsect" "endsect" . "endsect" (-1 ). . "part-disk" . part-del part-del device partnum "partnum" "device" . MBR extended logical . part-disk part-disk device parttype "part-init" "part-add" primary . "parttype" "mbr" "gpt" "part-init" . part-expand-gpt part-expand-gpt device GPT ( backup GPT) . (in-place) GPT . "sgdisk -e" . sgdisk(8) . "gdisk" . "feature-available" . part-get-bootable part-get-bootable device partnum "partnum" "device" bootable true . : "part-set-bootable". part-get-disk-guid part-get-disk-guid device (GUID) "device" GPT . (undefined) . part-get-gpt-attributes part-get-gpt-attributes device partnum GPT "partnum" . MBR . part-get-gpt-guid part-get-gpt-guid device partnum GUID GPT "partnum" . part-get-gpt-type part-get-gpt-type device partnum (type GUID) GPT "partnum" . part-get-mbr-id part-get-mbr-id device partnum MBR ( ID ) "partnum" . MBR ( DOS) . ("part-get-parttype" ). part-get-mbr-part-type part-get-mbr-part-type device partnum MBR "partnum" "device" . "primary" "logical" "extended" . part-get-name part-get-name device partnum "partnum" "device" . . . "gpt" "mbr" . part-get-parttype part-get-parttype device "device" () . : "msdos" ( MBR DOS/Windows) "gpt" ( GPT/EFI). . "part-init" . part-init part-init device parttype "device" . "parttype" "msdos" "gpt" ( ) . . "part-add" . "parttype" : "efi" "gpt" Intel EFI / GPT. Mac OS X . "mbr" . "mbr" "msdos" "Master Boot Record" (MBR) PC MS-DOS . only . "gpt" . : "aix" AIX. "amiga" "rdb" "Rigid Disk Block" . "bsd" BSD. "dasd" DASD IBM. "dvh" MIPS/SGI. "mac" . "gpt" . "pc98" NEC PC-98 . "sun" Sun. part-list part-list device "device" . : "part_num" . "part_start" . "blockdev-getss" . "part_end" . "part_size" . part-resize part-resize device partnum endsect "partnum" "device" . . "resize2fs" . . part-set-bootable part-set-bootable device partnum true|false (bootable) "partnum" "device" . . bootable ( ) . . part-set-disk-guid part-set-disk-guid device guid (GUID) "device" GPT "guid" . "device" GPT "guid" GUID . part-set-disk-guid-random part-set-disk-guid-random device (GUID) "device" GPT . "device" GPT . part-set-gpt-attributes part-set-gpt-attributes device partnum attributes GPT "partnum" "attributes" . "device" GPT . https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_entries . part-set-gpt-guid part-set-gpt-guid device partnum guid GUID GPT "partnum" "guid" . "device" GPT "guid" GUID . part-set-gpt-type part-set-gpt-type device partnum guid (type GUID) GPT "partnum" "guid" . "device" GPT "guid" GUID . GUID https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs . part-set-mbr-id part-set-mbr-id device partnum idbyte MBR ( ID ) "partnum" "idbyte" . "0x" . MBR ( DOS) . ("part-get-parttype" ). part-set-name part-set-name device partnum name "partnum" "device" . . . "gpt" "mbr" . part-to-dev part-to-dev partition ( "/dev/sdb1") ( "/dev/sdb"). "list-partitions". : "part-to-partnum" "device-index". part-to-partnum part-to-partnum partition ( "/dev/sdb1") ( 1). "list-partitions". : "part-to-dev". ping-daemon ping-daemon guestfs appliance (libguestfs) . () . pread pread path count offset . "count" "offset" "path" . . pread(2) . : "pwrite" "pread-device". . "PROTOCOL LIMITS" guestfs(3) . pread-device pread-device device count offset . "count" "device" "offset" . . pread(2) . : "pread". . "PROTOCOL LIMITS" guestfs(3) . pvchange-uuid pvchange-uuid device UUID (PV) "device". "lvm2" . "feature-available" . pvchange-uuid-all pvchange-uuid-all UUID . "lvm2" . "feature-available" . pvcreate pvcreate device LVM ( Physical Volume) "device" "device" /dev/sda1 . "lvm2" . "feature-available" . pvremove pvremove device "device" LVM . pvremove(8) (volume group) . "lvm2" . "feature-available" . pvresize pvresize device ( ) LVM . "lvm2" . "feature-available" . pvresize-size pvresize-size device size "pvresize" ( ) . "lvm2" . "feature-available" . pvs pvs . pvs(8) . ( /dev/sda2). : "pvs-full". "lvm2" . "feature-available" . pvs-full pvs-full . pvs(8) . "full" . "lvm2" . "feature-available" . pvuuid pvuuid device UUID PV LVM "device" . pwrite pwrite path content offset . "content" "path" "offset" . pwrite(2) . . . : "pread" "pwrite-device". . "PROTOCOL LIMITS" guestfs(3) . pwrite-device pwrite-device device content offset . "content" "device" "offset" . pwrite(2) ( ). : "pwrite". . "PROTOCOL LIMITS" guestfs(3) . read-file read-file path "path" . "cat" NUL . read-lines read-lines path "path" . . "LF" "CRLF" not . ( "\0" ). "read-file" . readdir readdir dir "dir" . "." ".." . not . . "ftyp" : 'b' (Block special) 'c' (Char special) 'd' 'f' FIFO ( ) 'l' (Symbolic link) 'r' (Regular file) 's' (Socket) 'u' '?' readdir(3) "d_type" . "ls" . "ll" . readlink readlink path (symbolic link) . readlinklist readlinklist path 'names ...' "readlink" "path" . "names" . "names" . . readlink(2) "" . readlink(2) ( ). ..SS realpath realpath path (canonicalized) "path" . "." ".." . remount remount mountpoint [rw:true|false] "rw" (/-) "mountpoint" - . "" "rw" . . . " " . remove-drive remove-drive label . . . API guestfs(3) . API . removexattr removexattr xattr path "xattr" "path" . : "lremovexattr" attr(5). "linuxxattrs" . "feature-available". rename rename oldpath newpath . rename(2) . "mv" . resize2fs resize2fs device ext2 ext3 ext4 . " RESIZE2FS" guestfs(3) . resize2fs-M resize2fs-M device "resize2fs" . -M resize2fs(8) . "tune2fs-l" "Block size" "Block count" . . " RESIZE2FS" guestfs(3) . resize2fs-size resize2fs-size device size "resize2fs" ( ) . " RESIZE2FS" guestfs(3) . rm rm path "path" . rm-f rm-f path "path" . . ( I/O ). . "rmdir" "rm-rf" . rm-rf rm-rf path "path" . "rm -rf" . rmdir rmdir path "path" . rmmountpoint rmmountpoint exemptpath "mkmountpoint" . "mkmountpoint" . rsync rsync src dest [archive:true|false] [deletedest:true|false] libguestfs . rsync(1) . "src" "dest" . "src" "dest" . : "archive" (archive) . --archive "rsync" . "deletedest" . . " " . "rsync" . "feature-available". rsync-in rsync-in remote dest [archive:true|false] [deletedest:true|false] libguestfs . rsync(1) . . "set-network" --network guestfish(1) . "remote" "dest" . rsync(1) . . "rsync" . . " " . "rsync" . "feature-available". rsync-out rsync-out src remote [archive:true|false] [deletedest:true|false] libguestfs . rsync(1) . . "set-network" --network guestfish(1) . "src" "remote" . rsync(1) . . "rsync" . (Globbing) "src" . API (wildcards) ( "glob-expand" ). guestfish "glob" ( "glob" ) : > glob rsync-out /* rsync://remote/ . " " . "rsync" . "feature-available". scrub-device scrub-device device "device" . scrub(1) . . "scrub" . "feature-available". scrub-file scrub-file file . (scrubbing) . scrub(1) . . "scrub" . "feature-available". scrub-freespace scrub-freespace dir "dir" "scrub-file" . "dir" . scrub(1) . . "scrub" . "feature-available". selinux-relabel selinux-relabel specfile path [force:true|false] SELinux . "specfile" (policy spec file) . "/etc/selinux/config" SELinux : "/etc/selinux/" + selinuxtype + "/contexts/files/file_contexts". "path" . "path" "/" . "force" . . " " . . "setfiles" . API . "selinuxrelabel" . "feature-available". set-append append set-append append libguestfs . "NULL" "LIBGUESTFS_APPEND" . "append" "NULL" (libguestfs ). set-attach-method attach-method set-attach-method backend libguestfs guestfsd . "" guestfs(3) . . "set-backend" . API . set-autosync autosync set-autosync true|false "autosync" true . Libguestfs ( ) . ( libguestfs 1.5.24 ). set-backend backend set-backend backend libguestfs guestfsd . "attach method" . "" guestfs(3) . set-backend-setting set-backend-setting name val "name=value" . "name" "name=" . "" guestfs(3) " " guestfs(3) . set-backend-settings set-backend-settings 'settings ...' . . "LIBGUESTFS_BACKEND_SETTINGS" . (:) . . "set-backend-setting" . "clear-backend-setting" . "" guestfs(3) " " guestfs(3) . set-cachedir cachedir set-cachedir cachedir (cache) supermin . (effective user ID) . "LIBGUESTFS_CACHEDIR" "TMPDIR" : "LIBGUESTFS_CACHEDIR" . "TMPDIR" . /var/tmp . set-direct direct set-direct true|false (direct appliance mode) stdin stdout . "set-log-message-callback" stdout . . . . "internal-get-console-socket" . API . set-e2attrs set-e2attrs file attrs [clear:true|false] "attrs" file . "attrs" . "get-e2attrs" . . "clear" false "attrs" . "clear" true "attrs" . "attrs" . ext2/3/4 . . . " " . set-e2generation set-e2generation file generation (generation) ext2 . "get-e2generation" . set-e2label set-e2label device label ext2/3/4 "device" "label" . . "tune2fs-l" "get-e2label" . . "set-label" . API . set-e2uuid set-e2uuid device uuid UUID ext2/3/4 "device" "uuid" . UUID "clear" "random" "time" tune2fs(8) . "vfs-uuid" UUID . . "set-uuid" . API . set-hv hv set-hv hv . qemu/KVM . "LIBGUESTFS_HV" . . qemu ( "qemu -help") . qemu . "LIBGUESTFS_HV" qemu . set-identifier identifier set-identifier identifier . . (tracing) . : libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" : libguestfs: trace: ID: get_tmpdir libguestfs: trace: ID: get_tmpdir = "/tmp" "ID" . - . . : "set-program" "set-trace" "get-identifier". set-label set-label mountable label "mountable" "label" . libguestfs . ext2, ext3, ext4 . NTFS . XFS . (mounted) . btrfs . (subvolume) btrfs . . fat . swap . set_label errno ENOTSUP . "vfs-label" . set-libvirt-requested-credential set-libvirt-requested-credential index cred "index"- libvirt . " LIBVIRT" guestfs(3) . set-libvirt-supported-credentials set-libvirt-supported-credentials 'creds ...' (event handler) "GUESTFS_EVENT_LIBVIRT_AUTH" . "creds" . : "username" "authname" "language" "cnonce" "passphrase" "echoprompt" "noechoprompt" "realm" "external" libvirt . " LIBVIRT" guestfs(3) . set-memsize memsize set-memsize memsize . "launch" . "LIBGUESTFS_MEMSIZE" . libguestfs guestfs(3) . set-network network set-network true|false "network" true libguestfs . false . ( " " guestfs(3) ). "launch" . set-path path set-path searchpath libguestfs kernel initrd.img . "$libdir/guestfs" "LIBGUESTFS_PATH" . "path" "NULL" . set-pgroup pgroup set-pgroup true|false "pgroup" true . "SIGINT" ( "^C" ) . false "^C" . Guestfish true "^C" ( "user-cancel" ). set-program program set-program program . . (basename) "argv[0]" . "NULL" . set-qemu qemu set-qemu hv ( qemu) . "LIBGUESTFS_HV" . "hv" "NULL" qemu . . qemu ( "qemu -help") . qemu . "LIBGUESTFS_HV" qemu . . "set-hv" . API . set-recovery-proc recovery-proc set-recovery-proc true|false "false" "launch" (recovery process) . . "launch" true . ("" ). . set-selinux selinux set-selinux true|false selinux . "selinux=0" () . SELinux Permissive ("enforcing=0"). libguestfs guestfs(3) . . "selinux-relabel" . API . set-smp smp set-smp smp . 1 . . "launch" . set-tmpdir tmpdir set-tmpdir tmpdir . "LIBGUESTFS_TMPDIR" "TMPDIR" : "LIBGUESTFS_TMPDIR" . "TMPDIR" . /tmp . set-trace trace set-trace true|false 1 libguestfs . C API libguestfs ( ) ltrace(1) . "LIBGUESTFS_TRACE" 1 . "stderr" ( "set-event-callback" ). set-uuid set-uuid device uuid UUID "device" "uuid" . errno ENOTSUP UUID . UUID . UUID "vfs-uuid" . set-uuid-random set-uuid-random device UUID "device" UUID . errno ENOTSUP UUID . UUID . UUID "vfs-uuid" . set-verbose verbose set-verbose true|false "verbose" true (verbose) . "LIBGUESTFS_DEBUG" 1 . "stderr" ( "set-event-callback" ). setcon setcon context SELinux "context" . SELINUX guestfs(3) . . "selinux-relabel" . API . "selinux" . "feature-available". setfiles setfiles specfile 'paths ...' [force:true|false] "setfiles" SELinux . "specfile" . "/etc/selinux/config" SELinux : "/etc/selinux/" + selinuxtype + "/contexts/files/file_contexts". "paths" . "setfiles" "/" . setfiles . "force" . . " " . "selinuxrelabel" . "feature-available". setxattr setxattr xattr val vallen path "xattr" "path" "val" ( "vallen") . . : "lsetxattr" attr(5). "linuxxattrs" . "feature-available". sfdisk sfdisk device cyls heads sectors 'lines ...' sfdisk(8) . "device" /dev/sda. "cyls" "heads" "sectors" sfdisk(8) -C -H -S . 0 . "" 0 ( ) sfdisk(8) ( ) . "lines" sfdisk(8) . sfdisk(8) . "lines" "," () . : "sfdisk-l" "sfdisk-N" "part-init" . "part-add" . API . sfdiskM sfdiskM device 'lines ...' "sfdisk" ( ) cyls heads sectors . : "sfdisk" sfdisk(8) "part-disk" . "part-add" . API . sfdisk-N sfdisk-N device partnum cyls heads sectors line sfdisk(8) "n" (: "n" ). "sfdisk" . 0 cyls/heads/sectors . : "part-add" . "part-add" . API . sfdisk-disk-geometry sfdisk-disk-geometry device (geometry) "device" . ("sfdisk-kernel-geometry" ). . sfdisk-kernel-geometry sfdisk-kernel-geometry device "device" . . sfdisk-l sfdisk-l device "device" sfdisk(8) . . : "part-list" . "part-list" . API . sh sh command /bin/sh . "command" : /bin/sh -c "command" (wildcards) . "command" . sh-lines sh-lines command "sh" . : "command-lines" sh-out sh-out command (output|-) "sh" (stream) . : "command-out" "-" / (stdin) / (stdout) . shutdown shutdown "launch" . () . autosync ( ) . ( ). . . . "close" . "close" . sleep sleep secs "secs" ( ). stat stat path "path" . stat(2) . . "statns" . API . statns statns path "path" . stat(2) . statvfs statvfs path . "path" ( ). statvfs(2) . strings strings path strings(1) . "strings" . libguestfs "CVE-2014-8484" guestfs(3) . . "PROTOCOL LIMITS" guestfs(3) . strings-e strings-e encoding path "strings" "path" . : s - ASCII ASCII ISO-8859-X ( "strings" ). S -. b - big endian UTF-16BE UCS-2BE . l ( L) - little endian UTF-16LE UCS-2LE. . B - big endian UCS-4BE. L - little endian UCS-4LE. UTF-8 . "strings" . libguestfs "CVE-2014-8484" guestfs(3) . . "PROTOCOL LIMITS" guestfs(3) . swapoff-device swapoff-device device "device" libguestfs . "swapon-device" . swapoff-file swapoff-file file libguestfs . swapoff-label swapoff-label label libguestfs . swapoff-uuid swapoff-uuid uuid UUID libguestfs . "linuxfsuuid" . "feature-available" . swapon-device swapon-device device libguestfs "device" . "command" "sh" . . . . . swapon-file swapon-file file . "swapon-device" . swapon-label swapon-label label . "swapon-device" . swapon-uuid swapon-uuid uuid UUID . "swapon-device" . "linuxfsuuid" . "feature-available" . sync sync (flush) . . syslinux syslinux device [directory:..] SYSLINUX "device" . device FAT FAT . "" ("part-set-bootable") Master Boot Record ( "pwrite-device") . SYSLINUX Master Boot Record . syslinux(1) . : directory SYSLINUX FAT. syslinux.cfg FAT directory SYSLINUX . syslinux(1) . "extlinux" . . "OPTIONAL ARGUMENTS" . "syslinux" . "feature-available" . tail tail path . . "PROTOCOL LIMITS" guestfs(3) . tail-n tail-n nrlines path "nrlines" "nrlines" "path" . "nrlines" "path" "-nrlines" . "nrlines" . . "PROTOCOL LIMITS" guestfs(3) . tar-in tar-in-opts tar-in (tarfile|-) directory [compress:..] [xattrs:true|false] [selinux:true|false] [acls:true|false] [keepdirlink:true|false] "tarfile" directory . "compress" . tar . : "compress" "gzip" "bzip2" "xz" "lzop" "lzma" "zstd". ( libguestfs ). : "xattrs" true (extended attributes) tar . "selinux" true SELinux tar . "acls" true (POSIX ACLs) tar . "keepdirlink" true tar . usrmerge /lib /usr/lib . "-" / (stdin) / (stdout) . . "OPTIONAL ARGUMENTS" . tar-out tar-out-opts tar-out directory (tarfile|-) [compress:..] [numericowner:true|false] [excludes:..] [xattrs:true|false] [selinux:true|false] [acls:true|false] directory "tarfile" . "compress" . tar . : "compress" "gzip" "bzip2" "xz" "lzop" "lzma" "zstd". ( libguestfs ). : "excludes" (wildcards). . "numericowner" true tar / UID/GID . "xattrs" true tar . "selinux" true SELinux tar . "acls" true (POSIX ACLs) tar . "-" / (stdin) / (stdout) . . "OPTIONAL ARGUMENTS" . tgz-in tgz-in (tarball|-) directory "tarball" ( tar gzip) directory . "-" / (stdin) / (stdout) . . "tar-in" . API . tgz-out tgz-out directory (tarball|-) directory "tarball" . "-" / (stdin) / (stdout) . . "tar-out" . API . touch touch path Touch touch(1) . . . truncate truncate path "path" . . truncate-size truncate-size path size "path" "size" . . "size" . (sparse file) ( ). "fallocate64" . tune2fs tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N] ext2/ext3/ext4 "device" . : "force" tune2fs . "-f" tune2fs(8) . "maxmountcount" e2fsck(8) . 0 . "-c" tune2fs(8) . "mountcount" . "-C" tune2fs(8) . "errorbehavior" . : "continue" "remount-ro" "panic". . "-e" tune2fs(8) . "group" . "-g" tune2fs(8) . "intervalbetweenchecks" ( ). 0 . "-i" tune2fs(8) . "reservedblockspercentage" ( ) . "-m" tune2fs(8) . "lastmounteddirectory" . "-M" tune2fs(8) . "reservedblockscount" . -r tune2fs(8) . "user" . "-u" tune2fs(8) . "tune2fs-l" . tune2fs tune2fs(8) . . "OPTIONAL ARGUMENTS" . tune2fs-l tune2fs-l device ext2 ext3 ext4 "device" . "tune2fs -l device" . tune2fs(8) . "tune2fs" libguestfs . txz-in txz-in (tarball|-) directory "tarball" ( tar xz) directory . "-" / (stdin) / (stdout) . . "tar-in" . API . "xz" . "feature-available" . txz-out txz-out directory (tarball|-) directory "tarball" ( tar xz). "-" / (stdin) / (stdout) . . "tar-out" . API . "xz" . "feature-available" . umask umask mask "mask & 0777" . umask 022 "-rw-r--r--" "-rwxr-xr-x" 002 "-rw-rw-r--" "-rwxrwxr-x" . umask 022 . 0644 0755 0777 . : "get-umask" umask(2) "mknod" "mkdir". umask . umount unmount umount-opts umount pathordevice [force:true|false] [lazyunmount:true|false] (unmount) . () . . "OPTIONAL ARGUMENTS" . umount-all unmount-all umount-all . . umount-local umount-local [retry:true|false] libguestfs . "MOUNT LOCAL" guestfs(3) . . "OPTIONAL ARGUMENTS" . upload upload (filename|-) remotefilename filename remotefilename . filename (named pipe) . "download" . "-" / (stdin) / (stdout) . upload-offset upload-offset (filename|-) remotefilename offset filename remotefilename . remotefilename "offset" . "" (hole) "offset" . filename . "pwrite" . "upload" "pwrite" . "-" / (stdin) / (stdout) . user-cancel user-cancel (upload) (download) . libguestfs (signal safe) (thread safe) . (signal handler) . ( ) . errno ("guestfs_last_errno" ) "EINTR" . : . . "user-cancel" : "SIGINT" "^C" . ( "set-pgroup" "^C" ). . utimens utimens path atsecs atnsecs mtsecs mtnsecs . "atsecs" "atnsecs" (atime) (epoch) . "mtsecs" "mtnsecs" (mtime) (epoch) . *nsecs -1 . ( *secs ). *nsecs -2 . ( *secs ). utsname utsname . . API . version version libguestfs . (dynamic linking) libguestfs . libguestfs.so . 1.0.58 . libguestfs . C ( ). . ("major" "minor" "release") . ("extra") . : "$major.$minor.$release$extra" : "LIBGUESTFS VERSION NUMBERS" guestfs(3). : . (backport) . "available" "feature-available" . vfs-label vfs-label mountable "mountable" . . "findfs-label" . vfs-minimum-size vfs-minimum-size mountable . (shrinking) . errno ENOTSUP . : ntfsresize(8) resize2fs(8) btrfs(8) xfs_info(8). vfs-type vfs-type mountable "mountable" . VFS . "ext3" "ntfs". vfs-uuid get-uuid vfs-uuid mountable UUID "mountable" . UUID . UUID "findfs-uuid" . vg-activate vg-activate true|false 'volgroups ...' "volgroups" ( "activate" false ) . "vgchange -a y|n volgroups..." . "volgroups" . "lvm2" . "feature-available" . vg-activate-all vg-activate-all true|false ( "activate" false ) . "vgchange -a y|n" . "lvm2" . "feature-available" . vgchange-uuid vgchange-uuid vg UUID "vg" . "lvm2" . "feature-available" . vgchange-uuid-all vgchange-uuid-all UUID . "lvm2" . "feature-available" . vgcreate vgcreate volgroup 'physvols ...' LVM "volgroup" "physvols" . "lvm2" . "feature-available" . vglvuuids vglvuuids vgname VG "vgname" UUID . "lvs" "lvuuid" . "vgpvuuids" . vgmeta vgmeta vgname "vgname" LVM . () . LVM . "lvm2" . "feature-available" . vgpvuuids vgpvuuids vgname VG "vgname" (UUID) . "pvs" "pvuuid" . "vglvuuids" . vgremove vgremove vgname LVM "vgname" ( "VG"). ( ) . "lvm2" . "feature-available" . vgrename vgrename volgroup newvolgroup "volgroup" "newvolgroup". vgs vgs . vgs(8) . ( "VolGroup00"). "vgs-full" . "lvm2" . "feature-available" . vgs-full vgs-full . vgs(8) . "full" . "lvm2" . "feature-available" . vgscan vgscan LVM. . "lvm-scan" . API . vguuid vguuid vgname UUID VG "vgname" LVM . wc-c wc-c path "wc -c" . wc-l wc-l path "wc -l" . wc-w wc-w path "wc -w" . wipefs wipefs device RAID "device" libblkid . "device" . "zero" . "wipefs" . "feature-available" . write write path content "path" . "content" ( ). "write-append" . write-append write-append path content "content" "path" . "path" . "write" . write-file write-file path content size "path" . "content" ( ) "size" . "size" 0 "strlen" ( NUL ). : NUL . . "PROTOCOL LIMITS" guestfs(3) . . "write" . API . xfs-admin xfs-admin device [extunwritten:true|false] [imgfile:true|false] [v2log:true|false] [projid32bit:true|false] [lazycounter:true|false] [label:..] [uuid:..] XFS "device". (mount) . (unmount) . "xfs-info" "xfs-growfs" . XFS lazy-counters ( "lazycounter" ). . " (OPTIONAL ARGUMENTS)" . "xfs" . "feature-available" . xfs-growfs xfs-growfs path [datasec:true|false] [logsec:true|false] [rtsec:true|false] [datasize:N] [logsize:N] [rtsize:N] [rtextsize:N] [maxpct:N] XFS "path". . " (OPTIONAL ARGUMENTS)" . "xfs" . "feature-available" . xfs-info xfs-info pathordevice "pathordevice" XFS XFS . XFS . . -1 ( ) . . "xfs-info2" . API . "xfs" . "feature-available" . xfs-info2 xfs-info2 pathordevice "pathordevice" XFS XFS . XFS . xfs_info(8) : meta-data: /dev/sda1 meta-data.isize: 512 meta-data.agcount: 4 meta-data.agsize: 65528 blks meta-data.sectsz: 512 meta-data.attr: 2 meta-data.projid32bit: 1 meta-data.crc: 1 [...] data.bsize: 4096 data.blocks: 262112 [...] xfs_info(8) . "xfs" . "feature-available" . xfs-repair xfs-repair device [forcelogzero:true|false] [nomodify:true|false] [noprefetch:true|false] [forcegeometry:true|false] [maxmem:N] [ihashsize:N] [bhashsize:N] [agstride:N] [logdev:..] [rtdev:..] XFS "device". "device" . "xfs_repair" . (unmount) . ( 1) ( 0). . " (OPTIONAL ARGUMENTS)" . "xfs" . "feature-available" . yara-destroy yara-destroy Yara libguestfs. "libyara" . "feature-available" . yara-load yara-load (filename|-) Yara filename. Yara . "yara-scan" . ( yarac ) . . . . . / (stdin) (stdout) "-" . "libyara" . "feature-available" . yara-scan yara-scan path Yara . "yara_detection" . "yara_detection" : "yara_name" Yara . "yara_rule" Yara . "libyara" . "feature-available" . zegrep zegrep regex path "zegrep" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . zegrepi zegrepi regex path "zegrep -i" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . zero zero device "device" . ( ). . . (non-sparse) . : "zero-device", "scrub-device", "is-zero-device". zero-device zero-device device "device" . "zero" . . (non-sparse) . zero-free-space zero-free-space directory directory. - . . "trim" . "fstrim" . zerofree zerofree device zerofree "device" . ext2/3 . (mount) . . "zerofree" . "feature-available" . zfgrep zfgrep pattern path "zfgrep" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . zfgrepi zfgrepi pattern path "zfgrep -i" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . zfile zfile meth path "path" "meth" file(1) . "meth" "gzip" "compress" "bzip2" . 1.0.63 "file" . . "file" . API . zgrep zgrep regex path zgrep(1) . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . zgrepi zgrepi regex path "zgrep -i" . . "PROTOCOL LIMITS" guestfs(3) . . "grep" . API . (EXIT STATUS) guestfish 0 1 . (ENVIRONMENT VARIABLES) EDITOR "edit" $EDITOR . "vi" . GUESTFISH_DISPLAY_IMAGE "display" $GUESTFISH_DISPLAY_IMAGE . display(1) . GUESTFISH_INIT guestfish . " (PROMPT)" . GUESTFISH_OUTPUT guestfish . " (PROMPT)" . GUESTFISH_PID --remote guestfish . " guestfish (REMOTE CONTROL GUESTFISH OVER A SOCKET)" . GUESTFISH_PS1 (). " (PROMPT)" . GUESTFISH_RESTORE guestfish . " (PROMPT)" . HEXEDITOR "hexedit" $HEXEDITOR . hexedit(1) . HOME GNU readline . " (FILES)" . LIBGUESTFS_APPEND () . LIBGUESTFS_ATTACH_METHOD "LIBGUESTFS_BACKEND" . LIBGUESTFS_BACKEND (appliance). "guestfs_set_backend" guestfs(3) . LIBGUESTFS_BACKEND_SETTINGS . "BACKEND" guestfs(3) "BACKEND SETTINGS" guestfs(3) . LIBGUESTFS_CACHEDIR libguestfs supermin . (effective user ID) . "LIBGUESTFS_CACHEDIR" "TMPDIR" . "TMPDIR" /var/tmp . "LIBGUESTFS_TMPDIR" "set-cachedir" . LIBGUESTFS_DEBUG "LIBGUESTFS_DEBUG=1" . -v . LIBGUESTFS_HV ( qemu) libguestfs . qemu . LIBGUESTFS_MEMSIZE qemu . : LIBGUESTFS_MEMSIZE=700 LIBGUESTFS_PATH guestfish initrd.img . guestfs(3) . LIBGUESTFS_QEMU "LIBGUESTFS_HV" . LIBGUESTFS_TMPDIR libguestfs . "LIBGUESTFS_TMPDIR" "TMPDIR" . "TMPDIR" /tmp . "LIBGUESTFS_CACHEDIR" "set-tmpdir" . LIBGUESTFS_TRACE "LIBGUESTFS_TRACE=1" . PAGER "more" $PAGER . "more" . PATH Libguestfs guestfish $PATH . libvirt $PATH qemu/KVM libvirt . SUPERMIN_KERNEL SUPERMIN_KERNEL_VERSION SUPERMIN_MODULES libguestfs . $SUPERMIN_KERNEL . supermin(1) . TMPDIR "LIBGUESTFS_CACHEDIR" "LIBGUESTFS_TMPDIR" . XDG_RUNTIME_DIR . PID . /tmp . "get-sockdir" http://www.freedesktop.org/wiki/Specifications/basedir-spec . (FILES) $XDG_CONFIG_HOME/libguestfs/libguestfs-tools.conf $HOME/.libguestfs-tools.rc $XDG_CONFIG_DIRS/libguestfs/libguestfs-tools.conf /etc/libguestfs-tools.conf - (--ro --rw) . libguestfs-tools.conf(5) . $HOME/.guestfish GNU readline . $HOME/.inputrc /etc/inputrc GNU readline readline . "INITIALIZATION FILE" readline(3) . guestfish : $if guestfish ... $endif inputrc guestfish : completion-ignore-case (: on) guestfish Tab . : set completion-ignore-case off guestfish . test1.img test2.img ( ) -N --new test1.img . -N test2.img . . "filename=" . (SEE ALSO) guestfs(3), http://libguestfs.org, virt-alignment-scan(1), virt-builder(1), virt-builder-repository(1), virt-cat(1), virt-copy-in(1), virt-copy-out(1), virt-customize(1), virt-df(1), virt-diff(1), virt-edit(1), virt-filesystems(1), virt-inspector(1), virt-list-filesystems(1), virt-list-partitions(1), virt-log(1), virt-ls(1), virt-make-fs(1), virt-p2v(1), virt-rescue(1), virt-resize(1), virt-sparsify(1), virt-sysprep(1), virt-tail(1), virt-tar(1), virt-tar-in(1), virt-tar-out(1), virt-v2v(1), virt-win-reg(1), libguestfs-tools.conf(5), display(1), hexedit(1), supermin(1). (AUTHORS) Richard W.M. Jones ("rjones at redhat dot com") (COPYRIGHT) Copyright (C) 2009-2025 Red Hat Inc. (LICENSE) << >> (GNU GPL) << >> ( ) . . << >> . : Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. (BUGS) libguestfs : https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools libguestfs : https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools : o libguestfs. o libguestfs ( ). o . o libguestfs-test-tool(1) . libguestfs-1.60.1 2026-07-14 guestfish(1)