Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crazy idea: compile busybox to WebAssembly, boot a Linux VM to it #80

Open
8 tasks
Xe opened this issue Apr 24, 2019 · 1 comment
Open
8 tasks

Crazy idea: compile busybox to WebAssembly, boot a Linux VM to it #80

Xe opened this issue Apr 24, 2019 · 1 comment
Assignees
Labels
cwa Common WA specific enhancement New feature or request wasi https://wasi.dev

Comments

@Xe
Copy link
Owner

Xe commented Apr 24, 2019

At a high level, olin is effectively a kernel for WebAssembly programs. Why not get BusyBox working in it? We could then have a linux kernel boot to an olin environment.

  • Get syscall compatibility with Newlib
    • Create popen
    • Implement a filesystem (afero and a boltdb implementation for mutable storage?)
  • Build busybox with wasmception and newlib somehow
  • Adapt olin to boot the system (hack gokrazy for this?)
  • Use Adelie's easy-kernel package to get an amd64 linux kernel
  • Create an initramfs with the system booting thing and a few binaries
  • Boot to webassembly
@Xe Xe added enhancement New feature or request cwa Common WA specific wasi https://wasi.dev labels Apr 24, 2019
@Xe Xe self-assigned this Apr 24, 2019
@ryazo
Copy link

ryazo commented Jul 9, 2019

https://bellard.org/jslinux/tech.html

For your awareness.

@bb010g bb010g pinned this issue Jul 30, 2019
@bb010g bb010g unpinned this issue Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwa Common WA specific enhancement New feature or request wasi https://wasi.dev
Projects
None yet
Development

No branches or pull requests

2 participants