nepx / halfix

x86 PC emulator that runs both natively and in the browser, via WebAssembly
https://nepx.github.io/halfix-demo/
GNU General Public License v3.0
669 stars 86 forks source link

how do you run the os in the app version #37

Open gitrubus opened 10 months ago

gitrubus commented 10 months ago

how do you get os running in the app version

nepx commented 10 months ago

You need to set up a default.conf file with the appropriate ATA settings. Then make sure default.conf is in the same folder as the executable when you run it.

Here's an example ATA configuration:

[ata0-master]
# Will the disk image be inserted into the drive (readable)
inserted=1
# Can be "cd," "hd," or "none."
type=hd
file=/home/username/MyOS.img

Note that by default, all writes will be cached in memory and will not be written back to your image. To ensure that they are, set the writeback flag to 1, i.e.

[ata0-master]
# file, type, etc......
writeback=1
gitrubus commented 10 months ago

Takk

gitrubus commented 10 months ago

also why is it crashing

gitrubus commented 10 months ago

the os is crashing when i run it though