copy / copy/v86

How do you add two CDRom drives in html?

Open
#1,612 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
23.5k
Forks
1.9k
Avg merge
2d 14h
Merged PRs (30d)
7

Description

How do you add two cdrom drivers to html?

```html

Windows 95

"use strict";
window.onload = function() {
var emulator = new V86({
wasm_path: "../build/v86.wasm",
memory_size: 32 * 1024 * 1024, // 32MB as per your QEMU config
vga_memory_size: 8 * 1024 * 1024,
screen_container: document.getElementById("screen_container"),
bios: { url: "../bios/seabios.bin" },
vga_bios: { url: "../bios/vgabios.bin" },

// Mapping your drives from the vhd/ folder
hda: { url: "../vhd/qwin95osr25.img" },
hdb: { url: "../vhd/win95_large.img" },
//fda: { url: "../vhd/windows95b.img" },
cdrom: { url: "../vhd/win95_osr25.iso" },

//network_relay_url: "wss://relay.widgetry.org/", // Public WebSocket proxy for internet routing
net_device: {
type: "ne2k",
relay_url: "wisps://wisp.mercurywork.shop/"
}, // Enables the NE2000 network card emulator

autostart: true,
});
};





```
tried
```html
cdc: { url: "../vhd/win95_osr25.iso" },
cdd: { url: "../vhd/win95_extra_files.iso" },
```

qemu:
```bash
qemu-system-i386 -m 32 -M pc,acpi=off -display sdl \
-drive file=windows95b.img,format=raw,if=floppy -boot c \
-audiodev pipewire,id=snd0 \
-device sb16,audiodev=snd0 \
-netdev user,id=net0 -device ne2k_isa,netdev=net0 \
-drive file=win95_osr25.iso,format=raw,index=2,media=cdrom \
-drive file=win95_extra_files.iso,format=raw,index=3,media=cdrom \
-drive file=qwin95osr25.img,format=raw,index=0 \
-drive file=win95_large.img,format=raw,index=1
```
Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the V86 constructor configuration shown in the issue, especially the existing `cdrom` entry, and trace how storage devices are registered. Compare the two QEMU `media=cdrom` drives and verify the result with the two ISO paths; done means both images are exposed as separate CD-ROM drives in Windows 95.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.