QEMU/Guests/Mac OS 9 and How to emulate the Apple Lisa: Difference between pages

From Computernewb Wiki
(Difference between pages)
Jump to navigation Jump to search
No edit summary
 
(wip)
 
Line 1: Line 1:
[[File:MacOS9.2 Desktop.png|thumb|Mac OS 9.2 desktop]]
'''LisaEM''' is a free open-source emulator that emulates the original Apple Lisa. The [https://en.wikipedia.org/wiki/Apple_Lisa Lisa] was one of the first PCs to include a GUI. You can run the original Lisa Office System OS as well as every Mac OS version up to System 6 using MacWorks XL.
'''Mac OS 9''' is an operating system created and released by Apple in October of 1999. This was the final release in the classic Mac OS series. The OS was famously discontinued in 2002 with a mock funeral by Steve Jobs at the Apple Worldwide Developers Conference.
 
This article will describe in detail how to install Mac OS 9.2 with mouse drivers, sound, networking, and graphics. This tutorial should work with Mac OS 9.0 and 9.1 (which needs an additional flag; more details below).
 
==Before you start==
Versions of Mac OS prior to 10.4 (Tiger) did not run on x86 hardware. Instead, it used a PowerPC CPU. Because of this, it's not possible to run this OS with KVM, so we'll need to use pure software emulation, which may be a little slow but shouldn't be agonizing if you're on a newer PC.
 
You can grab a Mac OS 9.2.1 ISO from [https://winworldpc.com/product/mac-os-9/92 WinWorldPC].


==Installation==
==Installation==
===Pre-installation===
===Pre-installation===
As always, the first thing we want to do is create the hard disk image by opening the Terminal or Command Prompt and typing this:
Download the emulator from [Sunder https://lisa.sunder.net/downloads.html]. The latest version, as of this writing, is 1.2.7 Release Candidate 4. It comes with versions for modern Windows and macOS.
 
<pre>qemu-img create -f qcow2 macos9.img 2G</pre>
 
[[How to create a disk image in QEMU|See this page for more information on how this command works.]]
 
You should see an output like this:
 
[[File:MacOS Img Created.png|700px]]
 
Now we're ready to go.
 
===Installation===
Now, we'll start QEMU like this:
<pre>qemu-system-ppc -M mac99 -m 512 -hda macos9.img -cdrom /path/to/macos-9-cd.iso -netdev user,id=mynet -device sungem,netdev=mynet -device usb-mouse -device usb-kbd -boot d</pre>
 
A breakdown of this command: <code>qemu-system-ppc</code> is the name of the QEMU emulator, of course. <code>-M mac99</code> tells it to emulate a "Mac99" model (which is a G4 Mac). QEMU also supports a Beige PowerMac G3. You can type <code>-M ?</code> for a full list. <code>-m 512</code> adds 512 MB of RAM to the machine. The system becomes pretty unstable with more than 1 GB of RAM so I recommend setting this to about 896 MB at most. <code>-hda macos9.img</code> is the hard drive. <code>-cdrom /path/to/macos-9-cd.iso</code> adds a CDrom drive, which needs to be changed to point to the Mac OS ISO. <code>-netdev user,id=mynet</code> adds a virtual "user" network and sets up some network configuration. It'll also attach to your host's LAN. <code>-device sungem,netdev=mynet</code> adds a virtual NIC (in this case, a SunGEM network card) and assigns it to the virtual network specified before. <code>-device usb-mouse</code> and <code>-device usb-kbd</code> add a USB mouse and keyboard which will allow for much better input (especially if you are hosting this on [[CollabVM]]). And finally, <code>-boot d</code> tells the machine to boot from the CD-ROM drive.
 
If you are installing Mac OS 9.0 or 9.1, you will need to add <code>-cpu G3</code> to the flags for it to work.
 
With all that in mind, we are now ready to start.
 
When you start QEMU, you should see a yellow screen with some details like this:
 
[[File:MacOS OpenBIOS.png]]
 
The system should begin starting up after a few seconds:
 
[[File:MacOS StartingUp.png]]
 
It usually takes around a minute to start, but if you're on a slower/older machine it may take several minutes. When it's done it should drop you into a live Mac OS 9 environment like this:
 
[[File:MacOS Live.png]]
 
Click the "Utilities" folder. Open the "Drive Setup" utility and initialize the volume (labeled <not initialized>).
 
[[File:MacOS Initalize.png]]
 
It'll warn you that it will destroy all data on the volumes. Click Initialize and proceed. It will partition the disk, and then we can proceed with the installation. Go back to the root CD folder and click "Install Mac OS 9.2.1" (or whatever version). Click Continue, make sure the Destination Disk is the one you just initialized, accept the software license agreement, and click "Start" to begin the installation.
 
[[File:MacOS Install.png|200px]] [[File:MacOS Destination.png|200px]] [[File:MacOS Agreement.png|200px]] [[File:MacOS Agreement2.png|200px]] [[File:MacOS Start.png|200px]]
 
The system will now install. It will give an ETA of about 7 minutes usually but it might take longer to actually install. Just sit back, let it do its thing, go watch some YouTube videos or something while it does this.  


[[File:MacOS Installing.png]]
We will also want to download the OS itself. You can download the last version of the Lisa Office System from MEGA [https://mega.nz/file/dB9niAhL#psTMJAw8qCKgjlZlgnUQH6p3NUbEYJ3AxFX_PY8Qi0w here]. Extract the .rar somewhere on your system.


When it's done installing you will get a message box asking if you want to exit or continue to install other software. Choose "Continue" and close out of QEMU (press Ctrl+ALT+G to release the mouse grab). Change the <code>-boot d</code> flag to <code>-boot c</code> so that it boots to the new image, like so:
Next we will start start the program. You should see something like this (photo downsized, click on it for a full screenshot):


<pre>qemu-system-ppc -M mac99 -m 512 -hda macos9.img -netdev user,id=mynet -device sungem,netdev=mynet -device usb-mouse -device usb-kbd -boot c</pre>
[[File:LisaEM.png|400px]]


You may also remove the CD rom if you want. You will see the same yellow boot screen as before, and if all went well, you should see this (you may have to jiggle your mouse a bit to make it actually load):
What's cool is that you interact with the PC by clicking on either the floppy drive or the power button. For now, click on the floppy disk icon (highlighted) and locate the <code>Lisa Office System (1984)(Apple)(Disk 1 of 5).image</code> file.


[[File:MacOS StartingUp2.png]]
[[File:LisaEM Floppy.png]]


And if all went well, you should be in the desktop! Hooray!
[[File:LisaEM Floppy 2.png]]


[[File:MacOS Desktop.png]]
You will see an animation play and the disk will be inserted. Click on the white power button below the main screen.


You may have a "Setup Assistant" appear. You can go through and set everything up or close it, it doesn't matter much, though it will help you set up some basic network functions like shared folders and the like, so I recommend it. It's a very simple wizard.
[[File:LisaEM Power.png]]


===Software===
A window will come up asking you which device the Lisa should boot from. Select "Floppy Diskette" and hit OK.
Mac OS 9 had lots of software released for it back in the day, and fortunately, a lot of it was preserved thanks to the efforts of [https://macintoshgarden.org/ Macintosh Garden] and the Internet Archive. Pretty much every major software for OS 9 is on Macintosh Garden, so I recommend checking that one out first. At the end of this tutorial I'll list some useful software.


===Sound===
[[File:LisaEM Diskette.png]]

Revision as of 01:28, 4 April 2023

LisaEM is a free open-source emulator that emulates the original Apple Lisa. The Lisa was one of the first PCs to include a GUI. You can run the original Lisa Office System OS as well as every Mac OS version up to System 6 using MacWorks XL.

Installation

Pre-installation

Download the emulator from [Sunder https://lisa.sunder.net/downloads.html]. The latest version, as of this writing, is 1.2.7 Release Candidate 4. It comes with versions for modern Windows and macOS.

We will also want to download the OS itself. You can download the last version of the Lisa Office System from MEGA here. Extract the .rar somewhere on your system.

Next we will start start the program. You should see something like this (photo downsized, click on it for a full screenshot):

What's cool is that you interact with the PC by clicking on either the floppy drive or the power button. For now, click on the floppy disk icon (highlighted) and locate the Lisa Office System (1984)(Apple)(Disk 1 of 5).image file.

You will see an animation play and the disk will be inserted. Click on the white power button below the main screen.

A window will come up asking you which device the Lisa should boot from. Select "Floppy Diskette" and hit OK.