Installing Solaris 8 for Sparc using qemu

Following on from a previous post on installing Solaris on an emulated Spacrstation using QEMU, I’ve been attempting to install on a Sun Ultra 5 with a flakey cdrom drive, and wanted to step through the install steps first on an emulated machine (since the life of the used cdrom drive I picked up from ebay may be limited).

qemu-system-sparc -M SS-20 -m 128 -drive file=sparc_sol8_2.qcow2,bus=0,unit=0,media=disk -drive file=../solaris8_sparc_disk1.iso,bus=0,unit=1,media=cdrom,readonly=on

Adding -nographics option to the above command makes things little easier, since we don’t really need the graphical installer at this point, and this more closely mirrors what I’m seeing with my attempted install on the actual Ultra 5 which I’m installing over a text terminal connected to the serial port.

After reaching the openbios prompt, booting with boot cdrom:d -vs gets you to a Single User prompt where you can continue the required steps to format the disk first, before rebooting and continuing without the -vs option.

After boot:d :

Skipped a few steps, confirming network config.

This is the step I’m interested in using as a workaround for the flakey cdrom drive. Can I mount an NFS drive containing the content of the install cdrom and install from the network? (I’ve already gone down the path of trying to setup a jumpstart/netboot config and couldn’t get the machine to find a netboot host, so that din’t turn out to be a workable option) :

I couldn’t get this to connect to my NFS share on another Solaris 10 VM, so not sure this was as useful as I thought it might be, but I could continue and complete the install anyway.

Using curl as a smtp client to send an email

curl can be used to send a test email to a smtp server like this:

curl smtp://localhost:2525 --mail-from "test-sender@test.com" --mail-rcpt "test1@test.com" --upload-file test-email.txt

Where test-email.txt contains you test email content:

From: "User Name" <test-sender@test.com>
To: "Test1" <test1@test.com>
Subject: Test email 1

This is a test email

If you also add the -v verbose option for curl you can see the STMP exchange with the server:

* Host localhost:2525 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying [::1]:2525...
* Connected to localhost (::1) port 2525
< 220 af54c17beae6 smtp4dev ready
> EHLO test-email.txt
< 250-Nice to meet you.
< 250-8BITMIME
< 250-SIZE
< 250-SMTPUTF8
< 250-AUTH=CRAM-MD5 PLAIN LOGIN XOAUTH2
< 250 AUTH CRAM-MD5 PLAIN LOGIN XOAUTH2
> MAIL FROM:<test-sender@test.com> SIZE=114
< 250 New message started
> RCPT TO:<test1@test.com>
< 250 Recipient accepted
> DATA
< 354 End message with period
} [119 bytes data]
* upload completely sent off: 119 bytes
< 250 Mail accepted
104 114 0 0 104 119 0 2075 --:--:-- --:--:-- --:--:-- 2087
* Connection #0 to host localhost left intact

Mac OS 9 install on Sheepshaver (MacOS)

Follow the install and setup guide of Sheepshaver here. In summary:

  • Download SheepShaver latest version zip
  • Download the ‘SheepSaver folder’ zip that contains required scripts
  • Move the SheepSaver.app into the SheepShaver folder
  • Download a Mac OS 9 install cd iso (e.g. from Machintosh Garden) – 9.0.4 works with SheepShaver – place in SheepShaver folder
  • Download a ROM (e,g. ‘New World PPC ROM’), unzip, move into SheepShaver folder and rename it ‘Mac OS ROM

Start SheepShaver, you’ll get the missing startup disk:

Open Preferences:

  • Create a disk
  • Point ROM file to the ROM you downloaded
  • Change the Unix root to point to a shared folder
  • Add the ,toast file for the OS 9 install cd and select ‘cdrom’
  • Update the RAM
  • Set the video to Windowed

Save and Quit, and then restart!

If the .toast file is not bootable it might be compressed. Use MacOS Disk Utilities, Image/Convert, select ‘DVD/CD Master’ as the format, and save it as a ‘.cdr’ file. When done, rename the file to ‘.iso’ and add that as a cdrom disk in SheepShaver Preferences instead of the ‘.toast’ file.

Restart!

Format the empty disk when prompted:

Double-click the ‘Mac OS Install’ app to start the install from the mounted cd iso image, to the disk:

If the installer gets stuck here:

… quit and start the install again, press the Option button and uncheck the ‘Update Apple Hard Disk Drivers’ option (mentioned in the Sheepsave install guide, and on the forum here)