Skip to content

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

Description

@L3yu3D0r

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions