qemu 无法连接只读驱动器

qemu 无法连接只读驱动器

我正在运行 Ubuntu 19.10 安装 ( 5.3.0-42-generic #34-Ubuntu SMP Fri Feb 28 05:49:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux),并尝试启动真正的本地 Windows 10 安装。第一步(我认为)是连接 EFI 分区。我正在尝试这个: sudo qemu-system-x86_64 -drive file=fat:/boot/efi/,format=raw,readonly 输出: qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] qemu-system-x86_64: Initialization of device ide-hd failed: Block node is read-only 其中 /boot/efi 是以下内容 /dev/nvme0n1p2 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

答案1

下列的这个建议在 Debian 错误邮件列表上,我能够通过使 VFAT 设备读/写来使其工作:

qemu-system-x86_64 -drive file=fat:rw:/boot/efi/,format=raw

如果您需要确保文件不被修改,我不确定除了复制到临时文件夹之外还有其他好的解决方法。

相关内容