Follow these steps to build and run the RustKernel project. Ensure that you have Rust installed on your system. If not, you can install it from rustup.rs.
Make sure you have the nightly version of Rust installed:
rustup override set nightly
To build the project, run:
cargo build
To create a bootable disk image, use the following command:
cargo bootimage
If you don't have QEMU installed, you can install it using Homebrew:
brew install qemu
To run the disk image on QEMU, use the command:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-RustKernel/debug/bootimage-RustKernel.bin
To run all the tests, use the command:
cargo test
To run the operating system in QEMU, use the command:
cargo run
-
Pull the Image from Docker Hub:
docker pull mohitvermaexe/rustkernel
-
Run the Container Using This Command:
docker run --name rustkernel-container -p 5900:5900 -p 55556:55555 -p 1234:1234 rustkernel
-
Use a VNC Viewer to View: Open your VNC viewer and connect to
127.0.0.1:5900
on your host. I am using VNC Viewer for this.
- The Rust Programming Language
- Operating System Concepts (10th Edition, 2018)
- OSDev: Writing an Operating System in Rust
- Learn About Operating Systems in Depth
- Multitasking Operating System - JavaTpoint