Failed to execute "cargo run" but the binary file was built and can be run manually.
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- operating-systems, tooling
Research direction
Start with the documented cargo run setup and the repository's config.toml settings. Reproduce the failure on the reported Rocky Linux and Rust versions, then compare the command executed by cargo run with the manually working qemu-system-x86_64 command. Done means the documented configuration runs the built bootimage through QEMU without requiring manual execution.
Written by the indexing model from the issue text.
Description
Hello, everyone.
I'm using bootimage to develop. When I began to run "cargo run" after setting config.toml by following this, cargo gave me a error:
Running:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-kernel/debug/bootimage-kernel.bin
Error: Failed to execute QEMU run command"qemu-system-x86_64" "-drive" "format=raw,file=target/x86_64-kernel/debug/bootimage-kernel.bin": An I/O error occurred: No such file or directory (os error 2)
After running the command manually, I found that the binary file was built successfully and I can use qemu to run it.
How can I solve it?
Thanks.
System: Rocky Linux 10.2 x86_64
Rustc&Cargo Version: 1.99.0-nightly (af3d95584 2026-07-09)
Bootimage: 0.10.4
- Dominant language
- Rust
- Stars
- 906
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-osdev/bootimage
-
-Z flags not passed Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
rust-osdev/bootimage#103 · 9 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
rust-osdev/bootimage#109 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
rust-osdev/bootimage#98 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rust-osdev/bootimage#94 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rust-osdev/bootimage#93 · 1 comment ·
All issues in rust-osdev/bootimage
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug core
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW Openfuzz
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ClickHouse/ClickHouse#122114 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
linebender/vello_svg#90 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100