Qemu-system-m68k for macOS to run MacOS 7.1-8.1

About Qemu-system-m68k, a m68k Mac emulator for Windows, macOS and Linux that can run MacOS 7.1 to 8.1, AUX 3.x and NetBSD

Moderators: Cat_7, Ronald P. Regensburg

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

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by adespoton »

marbre wrote: Thu Sep 01, 2022 10:02 pm This article describes how to connect a System 7 machine to a OS X file server. Would it work for vm?
Yes; I was actually going to suggest MacNFS as an alternative, but it's slightly more complicated to set up, and has edge cases you don't find with a client/server solution like Hotline.

That said, it's what I personally use :)
User avatar
SolraBizna
Inquisitive Elf
Posts: 32
Joined: Mon Sep 27, 2021 1:39 am

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by SolraBizna »

marbre wrote: Thu Sep 01, 2022 10:02 pm This article describes how to connect a System 7 machine to a OS X file server. Would it work for vm?
Just tried it on MacOS 8.1. It works! But now I've accidentally enabled a desktop printer...

Edit: it works, but it is very slow and unreliable.
marbre
Inquisitive Elf
Posts: 33
Joined: Fri Aug 12, 2022 10:16 pm

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by marbre »

adespoton wrote: Thu Sep 01, 2022 11:01 pm Yes; I was actually going to suggest MacNFS as an alternative, but it's slightly more complicated to set up, and has edge cases you don't find with a client/server solution like Hotline.

That said, it's what I personally use :)
Would you mind sharing the steps you took to get it working? I get a 'MOUNTD Error invalid username or password.'
User avatar
adespoton
Forum All-Star
Posts: 4277
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by adespoton »

marbre wrote: Sun Sep 04, 2022 6:10 pm
adespoton wrote: Thu Sep 01, 2022 11:01 pm Yes; I was actually going to suggest MacNFS as an alternative, but it's slightly more complicated to set up, and has edge cases you don't find with a client/server solution like Hotline.

That said, it's what I personally use :)
Would you mind sharing the steps you took to get it working? I get a 'MOUNTD Error invalid username or password.'
Next opportunity I have time to review how I got it working, I'll do so :) I do remember that error, but it's been years since I set it up on my disk images and computers.
marbre
Inquisitive Elf
Posts: 33
Joined: Fri Aug 12, 2022 10:16 pm

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by marbre »

I set up the shared directory in NFS Manager:

Code: Select all

System/Volumes/Data/Users/Shared/mnt -alldirs -mapall=-2:-2 -network 192... -mask 255...
I did not forward any port numbers in qemu: nsfd is 2049, I'm not certain what mountd, statd, or lockd are assigned.

Edit: I also tried the localhost address with my user-login. In this case I get a port-mapper error message.
User avatar
adespoton
Forum All-Star
Posts: 4277
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by adespoton »

marbre wrote: Wed Sep 07, 2022 3:46 am I set up the shared directory in NFS Manager:

Code: Select all

System/Volumes/Data/Users/Shared/mnt -alldirs -mapall=-2:-2 -network 192... -mask 255...
I did not forward any port numbers in qemu: nsfd is 2049, I'm not certain what mountd, statd, or lockd are assigned.

Edit: I also tried the localhost address with my user-login. In this case I get a port-mapper error message.
Hmm... you shouldn't need to forward any ports in qemu if you're running nfsd on the host. I presume your network is a 192.168 network?
marbre
Inquisitive Elf
Posts: 33
Joined: Fri Aug 12, 2022 10:16 pm

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by marbre »

adespoton wrote: Wed Sep 07, 2022 4:09 pm Hmm... you shouldn't need to forward any ports in qemu if you're running nfsd on the host. I presume your network is a 192.168 network?
That's correct, however an anonymous connection gives the mountd error. Using my osx user login (gid=80) with localhost (i.e. 127.0.0.1) gives a portmapper error. The portmapper maps RPC services to the ports they are listening on.

Code: Select all

netstat -an | grep 2049
tcp6       0      0  *.2049                 *.*                    LISTEN     
tcp4       0      0  *.2049                 *.*                    LISTEN     
udp6       0      0  *.2049                 *.*                               
udp4       0      0  *.2049                 *.*     

rpcinfo -p
   program vers proto   port
    100000    2   udp    111  rpcbind
    100000    3   udp    111  rpcbind
    100000    4   udp    111  rpcbind
    100000    2   tcp    111  rpcbind
    100000    3   tcp    111  rpcbind
    100000    4   tcp    111  rpcbind
    100024    1   udp    664  status
    100024    1   tcp   1021  status
    100021    0   udp    770  nlockmgr
    100021    1   udp    770  nlockmgr
    100021    3   udp    770  nlockmgr
    100021    4   udp    770  nlockmgr
    100021    0   tcp   1017  nlockmgr
    100021    1   tcp   1017  nlockmgr
    100021    3   tcp   1017  nlockmgr
    100021    4   tcp   1017  nlockmgr
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100005    1   udp    735  mountd
    100005    3   udp    735  mountd
    100005    1   tcp   1023  mountd
    100005    3   tcp   1023  mountd
    100011    1   udp    818  rquotad
    100011    2   udp    818  rquotad
    100011    1   tcp    999  rquotad
    100011    2   tcp    999  rquotad
marbre
Inquisitive Elf
Posts: 33
Joined: Fri Aug 12, 2022 10:16 pm

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by marbre »

Having sorted it all out, my setup is as follows:

In /etc/exports

Code: Select all

/System/Volumes/Data/Users/Shared/mnt -alldirs -mapall=-2:-2 localhost
In /etc/nfs.conf

Code: Select all

# Generated automatically by NFS Manager 2022-09-10 01:11:33 +0000
nfs.server.mount.require_resv_port = 0
Note that from inside the m68k guest, connecting to a port on the "gateway" IP address (10.0.2.2) will connect to that port on the host. Adding server "10.0.2.2" in MacNFS will mount the shared directory "mnt". I have also limited access to localhost.
User avatar
adespoton
Forum All-Star
Posts: 4277
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by adespoton »

Thanks for the update!

I just realized, I should probably test all this soon, as my LAN network sits on 10.0.2.* -- could lead to some interesting results.
User avatar
Nowhere Man
Student Driver
Posts: 19
Joined: Sun Sep 30, 2018 4:38 am

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by Nowhere Man »

So, I have yet to get this thing to work. Coming back to it this evening, I downloaded the Mac OS build from the thread to try on my MacBook Air, followed the instructions with a Quadra 800 ROM, and am simply getting a white screen when I run the .command. Same with a Performa 630 and Performa 600 ROM. I made sure to add -display cocoa as per the instructions.
User avatar
Cat_7
Expert User
Posts: 6172
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by Cat_7 »

I assume you are not using the correct rom. It has to be a rom for the q800 with checksum 0xf1acad13, no others will work.
Can you paste the content of your command file?

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

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by adespoton »

List of Apple ROMs with hashes is here:
https://docs.google.com/spreadsheets/d/ ... Dk7QDyKPY/

ROM in question is currently highlighted in green on line 48.
User avatar
Nowhere Man
Student Driver
Posts: 19
Joined: Sun Sep 30, 2018 4:38 am

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by Nowhere Man »

adespoton wrote: Fri Jul 21, 2023 3:22 pm List of Apple ROMs with hashes is here:
https://docs.google.com/spreadsheets/d/ ... Dk7QDyKPY/

ROM in question is currently highlighted in green on line 48.
Thank you for the replies, guys! Yes, it was indeed the wrong ROM. Now I just have to work out how to get it to boot! It doesn't like my System 7.5.3 ISO for some reason, but I imagine I can dig up something that will work. hopefully the Garden will have a good system restore ISO for it.
User avatar
Nowhere Man
Student Driver
Posts: 19
Joined: Sun Sep 30, 2018 4:38 am

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by Nowhere Man »

It sure is picky about booting from CD images. Finally got it to a desktop and the installer using a Mac OS 8.1 ISO. It did not like any of the 7.x images I threw at it. Do .toast images work? I'm surprised at how many images just wouldn't boot (stuck at the blinking ?).
User avatar
adespoton
Forum All-Star
Posts: 4277
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by adespoton »

Nowhere Man wrote: Fri Jul 21, 2023 5:23 pm It sure is picky about booting from CD images. Finally got it to a desktop and the installer using a Mac OS 8.1 ISO. It did not like any of the 7.x images I threw at it. Do .toast images work? I'm surprised at how many images just wouldn't boot (stuck at the blinking ?).
I used floppy disk images, and they worked.
User avatar
jonirob
Tinkerer
Posts: 76
Joined: Tue Jan 29, 2019 6:03 pm

Re: Qemu-system-m68k for macOS to run MacOS 7.1-8.1

Post by jonirob »

Nowhere Man wrote: Fri Jul 21, 2023 5:23 pm It sure is picky about booting from CD images. Finally got it to a desktop and the installer using a Mac OS 8.1 ISO. It did not like any of the 7.x images I threw at it. Do .toast images work? I'm surprised at how many images just wouldn't boot (stuck at the blinking ?).
This excellent CD, "Apple Legacy Software Recovery CD" from Macintosh Garden is bootable in Qemu-system-m68k (also in SheepShaver, Basilisk II and Mame) and contains System 1.0 to Mac OS 8.1, (7.1 to 8.1 all install and run in Qemu) plus disk formatting software and many more goodies.
Post Reply