Skip to content

How do you add two CDRom drives in html? #1612

Description

@NonaSuomy

How do you add two cdrom drivers to html?

<!doctype html>
<title>Windows 95</title>
<script src="../build/libv86.js"></script>
<script>
"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,
    });
};
</script>
<div id="screen_container">
    <div style="white-space: pre; font: 14px monospace; line-height: 14px"></div>
    <canvas style="display: none"></canvas>
</div>

tried

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

qemu:

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions