无法通过 USB 启动

无法通过 USB 启动

我在 Debian10 VM 上安装了一个 Live USB Debian11,sda通过virt-manager.当我重新启动虚拟机时,如何加载此 Live USB?当 grub 出现时,我按E,进入 grub 屏幕并看到:

linux /boot/vmlinuz-4.19.0-13-amd64
initrd /boot/initrd.img-4.19.0-13-amd64

当我在 GUI 中加载 Debian10 VM 时,我看到了 Live USB。

更新:“单击启动选项”是我错过的。因此,我在启动 USB 上启用了 USB 设备8644:800e,并首先重新启动了虚拟机,启动时8644:800e未保存。然后我重新启动了 virt-manager。同样的事情8644:800e没有启动。所以我重新启动了服务器,现在得到:

Unable to connect to libvirt qemu:///system

error from service: CheckAuthorization: Did not receive a reply.  Possible causes include: the remote application dod not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Unable to connect to libvirt qemu:///system.

error from service: CheckAuthorization: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 1036, in _do_open
        self._backend.open(self._do_creds_password)
  File "/usr/share/virt-manager/virtinst/connection.py", line 144, in open
        open_flags)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 104, in openAuth
        if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: error from service: CheckAuthorization: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

答案1

  1. 将 USB 记忆棒插入主机系统并检查其安装情况
  2. 打开虚拟机 - 不要启动它
  3. 单击信息按钮
  4. 选择 USB 重定向器 1,然后单击添加硬件
  5. 在 USB 主机设备下的硬件列表中,选择您的 USB 记忆棒
  6. 单击“完成”
  7. 单击启动选项
  8. 启用 USB 记忆棒并将其移至列表顶部

当您启动 VM 时,它会按预期从 USB 引导。

在启动设备顺序下,您还可以看到 SATA CDROM 1。您可以将 ISO 文件直接加载到虚拟 CDROM 并将其标记为启动顺序中的第一个,而不是使用 USB 记忆棒。使用这两种方法,我的虚拟机正确启动,安装程序启动,我能够继续进行。我没有执行此操作,因为我不想擦除我的 Win 10 虚拟机。

我准确地记下了我采取的步骤。也许USB不需要安装——我的USB是自动安装的,而且我没有费心卸载它。 USB Redirector 2 可能也能正常工作。

相关内容