x86 virtualization in JavaScript, running in your browser and NodeJS (mirror)
Fabian c7cc131e19 Simplify expression | před 6 roky | |
---|---|---|
bios | před 7 roky | |
docker | před 4 roky | |
docs | před 7 roky | |
examples | před 8 roky | |
gen | před 4 roky | |
lib | před 4 roky | |
src | před 4 roky | |
tests | před 4 roky | |
.clang-tidy | před 4 roky | |
.gitignore | před 4 roky | |
.jshint.json | před 4 roky | |
.travis-run-codegen.sh | před 4 roky | |
.travis-run-expect.sh | před 4 roky | |
.travis-run-integration.sh | před 7 roky | |
.travis-run-jit-paging.sh | před 4 roky | |
.travis-run-jshint.sh | před 4 roky | |
.travis-run-nasm-jit-always.sh | před 4 roky | |
.travis-run-nasm.sh | před 4 roky | |
.travis-run-unit-qemu.sh | před 7 roky | |
.travis-run-unit.sh | před 7 roky | |
.travis.yml | před 4 roky | |
LICENSE | před 10 roky | |
Makefile | před 4 roky | |
Readme.md | před 7 roky | |
debug.html | před 4 roky | |
index.html | před 4 roky | |
loader.js | před 4 roky | |
package.json | před 4 roky | |
v86.css | před 4 roky |
Using v86 for your own purposes is as easy as:
var emulator = new V86Starter({
screen_container: document.getElementById("screen_container"),
bios: {
url: "../../bios/seabios.bin",
},
vga_bios: {
url: "../../bios/vgabios.bin",
},
cdrom: {
url: "../../images/linux.iso",
},
autostart: true,
});
See API.
v86 emulates an x86-compatible CPU and hardware. Here's a list of emulated hardware:
The disk images are not included in this repository. You can download them directly from the website using:
wget -P images/ https://copy.sh/v86/images/{linux.iso,linux3.iso,kolibri.img,windows101.img,os8.dsk,freedos722.img,openbsd.img}
.
A testsuite is available in tests/full/
. Run it using node tests/full/run.js
.
make build/v86_all.js
.index.html
locally, make sure to serve it from a local webserver. You can use make run
to serve the files using Python's SimpleHTTPServer.wget -P images/ https://copy.sh/v86/images/{linux.iso,linux3.iso,kolibri.img,windows101.img,os8.dsk,freedos722.img,openbsd.img}
.Short summary:
# grab the main repo
git clone https://github.com/copy/v86.git && cd v86
# grab the disk images
wget -P images/ https://copy.sh/v86/images/{linux.iso,linux3.iso,kolibri.img,windows101.img,os8.dsk,freedos722.img,openbsd.img}
# grab closure compiler
wget -P closure-compiler https://dl.google.com/closure-compiler/compiler-latest.zip
unzip -d closure-compiler closure-compiler/compiler-latest.zip *.jar
# build the library
make build/libv86.js
# run the tests
./tests/full/run.js
Here's an overview of the operating systems supported in v86:
udev
and X
fail, but you get a
terminal.You can get some infos on the disk images here: https://github.com/copy/images.
Simplified BSD License, see LICENSE, unless otherwise noted.
Shoot me an email to copy@copy.sh
. Please don't tell about bugs via mail,
create a bug report on GitHub instead.
Fabian Hemmer (http://copy.sh/, copy@copy.sh
)