Virt-rescue
Jump to navigation
Jump to search
virt-rescue
- Run a rescue shell on a virtual machine
virt-rescue -> fdisk -l -> mount /dev/sdXXX /sysroot
virt-rescue -a /path/to/image/debian_your_name.qcow2
virt-rescue -a /srv/libvirt/rcu-test-root.qcow2 supermin: mounting /proc supermin: ext2 mini initrd starting up: 5.1.19 Starting /init script ... [/usr/lib/tmpfiles.d/systemd.conf:11] Unknown group 'utmp'. [/usr/lib/tmpfiles.d/systemd.conf:19] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:20] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:21] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'. [/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'. Failed to parse ACL "d:group:adm:r-x": No such file or directory. Ignoring Failed to parse ACL "group:adm:r-x": No such file or directory. Ignoring Failed to parse ACL "group:adm:r--": No such file or directory. Ignoring Failed to parse ACL "d:group::r-x,d:group:adm:r-x": No such file or directory. Ignoring Failed to parse ACL "group::r-x,group:adm:r-x": No such file or directory. Ignoring Failed to parse ACL "d:group:adm:r-x": No such file or directory. Ignoring Failed to parse ACL "group:adm:r-x": No such file or directory. Ignoring Failed to parse ACL "group:adm:r--": No such file or directory. Ignoring starting version 237 /init: line 116: echo: write error: Invalid argument /init: line 116: echo: write error: Invalid argument mdadm: No arrays found in config file or automatically WARNING: Failed to connect to lvmetad. Falling back to device scanning. [ ] ------------------------------------------------------------ Welcome to virt-rescue, the libguestfs rescue shell. Note: The contents of / are the rescue appliance. You have to mount the guest's partitions under /sysroot before you can examine them. groups: cannot find name for group ID 0 ><rescue>
Related commands
Activities
See also
Advertising: