Skip to content

RustKernel is a project focused on building a lightweight operating system kernel using the Rust programming language.

Notifications You must be signed in to change notification settings

mohitvdx/RustKernel

Repository files navigation


RustKernel

Getting Started

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.

Prerequisites

Make sure you have the nightly version of Rust installed:

rustup override set nightly

Building the Project

To build the project, run:

cargo build

Creating a Bootable Disk Image

To create a bootable disk image, use the following command:

cargo bootimage

Installing QEMU

If you don't have QEMU installed, you can install it using Homebrew:

brew install qemu

Running the Disk Image on 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

Running Tests

To run all the tests, use the command:

cargo test

Running the OS

To run the operating system in QEMU, use the command:

cargo run

Setting Up in Your System Using Docker

  1. Pull the Image from Docker Hub:

    docker pull mohitvermaexe/rustkernel
  2. Run the Container Using This Command:

    docker run --name rustkernel-container -p 5900:5900 -p 55556:55555 -p 1234:1234 rustkernel
  3. 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.


References


About

RustKernel is a project focused on building a lightweight operating system kernel using the Rust programming language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published