Editing Virt-rescue

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
<code>virt-rescue</code> - Run a rescue shell on a virtual machine
 
<code>virt-rescue</code> - Run a rescue shell on a virtual machine
  
  virt-rescue -> [[fdisk -l]] -> [[mount]] /dev/sdXXX [[/sysroot]]
+
  virt-rescue -> fdisk -l -> mount /dev/sdXXX /sysroot
  
 
  virt-rescue -a /path/to/image/debian_your_name.[[qcow2]]
 
  virt-rescue -a /path/to/image/debian_your_name.[[qcow2]]
  
== Examples ==
+
 
 
<pre>
 
<pre>
 
virt-rescue -a /srv/libvirt/rcu-test-root.qcow2
 
virt-rescue -a /srv/libvirt/rcu-test-root.qcow2
Line 44: Line 44:
 
><rescue>
 
><rescue>
 
</pre>
 
</pre>
 
 
<pre>
 
virt-rescue -a ./disk.qcow2
 
Could not access KVM kernel module: No such file or directory
 
qemu-system-x86_64: failed to initialize KVM: No such file or directory
 
qemu-system-x86_64: Back to tcg accelerator
 
supermin: mounting /proc
 
supermin: ext2 mini initrd starting up: 5.1.20
 
insmod: init_module: crc32-pclmul.ko: No such device
 
insmod: init_module: crct10dif-pclmul.ko: No such device
 
Starting /init script ...
 
[/usr/lib/tmpfiles.d/static-nodes-permissions.conf:12] Unknown group 'audio'.
 
[/usr/lib/tmpfiles.d/static-nodes-permissions.conf:13] Unknown group 'audio'.
 
[/usr/lib/tmpfiles.d/static-nodes-permissions.conf:14] Unknown group 'disk'.
 
[/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17] Unknown group 'kvm'.
 
[/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:22] Unknown user 'systemd-network'.
 
[/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'.
 
[/usr/lib/tmpfiles.d/systemd.conf:27] Unknown group 'systemd-journal'.
 
Failed to parse ACL "d:group::r-x,d:group:adm:r-x,group::r-x,group:adm:r-x": No such file or directory. Ignoring
 
Failed to parse ACL "d:group:adm:r-x,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,group::r-x,group:adm:r-x": No such file or directory. Ignoring
 
Failed to parse ACL "d:group:adm:r-x,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 245.4-4ubuntu3.4
 
/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
 
/init: line 144: lvmetad: command not found
 
mdadm: No arrays found in config file or automatically
 
[
 
]
 
lvm_system_dir = /tmp/lvm
 
 
The virt-rescue escape key is ‘^]’.  Type ‘^] h’ for help.
 
 
------------------------------------------------------------
 
 
Welcome to virt-rescue, the libguestfs rescue shell.
 
 
Note: The contents of / (root) 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>
 
</pre>
 
 
 
 
 
 
== fdisk ==
 
[[fdisk -l]]
 
Disk /dev/sda: 25 GiB, 26843545600 bytes, 52428800 sectors
 
Disk model: QEMU HARDDISK
 
Units: sectors of 1 * 512 = 512 bytes
 
Sector size (logical/physical): 512 bytes / 512 bytes
 
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
Disklabel type: gpt
 
Disk identifier: BE15153C-637B-4D56-BE22-0EF6E5F72AE5
 
 
Device    Start      End  Sectors Size Type
 
/dev/sda1  2048 52426751 52424704  25G Linux filesystem
 
 
 
Disk /dev/sdb: 4 GiB, 4294967296 bytes, 8388608 sectors
 
Disk model: QEMU HARDDISK
 
Units: sectors of 1 * 512 = 512 bytes
 
Sector size (logical/physical): 512 bytes / 512 bytes
 
I/O size (minimum/optimal): 512 bytes / 512 bytes
 
  
  
 
== Related commands ==
 
== Related commands ==
 
* <code>[[virt-resize]]</code>
 
* <code>[[virt-resize]]</code>
* <code>[[qemu-img check]]</code>
+
* <code>[[qemu-img]]</code>
  
 
== Activities ==
 
== Activities ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page:

Advertising: