Page 1 of 1

Possible to have more than 1 cd recognized?

Posted: Wed Dec 11, 2019 2:18 am
by celebi23
I was wondering if it's possible to have more than 1 cd recognized in Qemu?

Re: Possible to have more than 1 cd recognized?

Posted: Wed Dec 11, 2019 5:54 am
by Cat_7
Certainly,

just add a second one to the command line:
-drive file=cd1.iso,format=raw,media=cdrom \
-drive file=cd2.iso,format=raw,media=cdrom \

Best,
Cat_7

Re: Possible to have more than 1 cd recognized?

Posted: Wed Dec 11, 2019 8:14 pm
by celebi23
Awesome! Thanks!

Re: Possible to have more than 1 cd recognized?

Posted: Sat Dec 21, 2019 8:52 pm
by celebi23
So, I'm tying to add 3 cds to the command line like so:

Code: Select all

./qemu-system-ppc -L pc-bios -boot c -M mac99 -cpu G4 -m 768 -prom-env 'auto-boot?=true' -prom-env 'boot-args=-v' -drive file=MacintoshHD.dmg,format=raw,media=disk -drive file=AdobeMac.dmg,format=raw,media=disk -drive file=Arthur.iso,format=raw,media=cdrom -drive file=IN_THE_DARK.iso,format=raw,media=cdrom -drive file=ArthursTeacherTrouble.iso,format=raw,media=cdrom -netdev user,id=network01 -device sungem,netdev=network01 -device VGA,edid=on
and this is what I get in the output in Terminal:

Code: Select all

qemu-system-ppc: -drive file=ArthursTeacherTrouble.iso,format=raw,media=cdrom: machine type does not support if=ide,bus=2,unit=0
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]
Does Qemu not support more than 2 cds at a time? What I wanted to try and do was use all of the Living Books iso/toast images that I have (all sourced from my own cds).

Re: Possible to have more than 1 cd recognized?

Posted: Sat Dec 21, 2019 11:12 pm
by Cat_7
I see you are adding 5 drives.

Code: Select all

./qemu-system-ppc -L pc-bios -boot c -M mac99 -cpu G4 -m 768 \
-prom-env 'auto-boot?=true' -prom-env 'boot-args=-v' \
-drive file=MacintoshHD.dmg,format=raw,media=disk \
-drive file=AdobeMac.dmg,format=raw,media=disk \
-drive file=Arthur.iso,format=raw,media=cdrom \
-drive file=IN_THE_DARK.iso,format=raw,media=cdrom \
-drive file=ArthursTeacherTrouble.iso,format=raw,media=cdrom \
-netdev user,id=network01 -device sungem,netdev=network01 -device VGA,edid=on
Qemu-system-ppc supports 4 drives: ide1 master and slave (this will be bus0), and ide2 master and slave (this will be bus1). A third bus (bus2) is not supported, and that is probably why you get the error.

So what it comes down to is if you can do without the AdobeMac.dmg drive, you should be OK.

Best,
Cat_7

Re: Possible to have more than 1 cd recognized?

Posted: Tue Dec 24, 2019 12:00 pm
by Cat_7
Hi,

Thanks to some pointers by Zoltan, I have now found out you can add an additional usb controller to qemu and attach an additional cdrom to it (and more...) This seems to work with Mac OS 9.2 guest. OSX guest complains about the drive being unreadable.

Add this to your command line and change -drive line to the correct path to the cdrom iso you want to add.

-device pci-ohci,id=ohci \
-drive if=none,id=cdrom,file=/home/hsp/Mac-images/9.1.iso,format=raw,media=cdrom \
-device usb-storage,bus=ohci.0,drive=cdrom

Best,
Cat_7