I have Solaris 7 SPARC and Intel platform edition on original CD release. I can't remember from where I received it. But still it is old and it's Unix so I want to try it out.
First I tried to boot the Intel version, because I have an x86 machine. But I failed, I did manage to boot from the floppy but it crashed due to no root filesystem or something like that.
Then I stumbled over Qemu sparc emulator, so I googled and finnaly I got enough information to get the Solaris 7 SPARC Edition running.
My host machine is running as a type 1 hypervisor so I have no Xorg installed. That is why I decided to use VNC for my graphical output.
After lots of messing around with different parameters and googling stuff I finnaly got it working.
First, create a hard drive image file
qemu-img create -f qcow2 hd.qcow2 5G
the install manual says it will require 700Mb so 5Gb should be plenty.
I had the machine booting several times, but everything went white and then just poof back to the "BIOS" rom prompt.
No error message and I don't know Solaris Unix to find out how to get any error messages from it. But I thought it had to do with med using VNC, and after a bit of testing and more googling I found out
-vga cg3 must be used to get graphics
qemu-system-sparc -M SS-5 -m 256 \ -drive file=hd.qcow2,bus=0,unit=0,media=disk \ -drive file=solaris7sparc.iso,bus=0,unit=2,media=cdrom,readonly=on \ -boot once=d \ -vga cg3 \ -vnc :0
So finnally it booted into the graphical installer. Just remember the mouse does not work properly using VNC as graphical viewer. This is because VNC sends exact mouse positions more like a touchscreen. Normally libvirt emulates an USB Tablet for this purpose, but Solaris 7 does not know anything about USB Tablets. Then I went ahead and clicked through the installer, and suddenly it crashed again. But this time I at least got some error message, and the disk needs formatting. Clicking OK will leave you with the Solaris Install Console. So why not use it to format the disk.
To format the disk type
format then when the prompt to enter a number for a disk just enter 0 for the first disk and then it prompt for available drive types. None of them match Qemu drive, I tried to go the
16 other route. But then you need to specify the drive geometry, was to lazy to calculate that. I restarted the installer and when I got back I just tried the biggest SUN drive, SUN2.9G number 15. There is no real hardware behind this, so the geometry of the drive does not really matter anyway.
Now the disk is formatted, but the error in the console also mentioned corrupt label. So lets create a label by typing
label at the
Format> prompt and answer
y on the question. I did run it twice because it was giving me an error the first time, don't know it if made any difference. Then type
q to quit the format software, then type reboot to reboot and restart the installer.
because we have the
-boot once=d parameter it will no longer auto boot from CD, so at the "BIOS" Rom prompt just type
boot cdrom:d and it will boot from the CD.
Now when the installer starts again and we click our way through the installer it will no longer crash due to unformatted drive, and we get to this next phase in the installer.
I just clicked
Continue until I got to the Select Software place
where I selected everything, except the 64 Bit support because I am running the 32 bit emulator
qemu-system-sparc and not
Then just keep on clicking
Continue most of the stuff is pre selected.
I have no idea how to partition a Solaris disk, so just use
And accept the default settings
After a bit more
Continue clicking we finnaly get to the last part of this phase, just hit
Auto Reboot and it will reboot and start from the harddrive (because we used the
-boot once=d flag earlier)
After a long install the virtual machine will finally reboot and you will be prompted to enter a root password, twice as usual. This system is old and can handle max 8 characters as a password, odd limitation compared to password limitations today.
Finally the installation is complete, you can login as
root and the password you entered earlier during boot.
The mouse pointer still behaves wierd. I found it easier logging in using CDE desktop environment (you choose on the
Options button at login). Then find the Style Manager - Mouse settings and change the Acceleration to 1.0
After this the mouse behaves a lot better for me.