Copy to ClipboardCopied!Toggle word wrapToggle overflow
(其中 GuestName 是 libvirt 已知的 guest 名称),或者:
virt-rescue -a /path/to/disk/image
$ virt-rescue -a /path/to/disk/image
Copy to ClipboardCopied!Toggle word wrapToggle overflow
(其中,路径可以是任意文件,任意逻辑卷、LUN 等)包含客户机虚拟机磁盘。
您会看到过去滚动的输出,因为 virt-rescue 引导 rescue 虚拟机。最后会显示:
Welcome to virt-rescue, the libguestfs rescue shell.
Note: The contents of / are the rescue appliance.
You have to mount the guest virtual machine's partitions under /sysroot
before you can examine them.
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
><rescue>
Welcome to virt-rescue, the libguestfs rescue shell.
Note: The contents of / are the rescue appliance.
You have to mount the guest virtual machine's partitions under /sysroot
before you can examine them.
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
><rescue>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
此处的 shell 提示符是普通的 bash shell,提供了一定程度的普通 Red Hat Enterprise Linux 命令集。例如,您可以输入:
><rescue> fdisk -l /dev/vda
><rescue> fdisk -l /dev/vda
Copy to ClipboardCopied!Toggle word wrapToggle overflow