virt-rescue(1) Virtualization Support virt-rescue(1) (NAME) virt-rescue - (SYNOPSIS) virt-rescue [--options] -d domname virt-rescue [--options] -a disk.img [-a disk.img ...] [-i] : virt-rescue [--options] domname virt-rescue [--options] disk.img [disk.img ...] "virt-rescue" (write mode) (live) . . "virt-rescue" --ro () . . (DESCRIPTION) virt-rescue (Rescue CD) CD. virt-rescue . virt-rescue libvirt () : virt-rescue -d GuestName -i virt-rescue --ro -a /path/to/disk.img -i virt-rescue -a /dev/sdc (live) --ro . virt-rescue bash . / (/bin /lib ) (rescue appliance) . (mount) . /sysroot . /sysroot -i . (inspection) libguestfs . -m . ( lvs(8)) ( parted(8)) : > lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert lv_root vg_f15x32 -wi-a- 8.83G lv_swap vg_f15x32 -wi-a- 992.00M > mount /dev/vg_f15x32/lv_root /sysroot > mount /dev/vda1 /sysroot/boot > ls /sysroot virt-filesystems(1) . ( grub) /sysroot chroot : > chroot /sysroot (NOTES) Virt-rescue . ( guestfish(1) ). virt-rescue USB SD . virt-rescue () (scratch disks) . ( --scratch ). Virt-rescue (root) . root root . . guestfs(3) . guestfish(1) ..SH " (OPTIONS)" --help . -a FILE --add FILE "FILE" . -a . . --format=.. . -a URI --add URI . <> guestfish(1) . --append KERNELOPTS rescue. --blocksize=512 --blocksize=4096 --blocksize . . --blocksize . <> guestfs(3) . -c URI --connect URI libvirt URI . hypervisor libvirt . (-a) libvirt . -d guest --domain guest libvirt . UUID . -e none (escape key). -e KEY . "^]" . : "^x" Control + "x". "none" -e none . <> . --format=raw|qcow2|.. --format -a . -a . --format -a . : virt-rescue --format=raw -a disk.img raw disk.img . virt-rescue --format=raw -a disk.img --format -a another.img raw disk.img another.img . raw . (CVE-2010-3851). -i --inspector virt-inspector(1) . /sysroot rescue . --memsize MB rescue. libguestfs . . . -m dev[:mountpoint[:options[:fstype]]] --mount dev[:mountpoint[:options[:fstype]]] ( ). / . / . rescue /sysroot . ( ) mount . "ro" ( --ro ). . ACL / (extended attributes) : -m /dev/sda1:/:acl,user_xattr "ext3" "ntfs". (: "ext2" "ext3") libguestfs . --network QEMU . <> . -r --ro . . <> guestfish(1) . --scratch --scratch=N --scratch (scratch) rescue . --scratch=N "N" . () virt-rescue . -a -d --scratch . () ..IP --selinux 4 . --smp N N >= 2 (rescue appliance). --suggest virt-rescue /sysroot (mount) . virt-rescue -i . --ro virt-rescue . -v --verbose (verbose) . -V --version . -w --rw -a -d -m (mount) / (read-write) . <> guestfish(1) . -x (tracing) API libguestfs. (OLD-STYLE COMMAND LINE ARGUMENTS) virt-rescue : virt-rescue disk.img [disk.img ...] virt-rescue guestname -a -d . . (NETWORK) --network QEMU . : ping ICMP ECHO_REQUEST ping (root) virt-rescue QEMU ping(8) . ping (resolve) . . QEMU . TCP virt-rescue telnet(1) . /dev/tcp// TCP : exec 3<>/dev/tcp/redhat.com/80 echo "GET /" >&3 cat <&3 bash(1) ..SH " (ESCAPE KEY)" virt-rescue "^]" ( Control + "]") . -e ( ) -e none . . : "^] ?" "^] h" . "^] i" (inspection) libguestfs . -i virt-rescue . "^] q" "^] x" virt-rescue . "^] s" (sync). "^] u" (/appliance) (unmount). "^] z" virt-rescue ( "^Z" virt-rescue ). "^] ^]" "^]" ( 0x1d) . CORE DUMP (CAPTURING CORE DUMPS) virt-rescue ( virt-rescue) (segfault) core dump virt-rescue . . 1. (scratch disk) core dump : truncate -s 4G /tmp/corefiles virt-format --partition=mbr --filesystem=ext2 -a /tmp/corefiles virt-filesystems -a /tmp/corefiles --all --long -h 2. virt-rescue core : virt-rescue --rw [-a ...] -a /tmp/corefiles : --ro virt-rescue core /tmp/corefiles . 3. virt-rescue core (mount) . /dev/sdb1 . core /dev/sdd1 . > mkdir /tmp/mnt > mount /dev/sdb1 /tmp/mnt 4. core dump rescue : > echo '/tmp/mnt/core.%p' > /proc/sys/kernel/core_pattern > ulimit -Hc unlimited > ulimit -Sc unlimited 5. core dump . core dump /tmp/mnt/core.PID . > ls -l /tmp/mnt total 1628 -rw------- 1 root root 1941504 Dec 7 13:13 core.130 drwx------ 2 root root 16384 Dec 7 13:00 lost+found 6. virt-rescue ( sync) : > umount /tmp/mnt > exit 7. virt-rescue () core dump guestfish(1) . : guestfish --ro -a /tmp/corefiles -m /dev/sda1 > ll / > download /core.NNN /tmp/core.NNN virt-rescue . <> guestfs(3) . (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) . (SEE ALSO) guestfs(3), guestfish(1), virt-cat(1), virt-edit(1), virt-filesystems(1), libguestfs-tools.conf(5), http://libguestfs.org. (AUTHORS) Richard W.M. Jones http://people.redhat.com/~rjones (COPYRIGHT) Copyright (C) 2009-2025 Red Hat Inc. (LICENSE) << >> (GNU General Public License) / ( ) . . << >> . << >> : 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 virt-rescue(1)