Skip to content

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

Description

@Xe

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cwaCommon WA specificenhancementNew feature or requestwasihttps://wasi.dev

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions