rust-osdev / rust-osdev/bootimage
cargo xtest doesn't work under WSL1 with native QEMU
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 906
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
- Install QEMU natively on Windows
- Under WSL setup cargo
- In
~/bin/qemu-system-x86_64putexec /mnt/c/Program\ Files/qemu/qemu-system-x86_64.exe "$@"and make the file executable - run
cargo xrun - run
cargo xtest
The xrun command works because it provides a relative path to the target to run to qemu. However xtest fails because it provides an absolute path which native QEMU doesn't understand. Passing a relative path just like xrun does should fix the issue.
Running: `qemu-system-x86_64 -drive format=raw,file=/mnt/c/projects/blog_os/target/x86_64-blog_os/debug/deps/bootimage-blog_os-f9b6181f9decdfac.bin -device isa-debug-exit,iobase=0xf4,iosize=0x04 -serial stdio -display none`
C:\Program Files\qemu\qemu-system-x86_64.exe: -drive format=raw,file=/mnt/c/projects/blog_os/target/x86_64-blog_os/debug/deps/bootimage-blog_os-f9b6181f9decdfac.bin: Could not open '/mnt/c/open/blog_os/target/x86_64-blog_os/debug/deps/bootimage-blog_os-f9b6181f9decdfac.bin': The system cannot find the path specified.
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.
Research direction
Reproduce the issue under WSL1 with native QEMU using the documented cargo xrun and cargo xtest commands. Compare how xrun and xtest pass the target path to QEMU; done means xtest passes a relative path that native QEMU can open and the test command succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100