qemus/qemu-docker

How to run TempleOS in qemu-docker?

rubenanapu opened this issue · 2 comments

Description

I set the BOOT variable to use https://templeos.org/Downloads/TempleOS.ISO, but TempleOS does not start.

I have what we can see in the screenshot below:

templeos

When running normal qemu-system-x86_64, it works.

Using the normal qemu I first create the disk:

qemu-img create -f qcow2 temple 2G

qemu-system-x86_64 -soundhw pcspk -m 512M -enable-kvm -drive file=temple -cdrom TempleOS.ISO -boot order=d

Then I run it:

qemu-system-x86_64 -soundhw  pcspk -m 2G -smp 14 -enable-kvm -drive file=temple

But I wasn't yet able to make it work with qemu-docker.

I think the reason is that this container uses VirtIO iSCSI devices for the disks and cdrom drives. These have much higher performance than the legacy IDE devices, but need special drivers. Linux includes these drivers by default in the kernel, so on Linux-based operating systems they work out of the box, but TempleOS does not have them.

You can modify the QEMU commandline via an environment variable:

environment:
  ARGUMENTS: "-cdrom /storage/TempleOS.ISO -soundhw pcspk"

So by doing something like the above, you can add some extra devices that TempleOS is compatible with. And maybe you can get it to work in that way, but this container is more aimed at running modern operating systems on high speed, than running retro OS'es like MsDOS/Windows95/TempleOS.

Hi @kroese, thank you very much for the instructions.

I'll get back to this issue if I succeed on this.

Thanks.