Hashx86 OS

🚧 Status: Under Development

A 32-bit Multiboot Operating System for x86 Architecture

[ View on GitHub ]

[ Tutorial Series ]

> System_Info

Hashx86 is a minimalistic, educational operating system built from scratch. It focuses on core features without unnecessary complexity, serving as a foundation for exploring low-level system programming.

> Kernel_Capabilities

[ OK ] Interrupt Service Routines (ISRs)
[ OK ] GDT, IDT & PIC Management
[ OK ] Physical Memory Management (PMM)
[ OK ] Dynamic Kernel Heap (KHeap)
[ OK ] Paging & Virtual Memory
[ OK ] Multitasking & Threading
[ OK ] Ring 3 User Mode (TSS)
[ OK ] ELF Binary Loading & Execution
[ OK ] System Call Interface
[ OK ] VESA High-Res Graphics
[ OK ] Direct Video Memory Manipulation
[ OK ] Widget-based GUI Framework
[ OK ] GUI Draw Caching Optimization
[ OK ] Dynamic Resolution Switching
[ OK ] HDD Driver Implementation
[ OK ] FAT32 Filesystem Support
[ OK ] DMA / PCI Driver Framework
[ OK ] Audio Driver Support
[ OK ] Basic Event Handling (Keyboard/Mouse)

> Visual_Logs

Watch the full system demo or explore earlier demonstrations.

[FULL_DEMO] Full System Demonstration [VIDEO_01] Taskbar, Dynamic BGA Graphics & Sound [VIDEO_02] Concurrency & Error Handling [VIDEO_03] Early VGA GUI (320x200) [VIDEO_04] ISR Hardware Response Test

> Install_and_Run

Choose the installer for a ready-to-run system, or build the OS from source on Linux.

01 / Installer ISO

Download the installer ISO from the Hashx86 releases page.

  1. Create a VirtualBox VM using Other / Unknown (32-bit) and at least 1 GB RAM.
  2. Create a dynamically allocated VDI of at least 1 GB. Attach it to an IDE controller as primary master; the installer targets ATA disks.
  3. Apply the VirtualBox settings below, then mount the downloaded installer ISO in the optical drive.
  4. Start the VM. The installer formats the ATA disk and installs the OS.
  5. Eject the installer ISO and reboot to start the installed system from disk.

02 / Build from source

Build prerequisites
  • Build on Linux with git and GNU binutils (ld, ar, nm).
  • gcc / g++ with 32-bit multilib support (-m32).
  • nasm and make.
  • GRUB tools: grub-mkrescue / grub-mkimage from grub-common and grub-pc-bin.
  • xorriso and mtools for ISO generation.
  • clang-format for make check-style.
  • qemu-system-i386 and qemu-img for running the OS.
  • For the manual disk: qemu-nbd (qemu-utils), parted / partprobe, mkfs.fat (dosfstools), and sudo. The Linux host must support the nbd module.
user@linux:~/Hashx86-OS
# 1. Clone the repository
git clone https://github.com/Hashx86-OS/Hashx86-OS
cd Hashx86-OS

# 2. Create and format the 1 GB development disk
mkdir -p build
make hddinit

# 3. Build the OS and populate the disk image
make build

# 4. Boot in QEMU
make runq

The initialization step recreates build/HDD.vdi; use make build for later rebuilds. The supplied QEMU launcher starts without an audio device; use the VirtualBox sound settings below for playback.

To run this build in VirtualBox, attach build/HDD.vdi as the IDE primary master and mount build/kernel.iso in the optical drive. Boot from the optical drive and keep the ISO attached for later boots. This manual setup does not install a bootloader on the VDI; the installer method does.

03 / VirtualBox configuration

Power off the VM before changing its virtual hardware. Use these settings on an x86 host:

Virtual hardware supported by Hashx86
Settings pageSetting
GeneralOther / Unknown (32-bit); skip unattended installation if offered.
System / MotherboardAt least 1024 MB RAM; EFI/UEFI disabled (legacy BIOS).
System / Processor1 virtual CPU.
Pointing devicePS/2 Mouse.
Display / ScreenVBoxVGA, 32 MB video memory, 3D acceleration disabled.
StorageIDE primary-master VDI; installer ISO or development kernel ISO in the optical drive.

Hashx86 supplies its own drivers; Guest Additions are not required. See Oracle's VM settings reference for the VirtualBox controls.

Network / NAT + e1000

  1. Open Settings → Network → Adapter 1 and enable the adapter.
  2. Set Attached to to NAT.
  3. Set Adapter Type to Intel PRO/1000 MT Desktop (82540EM). Expand Advanced if the field is hidden.
  4. Enable Cable Connected and disable additional network adapters for this setup.

Hashx86's e1000 driver supports the 82540EM. PCnet and virtio-net are not supported. NAT supplies DHCP and outbound internet through the host; App Store downloads do not need port forwarding. Default NAT normally assigns 10.0.2.15, gateway 10.0.2.2, and DNS 10.0.2.3. See Oracle's networking reference.

Wait for a DHCP address before opening the App Store. If it was opened during network startup, press Refresh after the connection is ready. If DNS still fails, check the adapter model, cable setting, and host internet connection.

The guest CPU must expose RDRAND for networking and TLS. A boot log message of [NET] disabled: hardware entropy is unavailable means the host CPU and VM CPU configuration must provide RDRAND; changing DNS will not resolve it. Keep the host clock correct, because HTTPS certificate validation uses the guest RTC.

Sound / ICH AC97

  1. Open Settings → Audio and enable audio.
  2. Choose Default as the Host Audio Driver, or a working host backend.
  3. Set Audio Controller to ICH AC97 (Intel AC'97).
  4. Enable Audio Output. Audio Input can stay disabled; the driver provides playback.

The driver targets Intel AC97 (8086:2415). Intel HD Audio and SoundBlaster 16 are not supported. The host audio backend and guest audio controller are separate settings; see Oracle's audio settings reference.

After boot, look for the AC97 driver loading and [AC97] Ready in the log, then test a sound-producing application. If playback is silent, check Audio Output, host volume/mute controls, and the host backend. For manual builds, make hdd copies Hashx86/drivers/ac97.sys to the guest disk.

Instructions follow the OS README.