Qemu package and guide for Windows available

About QEMU, 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

User avatar
adespoton
Forum All-Star
Posts: 3339
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Qemu package and guide for Windows available

Post by adespoton »

The macOS experimental build for the sound-enabled build has been out for months; only the FPU one is new. Generally, the macOS builds come out slightly before the Windows builds, although sometimes Cat_7 gets the Windows ones out first (like in the case of the FPU patch). The source is all there if you want to build it yourself.
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Yep,

It just a matter of time and convenience: creating and testing a distributable OSX build is more complex compared to creating a windows build.
I'll get to it.

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

I have just posted an experimental Windows build that should solve some of the keyboard issues. Find it under the experimental builds over here:

https://www.emaculation.com/forum/viewt ... =34&t=9028

When the mouse/keyboard are grabbed inside the Qemu window after a click inside the qemu window, the Windows key on a pc keyboard will no longer let the Windows start menu pop up.

Key are sent into the guest correctly:
-Using a mac keyboard everything works as expected.
-Using a pc keyboard the actual alt key is the actual mac alt key.
-Using a pc keyboard the windows key is the mac command key.

Physically it looks like this:
mac: (ctrl) - (alt-option) -(apple-command)
pc: (ctrl) -(apple-command) -(alt-option)

Happing testing,
Cat_7
User avatar
that-ben
Tinkerer
Posts: 96
Joined: Tue Nov 10, 2015 7:50 pm

Re: Qemu package and guide for Windows available

Post by that-ben »

Just tried 01-05-2020 and it's working great with sound! Thank god for the windows key fix. Have to say tough, I always get confused with the option and command keys under QEMU. SheepShaver got it right but QEMU got it backwards :P

Quick note about the windows key fix: It still pops up when you only hit the windows key, but at least it prevents the windows menu from popping up when you press a key combo that includes the windows key (e.g. CMD + W to close a window inside Mac OS)

Sound does not work for me under qemu-system-ppc-screamer-50-hardfloat.exe
swordlink1
Tinkerer
Posts: 68
Joined: Fri Jul 05, 2019 10:10 pm

Re: Qemu package and guide for Windows available

Post by swordlink1 »

How do I get ppc64 download?
If you need more info, tell me ;)
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

here: https://qemu.weilnetz.de/w64/
fyi: it will not run any mac os/osx guests.

Best,
Cat_7
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Two new qemu-system-ppc for Windows builds have landed in the first post of this thread.
One from official source, one with screamer sound support and fpu speed-up.

There is now support for serial port communication over USB connections. Read the first post on how to enable that.
I'll be interested to see with which usage you come up ;-)

Best,
Cat_7
WizKid
Tinkerer
Posts: 68
Joined: Sun Jul 31, 2016 11:58 pm

Re: Qemu package and guide for Windows available

Post by WizKid »

Cat_7 wrote: Wed Dec 09, 2020 8:38 am Two new qemu-system-ppc for Windows builds have landed in the first post of this thread.
One from official source, one with screamer sound support and fpu speed-up.

There is now support for serial port communication over USB connections. Read the first post on how to enable that.
I'll be interested to see with which usage you come up ;-)

Best,
Cat_7
Is there a command line option to disable the fpu speedup, so it acts more like the 5.1 screamer build?

And where are the updated patches?
User avatar
adespoton
Forum All-Star
Posts: 3339
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Qemu package and guide for Windows available

Post by adespoton »

I just realized something that may be messing people up on Windows.

On Linux and macOS, line wraps are written using the "\" character.
On Windows in cmd.exe, batch file line wraps are written using the "^" character.
However, in PowerShell, line wraps are written using the "`" character.

So if you try to run the batch file from PowerShell, you may find it breaks. Replacing the ^'s at the end of the lines with `'s should fix this.

Since most people are probably using Windows 10 with PowerShell now, should we create a .ps1 script as well as a .bat script for starting QEMU? Or just keep it simple (as the .bat script should run fine, it's just going to be a problem if someone copies and pastes to a powershell command line)?
User avatar
Medik_AOL
Space Cadet
Posts: 5
Joined: Fri Feb 12, 2021 3:56 am

Re: Qemu package and guide for Windows available

Post by Medik_AOL »

My vm MAC OS 9.2.2 don't start,it only runs with a disk (cd/rom) my .bat-qemu-system-ppc.exe -L pc-bios -boot с -M mac99,via=pmu -m 512 ^
-prom-env "auto-boot?=true" -prom-env "boot-args=-v" -prom-env "vga-ndrv?=true" ^
-drive file=macos-922-uni.iso,format=raw,media=cdrom ^
-drive file=MacOS9.2.img,format=raw,media=disk ^
-sdl ^
-netdev user,id=network01 -device sungem,netdev=network01 ^
-device VGA,edid=on
:sad: help :sad:
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Hi,

Have you been able to install Mac OS 9.2 on the hard disk? From where did you get your bat file?
If you did succeed to install then you should be able to boot with:

qemu-system-ppc.exe ^
-L pc-bios ^
-boot с ^
-M mac99,via=pmu ^
-m 512 ^
-drive file=MacOS9.2.img,format=raw,media=disk ^
-sdl

Take care that there are no spaces after the ^ that end each line. If it will not work, put all arguments on one line:
qemu-system-ppc.exe -L pc-bios -boot с -M mac99,via=pmu -m 512 -drive file=MacOS9.2.img,format=raw,media=disk -sdl

Best,
Cat_7
User avatar
waldiamiga
Space Cadet
Posts: 4
Joined: Thu Nov 22, 2018 7:51 pm
Location: Poland, Krakow

Re: Qemu package and guide for Windows available

Post by waldiamiga »

Someone can prepare 6.0 rc0 version for win64. I have too little skill. Thanks
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Hi,

There is not much use in making a version of 6.0 rc0. I can't see any changes useful to us. If there would have been, I would have made new builds earlier.
Perhaps I'll make new versions when the final 6.0 source code is released.

Best,
Cat_7
phed
Student Driver
Posts: 15
Joined: Fri Jan 14, 2005 10:05 pm

Re: Qemu package and guide for Windows available

Post by phed »

Cat_7 wrote: Wed Dec 09, 2020 8:38 am There is now support for serial port communication over USB connections. Read the first post on how to enable that.
I'll be interested to see with which usage you come up ;-)
Best,
Cat_7
How can I connect a serial device?
User avatar
adespoton
Forum All-Star
Posts: 3339
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Qemu package and guide for Windows available

Post by adespoton »

phed wrote: Fri Apr 09, 2021 12:43 am
Cat_7 wrote: Wed Dec 09, 2020 8:38 am There is now support for serial port communication over USB connections. Read the first post on how to enable that.
I'll be interested to see with which usage you come up ;-)
Best,
Cat_7
How can I connect a serial device?
You'll need a USB to serial adapter that supports the type of serial device you're trying to connect. Then you just use the instructions in the first post in this thread to connect to the device from QEMU.
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Hi,

To open a serial connection to the host, you do not need an usb-serial adapter. What Qemu offers is to open a serial connection to the host through its USB emulation.
See our guide here: https://www.emaculation.com/doku.php/pp ... o_the_host

Best,
Cat_7
thom75
Student Driver
Posts: 24
Joined: Sat May 06, 2017 6:40 pm

Re: Qemu package and guide for Windows available

Post by thom75 »

Hi Cat_7,
Can you advise new command lines for compiling Linux build? Old fails with:
> ./configure --target-list="ppc-softmmu" --enable-gtk --enable-sdl
Using './build' as the directory for build output

ERROR: Cannot find Ninja
and then obviously:
> make
changing dir to build for make ""...
make[1]: Entering directory '/mnt/.../qemu-screamer/build'
make[1]: Makefile: No such file or directory
make[1]: *** No rule to make target 'Makefile'. Stop.
make[1]: Leaving directory '/mnt/.../qemu-screamer/build'
make: *** [GNUmakefile:11: all] Error 2
Kind regards
Thom75
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Hi,

The command line is OK, but ninja is a new dependency for building. So you need to install ninja for your distribution.

Best,
Cat_7
thom75
Student Driver
Posts: 24
Joined: Sat May 06, 2017 6:40 pm

Re: Qemu package and guide for Windows available

Post by thom75 »

Thanks Cat_7,

It's build fine now. It's funny even that was kind of obvious, wasn't at same time.

Kind regards
Thom
User avatar
Medik_AOL
Space Cadet
Posts: 5
Joined: Fri Feb 12, 2021 3:56 am

Re: Qemu package and guide for Windows available

Post by Medik_AOL »

Well, hello evr. i want setup mac os 10.0 on qemu, but i rember is need -mc??? comand. like i use mac99 and is work soo bad :shock:
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Hi,

What is you current command line?

Best,
Cat_7
User avatar
Medik_AOL
Space Cadet
Posts: 5
Joined: Fri Feb 12, 2021 3:56 am

Re: Qemu package and guide for Windows available

Post by Medik_AOL »

qemu-system-ppc.exe -L pc-bios -M g3beige -m 1024 -boot с -drive file=MacOS4GB.img,format=raw,media=disk drive file=10.iso,format=raw,media=cdrom -netdev user,id=network01 -device sungem,netdev=network01

Now is have mac os x public beta (just i give up :sad:) now is just dont boot
mr_glide
Space Cadet
Posts: 4
Joined: Wed May 05, 2021 7:26 pm

Re: Qemu package and guide for Windows available

Post by mr_glide »

Hi,

I'm trying to install MacOS 9.2.2 on Windows 10, and I'm having issues with even starting the install process, specifically the QEMU.bat file. Some details as to how far I've gotten:
  • QEMU version: Qemu-Win64-5.2-09-12-2020
  • The blank QEMU disk image has been generated
  • I have have my MacOS 9.2.2 ISO
  • Amended included QEMU batch file with code from the instruction page with paths added:
qemu-system-ppc.exe ^
-L pc-bios ^
-M mac99,via=pmu ^
-m 512 ^
-sdl ^
-boot d ^
-drive "file=C:\Users\Carillon AC-1\Documents\MacOS_9-2_files\Apple Mac OS 9.2.2 [PowerMac G4]\Mac OS 9.2.2.iso",format=raw,media=cdrom ^
-drive "C:\Users\Carillon AC-1\Documents\MacOS_9-2_files\Qemu-Win64-5.2-09-12-2020\MacOS9.2.img",format=raw,media=disk


The issue is that, when I run the /bat file, the Command Prompt window flashes up for a fraction of a second, and nothing happens. I grabbed a screencap of what is in the window, if that helps.
https://drive.google.com/file/d/1A68p-G ... sp=sharing

I'm unfamiliar with the processes involved, so I don't have a clue where to start looking for errors - it might be something really obvious to someone else! Any advice would be appreciated.
User avatar
Cat_7
Expert User
Posts: 5336
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu package and guide for Windows available

Post by Cat_7 »

Hi,

The flash indicates one or more errors on your command line. I think you're almost there, just some minor issues. Next time you might want to start the bat file from a command window. That way Qemu will at least give you some info on what is going wrong. If issues remain you might want to first try to simplify your paths to iso and disk by putting them in your Qemu folder. I never use file or folder names with spaces etc, removing the need to put arguments in quotes.

qemu-system-ppc.exe ^
-L pc-bios ^
-M mac99,via=pmu ^
-m 512 ^
-sdl ^
-boot d ^
-drive file="C:\Users\Carillon AC-1\Documents\MacOS_9-2_files\Apple Mac OS 9.2.2 [PowerMac G4]\Mac OS 9.2.2.iso",format=raw,media=cdrom ^
-drive file="C:\Users\Carillon AC-1\Documents\MacOS_9-2_files\Qemu-Win64-5.2-09-12-2020\MacOS9.2.img",format=raw,media=disk

Please note that when ending a line with a caret, there should never be anything (like a space) behind it. Just an enter to get to the next line. Also, there should never be a caret behind the last line.
The above seems OK in that respect.

Best,
Cat_7
mr_glide
Space Cadet
Posts: 4
Joined: Wed May 05, 2021 7:26 pm

Re: Qemu package and guide for Windows available

Post by mr_glide »

Cat_7 wrote: Wed May 05, 2021 9:42 pm Hi,

The flash indicates one or more errors on your command line. I think you're almost there, just some minor issues. Next time you might want to start the bat file from a command window. That way Qemu will at least give you some info on what is going wrong. If issues remain you might want to first try to simplify your paths to iso and disk by putting them in your Qemu folder. I never use file or folder names with spaces etc, removing the need to put arguments in quotes.

qemu-system-ppc.exe ^
-L pc-bios ^
-M mac99,via=pmu ^
-m 512 ^
-sdl ^
-boot d ^
-drive file="C:\Users\Carillon AC-1\Documents\MacOS_9-2_files\Apple Mac OS 9.2.2 [PowerMac G4]\Mac OS 9.2.2.iso",format=raw,media=cdrom ^
-drive file="C:\Users\Carillon AC-1\Documents\MacOS_9-2_files\Qemu-Win64-5.2-09-12-2020\MacOS9.2.img",format=raw,media=disk

Please note that when ending a line with a caret, there should never be anything (like a space) behind it. Just an enter to get to the next line. Also, there should never be a caret behind the last line.
The above seems OK in that respect.

Best,
Cat_7
Thanks for such a quick response - normally, I don't expect anything til the next day at least!

Scratch my first post submission (if indeed you read it before this edit), as I managed to find a bootable ISO, and I have Mac OS 9.2.2 running, which is very exciting...
Last edited by mr_glide on Thu May 06, 2021 12:20 am, edited 1 time in total.
Post Reply