r/virtualization • • Sep 29 '26

My hobby hypervisor boots linux!

Post image

Took me more time than anticipated, but its finally here >.<

my end goal for this (quite big) hobby project is to be able to make a simple clone of AWS's EC2, from the grounds up, above a type 1 hypervisor (as a POC, not a real prod software).

What I finished implementing all the way up to now:

- Type-1 hypervisor written from scratch in Zig, booted by GRUB

- Its own bare-metal kernel: higher-half paging, GDT/IDT, interrupts and 3 distinct memory allocators (yes, I use them all)

- Intel VT-x with EPT (Extended Page Tables) backing guest memory

- Emulating CPUID, MSRs, CR's (CR0/CR3/CR4), and some I/O stuff.

- Virtual devices: interrupt controller (PIC) and serial console

- Booting an unmodified Linux kernel to userspace (initramfs)

The road to finishing is long but I still see this part as a great milestone >-<

source: https://github.com/NoamRothschild/hypervisor

25 Upvotes

4 comments sorted by

View all comments

1

u/WonderfulMain5602 Sep 29 '26

Can you Test Phillux?

3

u/Kiritoo120 Sep 29 '26

I'm not sure I understood your question

I don't know what Phillux is aside from one Google search, but it looks similar to the final goal I am trying to get to :)