Possible to have more than 1 cd recognized?

About Qemu-system-ppc, a PPC Mac emulator for Windows, macOS and Linux that can run Mac OS 9.0 up to Mac OS X 10.5

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
User avatar
celebi23
Granny Smith
Posts: 101
Joined: Wed Jun 18, 2008 5:53 am

Possible to have more than 1 cd recognized?

Post by celebi23 »

I was wondering if it's possible to have more than 1 cd recognized in Qemu?
User avatar
Cat_7
Expert User
Posts: 6169
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Possible to have more than 1 cd recognized?

Post 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
User avatar
celebi23
Granny Smith
Posts: 101
Joined: Wed Jun 18, 2008 5:53 am

Re: Possible to have more than 1 cd recognized?

Post by celebi23 »

Awesome! Thanks!
User avatar
celebi23
Granny Smith
Posts: 101
Joined: Wed Jun 18, 2008 5:53 am

Re: Possible to have more than 1 cd recognized?

Post 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).
User avatar
Cat_7
Expert User
Posts: 6169
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Possible to have more than 1 cd recognized?

Post 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
User avatar
Cat_7
Expert User
Posts: 6169
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Possible to have more than 1 cd recognized?

Post 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
Post Reply