mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
| .. | ||
| boot-9p | ||
| build-container.sh | ||
| build-state.js | ||
| Dockerfile | ||
| getty-autologin-serial.conf | ||
| getty-noclear.conf | ||
| getty-override.conf | ||
| logind.conf | ||
| networking.sh | ||
| Readme.md | ||
| xorg.conf | ||
You can build a Linux image for use with v86:
- Run
./build-container.shto build the Docker container and v86 images (requires dockerd) - Run
./build-state.jsto build a state image in order to skip the boot process - Optionally, compress the
debian-state-base.binfile using zstd (v86 automatically detects the zstd magic and decompresses on the fly) - Run a webserver serving repo root and go to
examples/debian.htmlin 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.