index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <!doctype html>
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  3. <title>Virtual x86</title>
  4. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  5. <meta name="description" content="Run KolibriOS, Linux or Windows 98 in your browser">
  6. <script src="build/v86_all.js"></script>
  7. <link rel="stylesheet" href="v86.css">
  8. <div>
  9. <div id="boot_options">
  10. <h4>Select profile</h4>
  11. <table id="oses">
  12. <tr id="start_archlinux"><td><a href="?profile=archlinux">Arch Linux</a> <small>12 MB &gt;_</small></td> <td>
  13. Complete Arch Linux with various compilers, networking and Xorg. Restored from snapshot.</td></tr>
  14. <tr id="start_dsl"><td><a href="?profile=dsl">Damn Small Linux</a> <small>50 MB 💻</small></td> <td>
  15. Graphical Linux with 2.4 kernel, Firefox 2.0 and more. Takes 1 minute to boot.</td></tr>
  16. <tr id="start_buildroot"><td><a href="?profile=buildroot">Buildroot Linux</a> <small>5.0 MB &gt;_</small></td> <td>
  17. Minimal Linux with busybox, Lua, tests, internet access, ping, telnet and curl. Exchange files through <code>/mnt/</code>.</td></tr>
  18. <tr id="start_reactos"><td><a href="?profile=reactos">ReactOS</a> <small>18 MB 💻</small></td> <td>
  19. Windows-compatible OS with QtWeb and Breakout. Restored from snapshot.</td></tr>
  20. <tr id="start_windows2000"><td><a href="?profile=windows2000">Windows 2000</a> <small>22 MB 💻</small></td> <td>
  21. Including Pinball and Internet Explorer with internet access. Additional sectors are loaded as needed.</td></tr>
  22. <tr id="start_windows98"><td><a href="?profile=windows98">Windows 98</a> <small>9.7 MB 💻</small></td> <td>
  23. Including Minesweeper and Internet Explorer with internet access. Additional sectors are loaded as needed.</td></tr>
  24. <tr id="start_windows95"><td><a href="?profile=windows95">Windows 95</a> <small>4.6 MB 💻</small></td> <td>
  25. Restored from snapshot</td></tr>
  26. <tr id="start_windows31"><td><a href="?profile=windows31">Windows 3.1</a> <small>15 MB 💻</small></td> <td>
  27. Takes 15 seconds to boot</td></tr>
  28. <tr id="start_windows1"><td><a href="?profile=windows1">Windows 1.01</a> <small>0.6 MB 💻</small></td> <td>
  29. The first version of Microsoft Windows</td></tr>
  30. <tr id="start_msdos"><td><a href="?profile=msdos">MS-DOS 6.22</a> <small>4.4 MB &gt;_</small></td> <td>
  31. With Enhanced Tools, QBasic, vim, games and demos.</td></tr>
  32. <tr id="start_freedos"><td><a href="?profile=freedos">FreeDOS</a> <small>0.5 MB &gt;_</small></td> <td>
  33. With nasm, vim, debug.com, Rogue, some games and demos.</td></tr>
  34. <tr id="start_freebsd"><td><a href="?profile=freebsd">FreeBSD</a> <small>17 MB &gt;_</small></td> <td>
  35. FreeBSD 12.0 base install. Restored from snapshot.</td></tr>
  36. <tr id="start_openbsd"><td><a href="?profile=openbsd">OpenBSD</a> <small>12 MB &gt;_</small></td> <td>
  37. OpenBSD 6.6 base install. Restored from snapshot.</td></tr>
  38. <tr id="start_9front"><td><a href="?profile=9front">9front</a> <small>4.4 MB 💻</small></td> <td>
  39. A Plan 9 fork.</td></tr>
  40. <tr id="start_haiku"><td><a href="?profile=haiku">Haiku</a> <small>38 MB 💻</small></td> <td>
  41. An open-source operating system inspired by BeOS. Restored from snapshot. Includes network support.</td></tr>
  42. <tr id="start_serenity"><td><a href="?profile=serenity">SerenityOS</a> <small>17 MB 💻</small></td> <td>
  43. A graphical Unix-like operating system. Restored from snapshot.</td></tr>
  44. <tr id="start_helenos"><td><a href="?profile=helenos">HelenOS</a> <small>7.9 MB 💻</small></td> <td>
  45. A graphical operating system based on a multiserver microkernel design</td></tr>
  46. <tr id="start_fiwix"><td><a href="?profile=fiwix">FiwixOS</a> <small>15 MB &gt;_</small></td> <td>
  47. A Unix-like OS written from scratch. Includes Doom.</td></tr>
  48. <tr id="start_android"><td><a href="?profile=android">Android-x86</a> <small>42 MB 💻</small></td> <td>
  49. An x86 port of the Android 1.6. Quite slow. Takes about 3 minutes to boot.</td></tr>
  50. <tr id="start_oberon"><td><a href="?profile=oberon">Oberon</a> <small>1.2 MB 💻</small></td> <td>
  51. Native Oberon 2.3.6</td></tr>
  52. <tr id="start_kolibrios"><td><a href="?profile=kolibrios">KolibriOS</a> <small>1.4 MB 💻</small></td> <td>
  53. Fast graphical OS written in Assembly</td></tr>
  54. <tr id="start_qnx"><td><a href="?profile=qnx">QNX</a> <small>1.3 MB 💻</small></td> <td>
  55. QNX 4.05 Demo disk (no networking)</td></tr>
  56. <tr id="start_snowdrop"><td><a href="?profile=snowdrop">Snowdrop</a> <small>0.3 MB &gt;_</small></td> <td>
  57. A homebrew operating system from scratch, written in assembly language</td></tr>
  58. <tr id="start_solos"><td><a href="?profile=solos">Solar OS</a> <small>0.3 MB 💻</small></td> <td>
  59. Simple graphical OS</td></tr>
  60. <tr id="start_bootchess"><td><a href="?profile=bootchess">Bootchess</a> <small>512 B &gt;_</small></td> <td>
  61. A tiny chess program written in the boot sector</td></tr>
  62. <tr id="start_sectorlisp"><td><a href="?profile=sectorlisp">SectorLISP</a> <small>512 B &gt;_</small></td> <td>
  63. A LISP interpreter that fits into the boot sector</td></tr>
  64. </table>
  65. <hr>
  66. <h4>Setup</h4>
  67. <table>
  68. <tr>
  69. <td width="350"><label for="cd_image">CD image</label></td>
  70. <td>
  71. <input type="file" id="cd_image">
  72. </td>
  73. </tr>
  74. <tr>
  75. <td><label for="floppy_image">Floppy disk image</label></td>
  76. <td> <input type="file" id="floppy_image"><br></td>
  77. </tr>
  78. <tr>
  79. <td><label for="hda_image">Hard disk image</label></td>
  80. <td><input type="file" id="hda_image"><br></td>
  81. </tr>
  82. <!--
  83. <tr>
  84. <td><label for="multiboot_image">Multiboot kernel image (experimental)</td>
  85. <td><input type="file" id="multiboot_image"><br></td>
  86. </tr>
  87. -->
  88. <tr>
  89. <td><label for="bzimage">Kernel image (bzimage)</label></td>
  90. <td><input type="file" id="bzimage"><br></td>
  91. </tr>
  92. <tr>
  93. <td><label for="initrd">initrd</label></td>
  94. <td><input type="file" id="initrd"><br></td>
  95. </tr>
  96. <tr>
  97. <td colspan="2"><small>Disk images are not uploaded to the server</small><hr></td>
  98. </tr>
  99. <tr>
  100. <td><label for="memory_size">Memory size</label></td>
  101. <td>
  102. <input id="memory_size" type="number" value="128" min="16" max="2048" step="16"> MB<br>
  103. </td>
  104. </tr>
  105. <tr>
  106. <td><label for="video_memory_size">Video Memory size</label></td>
  107. <td>
  108. <input id="video_memory_size" type="number" value="8" min="1" max="128" step="1"> MB<br>
  109. </td>
  110. </tr>
  111. <tr>
  112. <td><label for="networking_proxy">Networking proxy (leave blank to disable)</label></td>
  113. <td>
  114. <input id="networking_proxy" type="text" value="wss://relay.widgetry.org/">
  115. </td>
  116. </tr>
  117. <tr>
  118. <td colspan="2"><hr></td>
  119. </tr>
  120. <tr>
  121. <td><label for="disable_audio">Disable audio</label></td>
  122. <td>
  123. <input id="disable_audio" type="checkbox"><br>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td><label for="enable_acpi">Enable ACPI (experimental)</label></td>
  128. <td>
  129. <input id="enable_acpi" type="checkbox"><br>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td colspan="2"><hr></td>
  134. </tr>
  135. <tr>
  136. <td><label for="boot_order">Boot order</label></td>
  137. <td>
  138. <select id="boot_order">
  139. <option value="0">Auto</option>
  140. <option value="213">CD / Floppy / Hard Disk</option>
  141. <option value="123">CD / Hard Disk / Floppy</option>
  142. <option value="231">Floppy / CD / Hard Disk</option>
  143. <option value="321">Floppy / Hard Disk / CD</option>
  144. <option value="312">Hard Disk / Floppy / CD</option>
  145. <option value="132">Hard Disk / CD / Floppy</option>
  146. </select>
  147. </td>
  148. </tr>
  149. </table>
  150. <br>
  151. <button id="start_emulation">Start Emulation</button>
  152. </div>
  153. <div id="runtime_options" style="display: none">
  154. <input type="button" value="Pause" id="run">
  155. <input type="button" value="Reset" id="reset">
  156. <input type="button" value="Exit" id="exit">
  157. <input type="button" value="Send Ctrl-Alt-Del" id="ctrlaltdel">
  158. <input type="button" value="Send Alt-Tab" id="alttab">
  159. <input type="button" value="Get floppy image" id="get_fda_image">
  160. <input type="button" value="Get second floppy image" id="get_fdb_image">
  161. <input type="button" value="Get hard disk image" id="get_hda_image">
  162. <input type="button" value="Get second hard disk image" id="get_hdb_image">
  163. <input type="button" value="Get CD-ROM image" id="get_cdrom_image">
  164. <input type="button" value="Insert floppy image" id="change_fda_image">
  165. <input type="button" value="Save State" id="save_state">
  166. <input type="button" value="Load State" id="load_state"> <input type="file" style="display: none" id="load_state_input">
  167. <input type="button" value="Memory Dump" id="memory_dump">
  168. <input type="button" value="Capture network traffic" id="capture_network_traffic" title="In wireshark: file -> import from hex -> tick direction indication, timestamp %s.%f">
  169. <input type="button" value="Disable mouse" id="toggle_mouse">
  170. <input type="button" value="Lock mouse" id="lock_mouse">
  171. <input type="button" value="Go fullscreen" id="fullscreen">
  172. <input type="button" value="Take screenshot" id="take_screenshot">
  173. <input type="button" value="Mute" id="mute">
  174. <label>
  175. Scale:
  176. <input type="number" min="0.25" step="0.25" value="1.0" id="scale" style="width: 50px">
  177. </label>
  178. <br><br>
  179. </div>
  180. <pre style="display: none" id="loading"></pre>
  181. </div>
  182. <div id="screen_container" style="display: none">
  183. <div id="screen"></div>
  184. <canvas id="vga"></canvas>
  185. <div style="position: absolute; top: 0; z-index: 10">
  186. <textarea class="phone_keyboard"></textarea>
  187. </div>
  188. </div>
  189. <div id="runtime_infos" style="display: none">
  190. Running: <span id="running_time">0s</span> <br>
  191. Speed: <span id="speed">0</span> mIPS<br>
  192. Avg speed: <span id="avg_speed">0</span> mIPS<br>
  193. <br>
  194. <div id="info_storage" style="display: none">
  195. <b>IDE device<span id="ide_type"></span></b><br>
  196. Sectors read: <span id="info_storage_sectors_read">0</span><br>
  197. Bytes read: <span id="info_storage_bytes_read">0</span><br>
  198. Sectors written: <span id="info_storage_sectors_written">0</span><br>
  199. Bytes written: <span id="info_storage_bytes_written">0</span><br>
  200. Status: <span id="info_storage_status"></span><br>
  201. <br>
  202. </div>
  203. <div id="info_filesystem" style="display: none">
  204. <b>9p Filesystem</b><br>
  205. Bytes read: <span id="info_filesystem_bytes_read">0</span><br>
  206. Bytes written: <span id="info_filesystem_bytes_written">0</span><br>
  207. <div style="white-space: nowrap; overflow-x: hidden">Last file: <span id="info_filesystem_last_file"></span></div>
  208. Status: <span id="info_filesystem_status"></span><br>
  209. <br>
  210. </div>
  211. <div id="info_network" style="display: none">
  212. <b>Network</b><br>
  213. Bytes received: <span id="info_network_bytes_received">0</span><br>
  214. Bytes transmitted: <span id="info_network_bytes_transmitted">0</span><br>
  215. <br>
  216. </div>
  217. <b>VGA</b><br>
  218. Mode: <span id="info_vga_mode"></span><br>
  219. Resolution: <span id="info_res">-</span><br>
  220. BPP: <span id="info_bpp">-</span><br>
  221. <br>
  222. Mouse: <span id="info_mouse_enabled">No</span><br>
  223. <div id="description" style="display: none"><br></div>
  224. </div>
  225. <div id="filesystem_panel" style="display: none">
  226. <label>
  227. Send files to emulator<br>
  228. <input type="file" id="filesystem_send_file" multiple>
  229. </label>
  230. <br><br>
  231. <label>
  232. Get file from emulator<br>
  233. <input type="text" id="filesystem_get_file" placeholder="Absolute path">
  234. </label>
  235. </div>
  236. <br style="clear: both"><br>
  237. <div id="terminal"></div>
  238. <br style="clear: both">
  239. <code>Version: <a href="https://github.com/copy/v86/commits/98e7110c2">98e7110c2</a> (Feb 16, 2021 12:02)</code>
  240. <hr>
  241. <a href="debug.html">Enable debug</a>
  242. &mdash;
  243. <a href="https://github.com/copy/v86/blob/master/Readme.md">Readme</a>
  244. &mdash;
  245. <a href="https://github.com/copy/v86">Project on Github</a>
  246. &mdash;
  247. <a href="https://github.com/copy/v86#compatibility">Compatibility</a>