Copy to ClipboardCopied!Toggle word wrapToggle overflow
(其中 GuestName 是 libvirt 已知的客户端名称),或:
virt-rescue /path/to/disk/image
virt-rescue /path/to/disk/image
Copy to ClipboardCopied!Toggle word wrapToggle overflow
(其中该路径可以是任意文件、任何逻辑卷、LUN 等等),其中包含客户机虚拟机磁盘。
您将首先看到输出滚动,因为 virt-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