关闭。这个问题不符合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/