Ok, you may or may not be aware that mac have a different architecture to pc's, pc typically are refered to as x86, whereas macs are called power pc's (ppc for short), the reason qemu doesn't work with the command:
qemu -cdrom /dev/cdrom -boot d hdd.img
is because the qemu
command emulates a x86 architecture, you need to emulate a ppc architecture.
luckily the writters of qemu have thought about all this architecture stuff and if you open a console window, type qemu and hit the tab key you should get something like this:
qemu qemu-fast qemu-img qemu-sparc
qemu-arm qemu-i386 qemu-ppc qemu-system-ppc
Each of these are different emulators. I'll give a very brief description:
qemu - emulates x86 architecture for windows, linux etc,
qemu-fast - same as qemu but fastest, and I think, slightly less stable but not sure on that one,
qemu-img - creates/edits/converts the .img file which qemu uses as the HD for the OS you want to emulate,
qemu-ppc - emulate a ppc environment for a program, i.e. like wine but for ppc programs (iTunes etc)
qemu-system-ppc - emulates a ppc architecture for MacOSX.
The others emulate various other architecture but I haven't used them so don't know much about them.
So, the command you actually want is:
qemu-system-ppc -cdrom /dev/cdrom -boot d hdd.img
(Note that since you refer to the cdrom as /dev/cdrom you don't actually have to mount it)
I've tried this and it boots MacOSX but tells me I need to restart everytime so I haven't got it working yet but that's the command you need to use.
If you get it working post how cause I desperately want to play with OSX!!!!
Hope this helps