Robert Aboukhalil 4928c9165d (breaking change) replace *-output-char with *-output-byte (#928) 7 months ago
..
Dockerfile bbac74d589 Fix Locale Configuration In Debian Dockerfile (#850) 11 months ago
Readme.md d4831d3b10 Remove some unncessary quoting 1 year ago
boot-9p 2e551c0574 Move docker/ into tools/ 3 years ago
build-container.sh 558e0f9d7c Improve Debian build info (#696) 1 year ago
build-state.js 4928c9165d (breaking change) replace *-output-char with *-output-byte (#928) 7 months ago
getty-autologin-serial.conf 2e551c0574 Move docker/ into tools/ 3 years ago
getty-noclear.conf 2e551c0574 Move docker/ into tools/ 3 years ago
getty-override.conf 2e551c0574 Move docker/ into tools/ 3 years ago
logind.conf 2e551c0574 Move docker/ into tools/ 3 years ago
networking.sh 2e551c0574 Move docker/ into tools/ 3 years ago
xorg.conf 2e551c0574 Move docker/ into tools/ 3 years ago

Readme.md

You can build a Linux image for use with v86:

  1. Run ./build-container.sh to build the Docker container and v86 images (requires dockerd)
  2. Run ./build-state.js to build a state image in order to skip the boot process
  3. Optionally, compress the debian-state-base.bin file using zstd (v86 automatically detects the zstd magic and decompresses on the fly)
  4. Run a webserver serving repo root and go to examples/debian.html in a browser

If you want to see more info you can run it in a debug mode, to do so add a new profile in the src/browser/main.js file to the oses variable like so:

var oses = [
    {
        id: "debian",
        name: "Debian",
        memory_size: 512 * 1024 * 1024,
        vga_memory_size: 8 * 1024 * 1024,
        state: { url: host + "debian-state-base.bin" },
        filesystem: { baseurl: host + "debian-9p-rootfs-flat/" }
    },
    ...

Save it and go to debug.html?profile=debian to start the generated container.

You can modify the Dockerfile to customize the generated Linux image.