v86/tools/docker/debian
2022-08-02 21:40:57 +09:00
..
boot-9p Move docker/ into tools/ 2020-12-31 19:14:34 -06:00
build-container.sh Improve Debian build info (#696) 2022-06-24 10:30:27 +02:00
build-state.js Fixed issue #632 async/await (#633) 2022-07-25 14:55:07 +02:00
Dockerfile Fix debian build 2021-09-23 19:35:10 +02:00
getty-autologin-serial.conf Move docker/ into tools/ 2020-12-31 19:14:34 -06:00
getty-noclear.conf Move docker/ into tools/ 2020-12-31 19:14:34 -06:00
getty-override.conf Move docker/ into tools/ 2020-12-31 19:14:34 -06:00
logind.conf Move docker/ into tools/ 2020-12-31 19:14:34 -06:00
networking.sh Move docker/ into tools/ 2020-12-31 19:14:34 -06:00
Readme.md Remove some unncessary quoting 2022-08-02 21:40:57 +09:00
xorg.conf Move docker/ into tools/ 2020-12-31 19:14:34 -06:00

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.