# erXos: Erlang 운영체제
# erXos: an Erlang operating system

- Site: https://select1.dev/2026-11-21 (English), https://select1.dev/ko/2026-11-21 (Korean)
- Entry: 042
- Published: 2026-11-21 (KST). Launch date: 2026-11-20
- Pick: erXos <https://stass.github.io/erXos/> (source: Show HN)
- Verified: used
- What: erXos 는 드라이버와 파일 시스템까지 Erlang 프로세스로 실행하는 프로덕트다. 웹사이트에서 브라우저 안의 에뮬레이터로 바로 부팅해 볼 수 있다.
- What (en): erXos is a product that runs even its drivers and file systems as Erlang processes. The website boots it in an emulator inside the browser.
- Why: 오늘의 픽으로 선정한 이유는 드라이버가 죽어도 그 부분만 다시 시작되기 때문이다. 운영체제의 나머지 부분은 계속 실행된다.
- Why (en): It is today’s pick because a crashed driver starts again on its own. The rest of the system keeps running.
- Verdict: 작동한다. 디스크 컨트롤러 장애를 주입하자 스토리지 도메인만 다시 시작됐다.
- Verdict (en): It works. Only the storage domain restarted after an injected disk controller failure.
- Tags: operating-system, erlang, microkernel, fault-tolerance, claude

## Checked against the README

- [fail] 브라우저 안에서 커널, 시스템 도메인, 셸이 몇 초 안에 실행된다(The kernel, the system domain and the command shell all come up inside the page, in a few seconds) — Linux 의 헤드리스 Chromium 에서 Boot erXos 버튼을 누른 뒤 셸이 준비될 때까지 걸린 시간을 같은 조건으로 3회 측정했다. 순서대로 95초, 126초, 67초가 걸렸다. 부팅 이미지 43 MB 는 1~5초 만에 받았다
- [pass] 서버에서 실행되는 것은 없다. 입력한 내용은 기기 밖으로 전송되지 않는다(Nothing runs on a server, and nothing you type leaves your machine) — 부팅이 끝난 뒤 echo, cat, ls, ps, ping -c 3 8.8.8.8 을 실행하고 장애를 주입했다. 그동안 브라우저가 보낸 네트워크 요청을 Playwright 로 기록했다. 부팅 시간을 잰 3회 모두 0건이었다. ping 의 응답은 페이지 안의 라우터가 보냈다
- [pass] 드라이버 때문에 장치가 멈추면 그 드라이버의 슈퍼바이저가 드라이버를 다시 시작한다. 시스템의 나머지 부분은 계속 실행된다(A driver wedges its device ... its supervisor restarts it, and the rest of the machine carries on) — 데모의 Disk controller failure 를 주입하자 스토리지 도메인이 {fault,1} 로 종료되고 다시 시작됐다. 에뮬레이터 안의 시계로 9.6초 뒤 /data 가 다시 마운트됐다. 다른 도메인의 /tmp/hi 는 그대로 읽혔다

## Measured

- Boot erXos 를 누르고 셸이 준비될 때까지 걸린 시간: 67~126초(3회) (버튼을 누른 시각과 window.erx_ready_at 에 기록된 준비 완료 시각의 차이를 Playwright 로 계산했다)

## Progress (days after launch; full history https://select1.dev/2026-11-21/progress)

- day 3 (checked 2026-11-23) [active] commits since launch 485, stars 7, releases 14, contributors 1, last commit 2026-11-21
  - Added a driver for the Raspberry Pi 4’s PCIe bridge (BCM2711) and defined PCIe and USB domains for its VL805 USB controller.
  - The README and the site now say a USB keyboard works on QEMU’s virt board.
  - A program without a socket grant now gets eacces when it calls a socket function.
  - Added a Bluetooth pairing window and a GATT server.
  - Added a design document and research notes for Raspberry Pi 5 support.
- day 7 (checked 2026-11-27) [active] commits since launch 1283, stars 14, releases 14, contributors 1, last commit 2026-11-26
  - The README and site now say that the Bluetooth UART (bleuart) ran on the Raspberry Pi 4.
  - The Fiasco kernel now builds to identical output from any checkout, every time.
  - The crash record now holds the state of each CPU when it stopped.

## 한국어

## 무엇이 문제인가

Erlang 은 프로세스가 죽으면 슈퍼바이저가 그 프로세스를 다시 시작하는 방식으로 장애를 견딘다. 그런데 Linux 에서 Erlang 을 실행하면 이 방식은 Erlang 프로그램 안에서만 적용된다. 디스크와 네트워크 장치를 다루는 드라이버는 Linux 커널 안에서 실행된다. Linux 커널 공식 문서에 따르면 커널은 내부에서 오류가 발생하면 실행을 이어 가려 하거나, 설정에 따라 시스템을 바로 멈춘다. 어느 쪽이든 Erlang 의 슈퍼바이저는 커널 안의 드라이버를 다시 시작할 수 없다.

## 어떻게 해결했나

제작자 Stanislav Sedov 가 2026년 11월 20일 Hacker News 에 Show HN 글로 erXos 를 소개했다.

erXos 는 드라이버까지 Erlang 프로세스로 실행한다. 마이크로커널 위에서 파일 시스템, 네트워크 스택, 셸도 Erlang 프로세스로 실행된다. 프로세스는 보호 도메인 단위로 묶인다. 도메인마다 Erlang 런타임이 따로 실행된다. 런타임들은 같은 PID 체계를 사용하고 서로 메시지를 주고받아 하나의 Erlang 시스템처럼 동작한다. 드라이버가 죽으면 시스템 도메인이 그 드라이버의 도메인을 다시 시작한다. 다른 도메인은 계속 실행된다.

## 무엇이 다른가

첫째, 드라이버가 실행되는 곳이 다르다. Linux 의 드라이버는 커널 안에서 실행된다. erXos 의 드라이버는 커널 밖에서, 보호 도메인 안의 Erlang 프로세스로 실행된다. 그래서 드라이버가 죽어도 커널은 멈추지 않는다.

둘째, 운영체제가 프로세스로 다루는 것이 다르다. Linux 는 Erlang 런타임 전체를 프로세스 하나로 다룬다. Linux 의 ps 는 Erlang 런타임 프로세스 하나만 보여 준다. erXos 의 ps 는 Erlang 프로세스를 하나하나 보여 준다. README 에 따르면 Erlang 셸에서 커널 객체까지 살펴볼 수 있다. POSIX의 일부를 구현한 계층도 있어, FreeBSD 프로그램은 소스에서 다시 컴파일하면 이 계층 위에서 실행된다.

## 어떻게 만들었나

- 커밋은 2026년 10월 31일부터 11월 19일까지 2,522개이고, 모두 제작자가 작성했다. 2,271개에 Claude Opus 5.5, 98개에 Claude Sonnet 5.5 의 Co-authored-by 트레일러가 있다. 제작자는 HN 글에서 오래 구상한 운영체제를 AI 코딩 에이전트 덕분에 프로토타입으로 만들 수 있었다고 밝혔다.
- 저장소의 파일 31,084개 가운데 약 90%는 Fiasco 마이크로커널과 Erlang/OTP 같은 다른 프로젝트에서 가져왔다. 제작자는 Fiasco 를 일부 수정해 커널로 사용한다고 밝혔다.

## 실행해 보니

웹사이트(https://erxos.org)의 브라우저 데모를 Linux 의 헤드리스 Chromium 에서 Playwright 로 3회 실행했다. 데모는 QEMU 용 부팅 이미지를 브라우저 안의 AArch64 에뮬레이터 v64 로 부팅한다.

1. 부팅. Boot erXos 버튼을 누르고 셸의 `%` 프롬프트가 표시되기까지 67~126초 걸렸다. 부팅 이미지 43 MB 는 1~5초 만에 받았다. 사이트에는 커널과 셸이 몇 초 안에 실행된다고 적혀 있다.
2. 셸. `echo` 로 /tmp/hi 파일을 만들고 `cat` 으로 읽었다. `ps` 는 Erlang 프로세스 88개를 `<7.0.0>` 같은 Erlang PID 로 출력했다.
3. 네트워크. `ping -c 3 8.8.8.8` 의 요청 3개가 모두 응답을 받았다. 사이트 설명대로 응답은 8.8.8.8 이 아니라 페이지 안에서 에뮬레이션되는 라우터가 보냈다. 부팅이 끝난 뒤 브라우저가 보낸 네트워크 요청은 0건이었다.
4. 디스크 컨트롤러 장애. 스토리지 도메인은 디스크 드라이버와 /data 파일 시스템이 실행되는 도메인이다. 데모의 장애 주입 메뉴에서 컨트롤러 장애를 선택하자, 스토리지 도메인이 종료되고(종료 사유 `{fault,1}`) 다시 시작됐다. 에뮬레이터 안의 시간으로는 도메인이 종료되고 9.6초 뒤, 실제 시간으로는 장애를 주입하고 11.7초 뒤 `/data` 가 다시 마운트됐다. `ls /data` 는 장애 전과 같은 목록을 출력했다. 장애를 주입하기 전에 RAM 파일 시스템에 만든 `/tmp/hi` 도 그대로 읽혔다.
5. 디스크 고장. 다른 회차에서 디스크 자체의 고장을 주입하자, 스토리지 도메인은 5번 다시 시작됐고 여섯 번째로 종료된 뒤에는 다시 시작되지 않았다. `ls /data` 는 `I/O error` 를 출력했다. `/tmp/hi` 는 그대로 읽혔다. 셸도 계속 동작했다. 이 동작은 데모의 장애 주입 메뉴에 적힌 설명과 같다.
6. 커널 경고. 스토리지 도메인이 종료될 때마다 커널이 `reply capability overwritten` 이라는 경고를 한 줄 출력했다. 제작자는 TODO.md 에서 이 경고가 장애마다 출력되지만 오동작은 없다고 밝혔다.

```text title="브라우저 데모의 콘솔, 디스크 컨트롤러 장애 뒤"
91.103300 notice domain 4 principal 1 system: erx_domain: configured domain storage (domain 6) ended, {fault,1} at pc 0x40004c9100, cause 0x0, addr 0x400005ae60; restarting it
#14 91.626400 debug space 2: erx: erts: erl_start runs, 68 arguments
#18 100.731500 debug space 2: erx_lfs: volume mounted
% ls /data
packages	root		ssh
% cat /tmp/hi
hello from select1
```

## 확인하지 못한 것

- QEMU 에서의 실행. 저장소에서 `make pack PLATFORM=qemu-virt` 로 이미지를 만들어 QEMU 로 부팅해 보자.
- Erlang 셸에서 커널 객체를 살펴보는 기능. 오늘은 명령 셸(rc)만 사용했다. 데모에서 `erl` 로 Erlang 셸을 열어 확인해 보자.

## 판정

작동한다. 디스크 컨트롤러 장애를 주입하자 스토리지 도메인만 다시 시작됐다. 다만 0.1 은 프리뷰 버전이라, 제작자는 신뢰할 수 있는 코드만 실행하라고 권장한다. 헤드리스 Chromium 에서 부팅에 1~2분이 걸렸다. Erlang 으로 운영체제의 장애 처리를 실험해 보려는 경우에 써 볼 만하다.

## 얻어갈 것

- 장애를 견디는 시스템은 장애를 주입하는 버튼을 함께 만들어 두자. erXos 의 브라우저 데모에서는 디스크 컨트롤러 장애를 주입해 복구를 확인할 수 있었다.
- 입력을 외부로 전송하지 않는 데모는 부팅 후 네트워크 요청을 기록해 보자. erXos 데모는 부팅 후 네트워크 요청이 0건이었다.

### 용어

- 슈퍼바이저: Erlang 에서 다른 프로세스를 감시하는 프로세스. 감시하던 프로세스가 죽으면 정해 둔 규칙에 따라 다시 시작한다.
- 마이크로커널: 주소 공간, 스레드, 프로세스 간 통신처럼 꼭 필요한 기능만 커널에 두는 운영체제 구조. 드라이버와 파일 시스템은 커널 밖에서 실행된다.
- 보호 도메인: erXos 에서 프로세스 몇 개를 다른 프로세스와 격리해 묶은 단위. 도메인마다 런타임이 따로 실행되고, 도메인 사이의 메시지는 정해 둔 연결로만 오간다.
- 커널 객체: 커널이 만들고 관리하는 자원. 스레드, 프로세스마다 따로 주어지는 메모리 공간, 프로세스 사이의 통신 채널이 그 예다.
- POSIX: 유닉스 계열 운영체제가 프로그램에 제공하는 함수와 명령의 표준. 이 표준을 따른 프로그램은 다른 유닉스 계열에서도 다시 컴파일해 실행할 수 있다.
- QEMU: 에뮬레이터를 실행하는 컴퓨터와 CPU 아키텍처가 다른 운영체제도 실행할 수 있는 오픈소스 에뮬레이터.
- aarch64: ARM 계열 프로세서의 64비트 아키텍처 이름. Raspberry Pi 같은 싱글 보드 컴퓨터와 스마트폰이 주로 이 아키텍처를 사용한다.

## English

## The problem

Erlang survives failures by having a supervisor restart a process when it dies. But when Erlang runs on Linux, this works only inside the Erlang program. The drivers for disks and network devices run inside the Linux kernel. The official Linux docs say that after a kernel error, the kernel either tries to continue or stops the system at once, depending on a setting. Either way, an Erlang supervisor cannot restart a driver inside the kernel.

## How it solves it

The maker, Stanislav Sedov, posted erXos to Hacker News as a Show HN on November 20, 2026.

erXos runs even its drivers as Erlang processes. Its file systems, network stack and shell also run as Erlang processes on a microkernel. The processes are grouped into protection domains, and each domain runs its own Erlang runtime. The runtimes share one set of process IDs and one message system, so they work as one Erlang system. When a driver dies, the system domain starts that driver’s domain again. The other domains keep running.

## What is different

First, drivers run in a different place. Linux drivers run inside the kernel. erXos drivers run outside the kernel. So a driver crash does not stop the kernel.

Second, what counts as a process is different. Linux treats the whole Erlang runtime as one process. On Linux, ps shows only the one Erlang runtime process. On erXos, ps shows each Erlang process. The README says the Erlang shell can inspect kernel objects. A layer also implements part of POSIX, and FreeBSD programs run on it once recompiled from source.

## How it was built

- The repository has 2,522 commits from October 31 to November 19, 2026. All are by the maker. Of these, 2,271 have a Co-authored-by trailer for Claude Opus 5.5 and 98 for Claude Sonnet 5.5. The maker says on HN that AI coding agents made it possible to prototype an OS the maker had thought about for a long time.
- About 90% of the 31,084 files in the repository come from other projects such as the Fiasco microkernel and Erlang/OTP. The maker says the kernel is Fiasco with some changes.

## Running it

I ran the browser demo on the website (https://erxos.org) 3 times, with Playwright in headless Chromium on Linux. The demo boots the QEMU boot image in v64, an AArch64 emulator inside the browser.

1. Boot. The shell’s `%` prompt appeared 67–126 seconds after I pressed Boot erXos. The 43 MB boot image downloaded in 1–5 seconds. The site says the kernel and shell come up in a few seconds.
2. Shell. I made /tmp/hi with `echo` and read it with `cat`. `ps` listed 88 Erlang processes with Erlang PIDs such as `<7.0.0>`.
3. Network. All 3 requests from `ping -c 3 8.8.8.8` got replies. As the site says, the replies came from a router emulated inside the page, not from 8.8.8.8. After boot, the browser made 0 network requests.
4. Disk controller failure. The storage domain runs the disk driver and the /data file system. I chose the controller failure in the demo’s fault menu. The storage domain ended with the exit reason `{fault,1}` and started again. `/data` was mounted again 9.6 seconds after the domain ended by the emulator’s time, and 11.7 seconds after the fault in real time. `ls /data` printed the same list as before. I could still read `/tmp/hi`, a file I made in the RAM file system before the fault.
5. Dead disk. In another run I made the disk itself fail. The storage domain started again 5 times, and after the sixth exit it stayed down. `ls /data` printed `I/O error`. I could still read `/tmp/hi`, and the shell kept working. This matches the description in the demo’s fault menu.
6. Kernel warning. Each time the storage domain ended, the kernel printed a one-line warning that contained `reply capability overwritten`. The maker’s TODO.md says that this warning appears at every such fault and that nothing misbehaves.

```text title="The browser demo’s console, after the disk controller failure"
91.103300 notice domain 4 principal 1 system: erx_domain: configured domain storage (domain 6) ended, {fault,1} at pc 0x40004c9100, cause 0x0, addr 0x400005ae60; restarting it
#14 91.626400 debug space 2: erx: erts: erl_start runs, 68 arguments
#18 100.731500 debug space 2: erx_lfs: volume mounted
% ls /data
packages	root		ssh
% cat /tmp/hi
hello from select1
```

## Not checked

- Running on QEMU. Build the image with `make pack PLATFORM=qemu-virt` in the repository and boot it in QEMU.
- Inspecting kernel objects from the Erlang shell. Today I used only the command shell (rc). Open the Erlang shell with `erl` in the demo and look at the kernel objects.

## Verdict

It works. Only the storage domain restarted after an injected disk controller failure. But version 0.1 is a preview, and the maker advises running trusted code only. Boot took 1–2 minutes in headless Chromium. It is worth trying if you want to experiment with OS fault handling in Erlang.

## What to take away

- If your system claims to survive failures, ship a button that injects them. In the erXos browser demo, I injected a disk controller failure and watched the storage domain recover.
- If your demo says that nothing you type leaves the machine, log its network requests after boot. The erXos demo made no network requests after boot.

### Terms

- supervisor: In Erlang, a process that watches other processes. When one of them dies, the supervisor restarts it according to a fixed rule.
- microkernel: An OS design that keeps only the essentials in the kernel, such as address spaces, threads and messaging. Drivers and file systems run outside it.
- protection domain: In erXos, a group of processes isolated from other groups. Each domain runs its own runtime, and messages between domains travel only over fixed connections.
- kernel object: A resource the kernel creates and manages, such as a thread, an address space or a channel between processes.
- POSIX: A standard for the functions and commands that Unix-like systems give programs. A program that follows it can be recompiled and run on other Unix-like systems.
- QEMU: An open-source emulator that imitates a CPU and its devices in software, so an OS for another architecture can run.
- aarch64: The 64-bit architecture of ARM processors. Most phones and single-board computers such as the Raspberry Pi use it.

## Launches the same day

- Drive around my village in 3D <https://cherwellvalleymotorclub.app> (Show HN, 7): 3D 운전 게임. 영국 정부의 LIDAR 데이터와 OpenStreetMap 으로 제작자의 마을을 만들었고, 경주와 멀티플레이를 지원한다.
- Reaktiv Workbook <https://workbook.bui.app/> (Show HN, 7): Python 스프레드시트. 셀마다 Python 코드이고, 값을 바꾸면 그 값에 의존하는 셀만 다시 계산한다.
- erXos <https://stass.github.io/erXos/> (Show HN, 7): 운영체제. 드라이버와 파일 시스템까지 Erlang 프로세스로 실행한다. 브라우저에서 부팅해 볼 수 있다.
- Starbright <https://starbright.quickthoughts.ca/> (Show HN, 7): 음성 인식 앱. 15 MB 모델이 브라우저 안에서 실행되고, 오디오는 기기 밖으로 나가지 않는다.
- BSWorld <https://github.com/XiaoMi/bsworld> (Show HN, 5): Bluetooth 시험 도구. Xiaomi 가 공개했고, Bluetooth 코드를 하드웨어 없이 시뮬레이션으로 시험한다.
- riemann-hypothesis-lean <https://github.com/CocoSgt/riemann-hypothesis-lean> (GitHub, 206): Lean 증명 사본. Levent Alpöge 가 Claude 와 함께 공개한 리만 가설 증명의 Lean 코드를 그대로 옮겨 두었다.
- riemann-hypothesis <https://github.com/Deicyde/riemann-hypothesis> (GitHub, 129): 증명 검사 설정. 같은 리만 가설 증명을 Lean 의 Comparator 로 검사하도록 구성했다.
- Saparo <https://www.producthunt.com/products/saparo> (Product Hunt, 248): 쇼핑 도우미. 함께 적용할 수 있는 할인을 모아 보여 준다.
- Tripmojo <https://www.producthunt.com/products/tripmojo> (Product Hunt, 214): 여행 앱. 에이전트가 여행 계획과 예약, 여행 중의 일정을 돕는다.
- Docker <https://www.producthunt.com/products/docker> (Product Hunt, 190): 컨테이너 도구. Docker 가 에이전트 시대에 맞춘 제품 소식을 올렸다.

## Getting started

- Steps: https://erxos.org 에서 Boot erXos 버튼 ; % 프롬프트에서 ls /, ps, ping -c 3 8.8.8.8, erl
- Needs: WebAssembly 를 지원하는 브라우저. 부팅 이미지 43 MB 를 내려받는다., QEMU 나 Raspberry Pi 4 에서 실행하려면 웹사이트의 이미지나 저장소의 make pack 으로 만든 이미지.
- Cost: 무료. erXos 제작자가 작성한 코드는 BSD 2-Clause, 함께 들어 있는 Erlang/OTP 는 Apache 2.0 라이선스다.
- Note: 0.1 은 프리뷰 버전이다. 부팅할 때 신뢰할 수 있는 코드만 실행하라는 문구가 표시된다.
