ubuntu - qemu-system-x86_64 : Initialization of device ide-cd failed: Failed to get shared "write" lock

标签 ubuntu debian virtualization desktop qemu

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


9 个月前关闭。







Improve this question




所以我试图在 Qemu 上下载 Ubuntu,并将这个命令写入 cmd:

qemu-system-x86_64 -hda ubuntu-20.04.3-desktop-amd64.iso -boot d -cdrom /home/pi/Downloads/ubuntu-20.04.3-desktop-amd64.iso -m 640
但是当我执行它时,终端给了我这个错误:
Unable to init server: Could not connect: Connection refused
WARNING: Image format was not specified for 'ubuntu-20.04.3-desktop-amd64.iso' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-x86_64: Initialization of device ide-cd failed: Failed to get shared "write" lock
Is another process using the image [/home/pi/Downloads/ubuntu-20.04.3-desktop-amd64.iso]?
我该怎么办?!

最佳答案

您的命令行尝试使用相同的文件 (ubuntu-20.04.3-desktop-amd64.iso) 作为硬盘 ("-hda") 和 crdom ("-cdrom")。 QEMU 提示是因为它检查它要写入的文件(对于硬盘)没有被其他东西读取(在这种情况下,与 CDROM 相同的 QEMU 进程)。
'-hda' 参数需要是其他东西,例如您创建的空磁盘镜像作为新的模拟 guest 硬盘。

关于ubuntu - qemu-system-x86_64 : Initialization of device ide-cd failed: Failed to get shared "write" lock,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69309204/

相关文章:

mysql - Linux、Ubuntu - 负载非常高但不使用 cpu/ram

virtual-machine - 将 VMDK 文件转换为压缩 RAW 文件

ubuntu - 无法访问我的 redis 实例

python - 如何在开发机器上强制导入错误? (密码模块)

ubuntu - 在 ubuntu 上出现错误 : Command 'sudo' is available in '/usr/bin/sudo'

c - mmap() 失败,而 devme2 成功 (C/CPP) [Allwinner A20]

linux - 命令 : tail file. txt '

linux - Ubuntu 中的 Cron 作业

networking - 如何解决 "Device 0 (vif) could not be connected. Hotplug scripts not working."?

shared-memory - 将 IVSHMEM 与 libvirt virt-manager 结合使用