rust-osdev / rust-osdev/bootimage

Failed to execute "cargo run" but the binary file was built and can be run manually.

Open
#110 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
906
Forks
70
PR merge metrics
No merged PRs in 30d

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
rust
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.