start_qemu.sh脚本报 Drive 'hd0' is already in use问题 #2

Open
opened 2026-04-28 15:53:27 +00:00 by HeviLUO · 0 comments

报错如下:
qemu-system-riscv64: -drive file=rootfs.ext2,format=raw,id=hd0: Drive 'hd0' is already in use because it has been automatically connected to another device (did you need 'if=none' in the drive options?)​

目前已测试在以下两个版本的环境存此在问题:
Ubuntu 26.04 qemu 10.2.1
ArchLinux qemu 11.0.0

建议修改package/rootfs-ext2/make.sh,在id=hd0后增加if=none

报错如下: qemu-system-riscv64: -drive file=rootfs.ext2,format=raw,id=hd0: Drive 'hd0' is already in use because it has been automatically connected to another device (did you need 'if=none' in the drive options?)​ 目前已测试在以下两个版本的环境存此在问题: Ubuntu 26.04 qemu 10.2.1 ArchLinux qemu 11.0.0 建议修改package/rootfs-ext2/make.sh,在id=hd0后增加if=none
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openRuyi-tutorials/build-linux-system-from-scratch#2