Introduction
In the previous tutorial we showed the exact steps needed for configuring, compiling and installing Qemu for Sparc32 support on Fedora Linux.
The goal of this article is to describe detailed steps of installation Solaris 2.6 Sparc (SunOS 5.6) into Qemu image. The Qemu image may be used for quick testing of Cisco IOU binary images compiled for Sparc platform.
Unfortunately I managed to install Solaris into SS-5 only so we are restricted to maximum 256 MB RAM. As you can imagine this RAM size is not convenient for running complex topology with multiple IOU instances. After reinstallation qemu-system-sparc to version 0.1.50 a problem has gone.
Assuming we have patched Qemu binary compiled for Sparc support and installed in /usr/local/ directory we can go ahead with Solaris installation.
1. Before Install Steps
Download Solaris Install CD, create Qemu Hardisk and start installation.
a) Prepare Solaris 2.6 Installation CD
Try to find torrent file or use Oracle download page.
b) Create Qemu Hard Disk
$ /usr/local/bin/qemu-img create -f qcow2 36G.disk 36G
c) Start OS Installation
$ /usr/local/bin/qemu-system-sparc -bios /usr/local/share/qemu/ss20_v2.25_rom -M SS-20 -nographic -boot d -hda ./36G.disk -m 512 -cdrom ./2.6/Solaris_2.6_Software_05_98.img -serial telnet:0.0.0.0:3000,server -smp 2,cores=4 -cpu "TI SuperSparc 60"
QEMU waiting for connection on: telnet:0.0.0.0:3000,server
Explanation
- M SS-20 - type of Solaris VM
- boot d - boot from CDROM
- m 512 - 512 MB RAM
- serial telnet:0.0.0.0:3000,server - redirect output of serial port to the telnet server
d) Telnet to localhost
After successful telnet to localhost you can see boot of Solaris. Boot stops on "Can't open boot device" message. Enter following commands:
ok setenv sbus-probe-list f
sbus-probe-list = f
ok reset
System will be restarted. Continue and boot from Install CD with command boot disk2:d -v.
$ telnet localhost 3000
Here is the bootlog.txt.
ok boot disk2:d
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@2,0:d File and args:
SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1997, Sun Microsystems, Inc.
WARNING: /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@0,0 (sd0):
corrupt label - wrong magic number
Configuring devices...
fdintr: nobody sleeping (c0 0 0)
The system is coming up. Please wait.
2. Solaris Installation
We will go through several Menus.
a) Language Menu
Select a Language
0) English
1) German
2) Spanish
3) French
4) Italian
5) Swedish
Press 0
b) Locale Menu
Select a Locale
0) USA - English (ASCII only) 12) Lithuania
1) Czech Republic 13) Latvia
2) Denmark 14) Netherlands
3) Greece 15) Netherlands/Belgium
4) Australia - English (ISO-8859-1) 16) Norway
5) Canada - English (ISO-8859-1) 17) Poland
6) Ireland - English ( 8 bit ) 18) Portugal
7) New Zealand - English ( 8 bit ) 19) Portugal/Brazil
8) UK - English (ISO-8859-1) 20) Russia
9) USA - English (ISO-8859-1) 21) Finland
10) Estonia 22) Turkey
11) Hungary 23) Go Back to Previous Screen
Select your locale
c) Terminal Type Menu
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) Other
Type the number of your choice and press Return:
Select option 3) DEC VT100
d) The Solaris Installation Window
Press F2 to continue installation.
e) System Identification Window
Press F2 to continue.
f) Hostname Window
Type hostname and press F2 to continue.
g) Network Connectivity Window
Press F2 to continue installation.
h) IP Address Window
Type IP address - 10.0.2.15 and continue with F2 key.
i) Network Settings Confirm Window
Press F2.
j) Name Service Window
Go down with arrow key and Select option "None" with Space bar key. The new Confirm window appears, press F2 again.
k) Subnet Window
Select option YES and press F2. A new Subnet windows appears. Confirm selected subnet mask 255.255.255.0 with F2 key.
l) Time Zone Window
Select your time zone, then F2.
m) Date and Time Window
Accept date with F2 key. A new window appears, just confirm selected parameters with F2.
3. Disk Formatting
We have to format disk. This problem is described here in more detail.
http://www.geeklan.co.uk/?p=61
a) Disk Failure Window
b) Disk Formatting
Exiting (caught signal 11)
Type suninstall to restart.
# format -e
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <drive type unknown>
/iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0
Specify disk (enter its number): 0
Type 0 and press Enter.
AVAILABLE DRIVE TYPES:
0. Auto configure
1. Quantum ProDrive 80S
2. Quantum ProDrive 105S
3. CDC Wren IV 94171-344
4. SUN0104
5. SUN0207
6. SUN0327
7. SUN0340
8. SUN0424
9. SUN0535
10. SUN0669
11. SUN1.0G
12. SUN1.05
13. SUN1.3G
14. SUN2.1G
15. SUN2.9G
16. other
Specify disk type (enter its number):
Specify disk type (enter its number): 16
Enter number of data cylinders: 24620
Enter number of alternate cylinders[2]: Enter
Enter number of physical cylinders[24622]: Enter
Enter number of heads: 27
Enter physical number of heads[default]: Enter
Enter number of data sectors/track: 107
Enter number of physical sectors/track[default]: Enter
Enter rpm of drive[3600]: Enter
Enter format time[default]: Enter
Enter cylinder skew[default]: Enter
Enter track skew[default]: Enter
Enter tracks per zone[default]: Enter
Enter alternate tracks[default]: Enter
Enter alternate sectors[default]: Enter
Enter cache control[default]: Enter
Enter prefetch threshold[default]: Enter
Enter minimum prefetch[default]: Enter
Enter maximum prefetch[default]: Enter
Enter disk type name (remember quotes): Qemu36GB
selecting c0t0d0
[disk formatted]
Note If you are not sure with some parameter, use char ? for help.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
scsi - independent SCSI mode selects
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> label
Ready to label disk, continue? y
WARNING: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@0,0 (sd0):
corrupt label - wrong magic number
Vendor 'QEMU', product 'QEMU', 75497472 512 byte blocks
<Qemu36GB cyl 24620 alt 2 hd 27 sec 107>
format> q
#
# suninstall
Starting Solaris installation program...
Executing JumpStart preinstall phase...
Searching for SolStart directory...
Checking rules.ok file...
c) Solaris Installation Window
Press F2. A new window with "Allocate Client Services" offer appears. Press F2 again. Select your language in Language Window.
d) Software Window
Choose Core System Support.
e) Disk Window
Select c0t0d0 disk with Spacebar key. Press F4 several times to get to the "Select Location Root window".
Press F2 to continue and back to "Select Disk Window". Press F2 to continue installation.
f) Reconfigure EEPROM Window
Press F2 and again F2 - we do not need to preserve existing data.
g) Layout Window
Do not let Solaris to create automatic layout, press F4 for "Manual Layout".
h) File System and Disk Layout
Press F4 to customize size of your partitions on disk c0t0d0.
Press ESC-2 to confirm your choice.
ESC-2 to continue. Do not allow to mount remote server, Esc-2 to ignore an offer.
Esc-2 to continue.
i) Warning Window
Safely ignore warnings and continue with F2 key.
j) Reboot Widnow
Select "Manual Reboot" as we need to make few changes after install. Then press F2 to start installation
4. After Install Procedure
Solaris 2.6 software installation succeeded. Some additional task are required to do to get Solaris running properly after reboot.
a) According to this article we have to add following line to /a/etc/system to be able to boot from hdd.
# cat >> /a/etc/system
set scsi_options=0x58
^d
b) Make installation to be able boot in multi-user mode
All thanks go to the original author of this idea. In fact, it helps me to boot my Solaris installation in multi-user mode. So far I have got this error message when I started Solaris in multi-user mode.
Assertion failed: MUTEX_HELD(&svc_mutex), file rpc/svc_run.c, line 754
Note Single user mode worked fine.
To get a sort of multiuser boot going, we apparently need to move S73nfs.client, S74autofs, S74syslog, and S80lp out of the way. It will boot all the way to the login prompt.
Note Suns ONLY start programs beginning with capital S in the /etc/rc*.d directories upon startup, by switching the name to lowercase, you make it easy to go back and re-add the service.
# cd /a/etc/rc2.d
# mv S74xntpd s74xntpd
# mv S75cron s75cron
# mv S76nscd s76nscd
# mv S80lp s80lp
# mv S88sendmail s88sendmail
# mv S71rpc s71rpc
# mv S73nfs.client s73nfs.client
# mv S92volmgt s92volmgt
# mv S85power s85power
# mv S74autofs s74autofs
# mv S74syslog s74syslog
# mv S88utmpd s88utmpd
# mv S99audit s99audit
# mv S99dtlogin s99dtlogin
# cd /a/etc/rc3.d
# mv S15nfs.server s15nfs.server
#mv S76snmpdx s76snmpdx
# mv S77dmi s77dmi
Now you can halt the system. Start Solaris with command:
$ /usr/local/bin/qemu-system-sparc -bios /usr/local/share/qemu/ss20_v2.25_rom -M SS-20 -nographic -boot c -hda ./36G.disk -m 512 -serial telnet:0.0.0.0:3000,server -smp 2,cores=4 -cpu "TI SuperSparc 60"
Always enter setenv sbus-probe-list f and reset command. After restart boot Solaris disk from disk:
ok boot disk0 -v
After while the login prompt appears. Login to the system with a root account. Password is not set.
End.
Hello Brezular,
I am using cent os on my pc. The installation of sun solaris sparc and Qemu installation is same as Fedora Linux. If not please suggest me.
Thanks
I am also using cent os on my pc. I succeed installing solaris 2.6 on qemu by his instructions.
Trying Solaris 10 Sparc as guest on RHEL 6 X86_64
What am I doing wrong?
# qemu-system-sparc -bios ./ss5-170.bin -M SS-5 -nographic -boot d -hda /kvm2/20G.disk -m 256 -cdrom ./osol-0906-ai-sparc.iso -startdate 2009-12-13
Power-ON Reset
MB86907 POST 2.2.3 03SEP96
Probing system memory: 32 32 32 32 32 32 32 32
Config = 8800AAAA
0Kb ecache detected
initializing TLB
initializing cache
Allocating SRMMU Context Table
Setting SRMMU Context Register
Setting SRMMU Context Table Pointer Register
Allocating SRMMU Level 1 Table
Mapping RAM
Mapping ROM
ttya initialized
Probing Memory Bank #0 32 Megabytes
Probing Memory Bank #1 32 Megabytes
Probing Memory Bank #2 32 Megabytes
Probing Memory Bank #3 32 Megabytes
Probing Memory Bank #4 32 Megabytes
Probing Memory Bank #5 32 Megabytes
Probing Memory Bank #6 32 Megabytes
Probing Memory Bank #7 32 Megabytes
Incorrect configuration checksum;
Setting NVRAM parameters to default values.
Setting diag-switch? NVRAM parameter to true
Probing CPU FMI,MB86907
Probing /iommu@0,10000000/sbus@0,10001000 at 5,0 espdma esp sd st SUNW,bpp ledma le
Probing /iommu@0,10000000/sbus@0,10001000 at 4,0 SUNW,CS4231 power-management
Probing /iommu@0,10000000/sbus@0,10001000 at 1,0 Nothing there
Probing /iommu@0,10000000/sbus@0,10001000 at 2,0 Nothing there
Probing /iommu@0,10000000/sbus@0,10001000 at 3,0 Nothing there
Probing /iommu@0,10000000/sbus@0,10001000 at 0,0 Nothing there
screen not found.
Can't open input device.
Keyboard not present. Using tty for input and output.
Probing Memory Bank #0 32 Megabytes
Probing Memory Bank #1 32 Megabytes
Probing Memory Bank #2 32 Megabytes
Probing Memory Bank #3 32 Megabytes
Probing Memory Bank #4 32 Megabytes
Probing Memory Bank #5 32 Megabytes
Probing Memory Bank #6 32 Megabytes
Probing Memory Bank #7 32 Megabytes
Incorrect configuration checksum;
Setting NVRAM parameters to default values.
Setting diag-switch? NVRAM parameter to true
Probing CPU FMI,MB86907
Probing /iommu@0,10000000/sbus@0,10001000 at 5,0 espdma esp sd st SUNW,bpp ledma le
Probing /iommu@0,10000000/sbus@0,10001000 at 4,0 SUNW,CS4231 power-management
Probing /iommu@0,10000000/sbus@0,10001000 at 1,0 Nothing there
Probing /iommu@0,10000000/sbus@0,10001000 at 2,0 Nothing there
Probing /iommu@0,10000000/sbus@0,10001000 at 3,0 Nothing there
Probing /iommu@0,10000000/sbus@0,10001000 at 0,0 Nothing there
SPARCstation 5, No Keyboard
ROM Rev. 2.29, 256 MB memory installed, Serial #0.
Ethernet address 52:54:0:12:34:56, Host ID: 80000000.
Boot device: /iommu/sbus/ledma@5,8400010/le@5,8c00000 File and args:
Internal loopback test -- Wrong packet length; expected 36, observed 64
Can't open boot device
Type help for more information
ok boot disk2:d -v
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@2,0:d File and args: -v
Bad magic number in disk label
Can't open disk label package
Can't open boot device
ok
OpenSolaris and Solaris 10+ don't support 32 bit SPARC machines.
There might be something wrong with your iso.
Doesn't matter. Absolutely perfect isos with OpenSolaris or Solaris 10+ can not be installed on a 32 bit SPARC machine. Real or emulated. These OSes just don't support 32 bit SPARCs.
CORRECTION:
That's Solaris 9 not Solaris 10.
Sorry.
EGL
The file name looks like it's OpenSolaris 2009.06, which
- is 64 bit only, so vanilla qemu doesn't support it
- is not bootable. One would have to use wanboot in order to install it.
Solaris sparc SuperStation 20 in qemu
./qemu-system-sparc -m 512 -hda flash -net nic,vlan=1,macaddr=52:54:0:12:34:56 -net tap,vlan=1,ifname=tap0,script=./qemunet.sh -serial telnet:0.0.0.0:3000,server -bios ss20_v2.25_rom -M SS-20 -cpu "TI SuperSparc 60" -g 1152x900 -nographic
yes, I tried it many times but it's always freezing here:
Can't open boot device
Type help for more information
ok boot disk0
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@0,0 File and args:
SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1997, Sun Microsystems, Inc.
Don't really know what could be a reason. Here is a command:
/usr/local/bin/qemu-system-sparc -m 512 -hda ./36G.disk -net nic,vlan=1,macaddr=52:54:0:12:34:56 -net tap,vlan=1,ifname=tap0,script=no -serial telnet:0.0.0.0:3000,server -bios /usr/local/share/qemu/ss20_v2.25_rom -M SS-20 -cpu "TI SuperSparc 60" -g 1152x900 -nographic
Any suggestions? Thanks.
what Qemu version do you use?
lastest version from git
Thanks, Denzo! It helped me a lot. After upgrade to Qemu v0.1.50, it's working like charm.
your welcome
qemu 1.0.1 and solaris 2.6 + ss5.bin
if you do setenv sbus-probe-list f and reset and then try to boot disk0 -v (when you've finished installation), it doesn't work. Just skip the setenv sbus-probe-list command and go direct to disk0 -v. Works perfect to boot from virtual disk.
I can confirm success on this emulation stack booting into multi-user as per article
Solaris 2.6 -> ss5.bin BIOS -> qemu 1.0.1 -> Ubuntu 11.10 desktop -> VirtualBox -> Windows Server 2008 x64 -> Intel i5
This guide was spot on 99% of the time with the steps. Excellent work!
Yes, you are right. Command "setenv sbus-probe-list f" is only needed for SS-20 Sparc. If you are installing Solaris on SS-5 it is not needed.
The article describes installation Solaris 2.6 on SS-20, that 's why it is there.
Hi brezular,
i downloaded an already-build image "36G.disk" from internet and try to run in macbook with macosx lion.
The error message when boot :
===
Power-ON Reset
SMCC SPARCstation 10/20 UP/MP POST version VRV3.45 (09/11/95)
CPU_#0 TI, TMS390Z50(3.x) 0Mb External cache
CPU_#1 ******* NOT installed *******
CPU_#2 ******* NOT installed *******
CPU_#3 ******* NOT installed *******
<<>> IS RUNNING (MID = 00000008)
$$$$$ WARNING : No Keyboard Detected! $$$$$
MMU Context Table Reg Test
MMU Context Register Test
MMU TLB Bit Pattern Tests
<<>>
ERROR : Address = 00000000,
exp = aaaaa000, obs = 00000000, xor = aaaaa000
U-NUMBER : Suspect Viking Module
===
is there any hints ?
thanks
try to ask here:
http://tyom.blogspot.com/2009/12/solaris-under-qemu-how-to.html
You didn't read my how-to. For Solaris < 2.6 you need to plug cdrom image as a hdd, because it has a dienrefft sector size (or is it possible to tell cdrom the sector size=512bytes?). If you plug it as -hdb img.iso, boot with boot disk1:d -vs(it won't boot to the command prompt though due to problems with serial).
Dear brezular:
Many thanks to these helpful instructions.
I was wondering is there any methods to transfer files between host system and guest system?
I am looking forward to your reply. Thank you for your attention.
Best regards,
Ben
You mean live? Take a look at
http://tyom.blogspot.de/2010/03/tunneling-qemu-guest-back-and-forth.html
More general notes:
http://www.erikveen.dds.nl/qemupuppy/#6.1.0
(Solaris native FTP client won't work because it can't to passive mode though).
If you are interested in exchanging files offline, take a look at
http://libguestfs.org/guestmount.1.html
Thank you so much. What i mean is not live.
Fortunately, i have been solved this problem by another method which described in another post of your blog tomorrow:
https://brezular.com/2012/04/08/installation-solaris-sparc-2-6-sunos-5-6-on-qemu-part3-iou2net-pl-installation/
The method is:
1. create an iso file.
2. make the iso file from files.
3. start qemu with an option -cdrom to load the iso file.
Maybe it will helpful to other users.
Thank you so much for all the relevant posts in your blog.
Hi Ben
Thank you so so so much for your detailed instruction
I need your help ..I dont know for some reason i am stuck here for hours i am waiting
My configuration :-
Fedora 15
Solaries_2.6 image burned on cd
You config was -m 512 -cdrom ./2.6/Solaris_2.6_Software_05_98.img due to error i am getting i changed it to -m 512 -cdrom /media/2.6/Solaris_2.6_Software_05_98.img ..Pls note the img is in cd and i pathed it as /media/2.6/image
/usr/local/bin/qemu-system-sparc -bios /usr/local/share/qemu/ss20_v2.25_rom -M SS-20 -nographic -boot d -hda ./36G.disk -m 512 -cdrom /media/2.6/Solaris_2.6_Software_05_98.img -serial telnet:0.0.0.0:3000,server -smp 2,cores=2 -cpu "TI SuperSparc 60"
QEMU waiting for connection on: telnet:0.0.0.0:3000,server <---- Nothing happening here
looks good...what is the output when you connect to telnet localhost 3000 ?
Thank You for your replay.
Its just stuck in waiting stage and the curson blinks in the below output:-
QEMU waiting for connection on: telnet:0.0.0.0:3000,server
I am waiting for you d)option below to continue my installation but unfortunatly i am not able to move ahead then "QEMU waiting for connection on: telnet:0.0.0.0:3000,server "
{d) Telnet to localhost
After successful telnet to localhost you can see boot of Solaris. Boot stops on “Can’t open boot device” message. Enter following commands:}
I thought Firewall might be blocking telnet port to host 3000 and i allowed it and then i closed firewall which is inbuild in fedora 15 and still qemu hangs and stuck with blinking cursor at
QEMU waiting for connection on: telnet:0.0.0.0:3000,server ..?
Thank You
Option -boot d tells Qemu to boot from image attached to CDROM. Is it really you want? If not, use option -boot c. Then Qemu boots from disk - image 36GB.disk in our case. Now, omit option telnet. Use the command below. Something change?
/usr/local/bin/qemu-system-sparc -bios /usr/local/share/qemu/ss20_v2.25_rom -M SS-20 -nographic -boot c -hda ./36G.disk -m 512 -smp 2,cores=2 -cpu "TI SuperSparc 60"
Hi Ben,
Just one question
Everthing was working but then i had to reinstall Fedora 15 for a crash happened unknowingly :)
But after i reinstalled fedora and everything i did as i did before but now i am hanged and stuck when the boot process is booted using
I am stuck and hanged in the below boot disk0 -v
Copyright (c) 1983-1997, Sun Microsystems, Inc.
<----------------------------------------Nothing happening after this
SPARCstation 20 (1 X 390Z50), No Keyboard
ROM Rev. 2.25, 512 MB memory installed, Serial #0.
Ethernet address 52:54:0:12:34:56, Host ID: 72000000.
Power-On SelfTest FAILED ... Replace MBUS0 Module
Type help for more information
ok boot disk0
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@0,0 File and args:
SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1997, Sun Microsystems, Inc.
THANK YOU :)
Thank You ..yup got it worked :)
Thanks for your writeup. Should this work on Qemu 0.14.1?
I get hung at:
==============================================================
Boot device: /iommu/sbus/ledma@f,400010/le@f,c00000 File and args:
Internal loopback test -- Wrong packet length; expected 36, observed 64
Can't open boot device
Type help for more information
ok boot disk2:d -v
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@2,0:d File and args: -v
Size: 243560+176918+41926 Bytes
SunOS Release 5.6 Version Generic_105181-05 [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1997, Sun Microsystems, Inc.
Using default device instance data
-
================================================================
I let it sit for about 20 minutes. I'm using Qemu 0.14.1 though, not sure if that's the problem.
Use Qemu version 0.15.x. I noticed the same problem when Qemu 0.14.1 was used.
Solaris 2.6 installation freezes soon after boot from CD when Qemu 0.14.1 is used. SS-5 works fine with Qemu 0.14.1. Is it any reason why you need 0.14.1?
Thanks for the reply, no reason I need it, just that it's what was installed when I put GNS3 on this OpenSUSE box and I'm not real sure how to get another version on here. Looks like SUSE doesn't come with make installed and I'm not real sure how to get that either. I'll figure out how to get the right version of Qemu on here. Thanks again!
Hi,
you can have installed both - qemu 0.14.1 for x86 architecture (JunOS, ASA, etc) and qem-system-sparc 1.0.50 for sparc architecture. This article should guide you:
https://brezular.com/2012/02/12/installation-solaris-sparc-2-6-sunos-5-6-on-qemu-part-1-qemu-installation/
I appreciate the link, I'll give it a go. Thanks!
Got it all working, appreciate the help!
Hi Brezular,
How to determined the number of cylinders, heads, and sectors/track for partitions like you stated in 'Disk Formatting' sectio? I allocate 15G for solaris installation.
I read it form existing physical disk with Hiren's boot CD
Thanks for the reply. Which utility in Hiren's boot CD exactly you used to read those CHS value? And how to do that in host OS (Fedora 15)? I have to find those value because i had different size of disk partitions for Solaris installation in my case.
Thanks for shuch a good tutorial. I have installed s.olaris but can't ping my ubuntu host. I have the folliwing:
Ubuntu Host running qemu 1.1 with ip address 192.168.2.10/24
Solaris 2.6 ip address 192.168.2.15/24
I don know why they can't ping each other :( ?
Dear brezular:
Many thanks to these helpful instructions.
Installation is complete, Solaris 2.6 is running on Fedora17.
But when I run a program that was running on SunOS4.1,displayed as "Killed" and stop.
The program is also running on Solaris10.
It is a compiler for the i960.
Similarly, there are some other programs that do not run.
Is there any similar cases and solutions?
I am looking forward to your reply. Thank you for your attention.
Best regards,
Tak.
Hi, I could sucessfully install everything, even GNU packages, execpt for GNUgcc throwing:
# pkgadd -d. GNUgcc
Processing package instance from
GNU gcc 2.95.2 i86pc Solaris 2.6
(i386) 2.95.2
GNU
## Executing checkinstall script.
This package must be installed on a i386 architecture
Aborting installation.
pkgadd: ERROR: checkinstall script did not complete successfully
Installation of failed.
No changes were made to the system.
I'd rather used Sun cc, but:
# find / -name cc -type -f 2>/dev/null
But, thanks for the great Howto.
Steve
Hi, just downloaded the wrong gcc version *sigh* please delete the prev. comment.
Steve
Hi, Is it possible to run binaries using X (UI) on QEMU - solaris 2.6 emulation?
So far I haven't tried it...
I believe I've followed this tutorial correctly.
I can install Solaris 6 or 8, but when I 'boot disk0' I always get:
ok boot disk0
Boot device: /iommu/sbus/espdma@f,400000/esp@f,800000/sd@0,0 File and args:
bootblk: can't find the boot program
Program terminated
ok
even after setting "setenv sbus-probe-list f".
I've tried both ss20 & ss5 bios files (ss5 with/without setting sbus-probe-list f)
I'm running Centos 6.3
Processor (CPU): Intel(R) Xeon(R) CPU E5607 @ 2.27GHz
Speed: 2,261.05 MHz
Cores: 8
Total memory (RAM): 5.8 GB
Free memory: 791.3 MB (+ 3.5 GB Caches)
Free swap: 9.7 GB
ok devalias
ttyb /obio/zs@0,100000:b
ttya /obio/zs@0,100000:a
keyboard! /obio/zs@0,0:forcemode
keyboard /obio/zs@0,0
floppy /obio/SUNW,fdtwo
scsi /iommu/sbus/espdma@f,400000/esp@f,800000
net-aui /iommu/sbus/ledma@f,400010:aui/le@f,c00000
net-tpe /iommu/sbus/ledma@f,400010:tpe/le@f,c00000
net /iommu/sbus/ledma@f,400010/le@f,c00000
disk /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0
cdrom /iommu/sbus/espdma@f,400000/esp@f,800000/sd@6,0:d
tape /iommu/sbus/espdma@f,400000/esp@f,800000/st@4,0
tape1 /iommu/sbus/espdma@f,400000/esp@f,800000/st@5,0
tape0 /iommu/sbus/espdma@f,400000/esp@f,800000/st@4,0
disk3 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0
disk2 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@2,0
disk1 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@1,0
disk0 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@0,0
ok
ok show-devs
/TI,TMS390Z50@f,f8fffffc
/SUNW,sx@f,80000000
/eccmemctl@f,0
/virtual-memory@0,0
/memory@0,0
/obio
/iommu@f,e0000000
/openprom
/aliases
/options
/packages
/obio/power@0,a01000
/obio/auxio@0,800000
/obio/SUNW,fdtwo@0,700000
/obio/interrupt@0,400000
/obio/counter@0,300000
/obio/eeprom@0,200000
/obio/zs@0,0
/obio/zs@0,100000
/iommu@f,e0000000/sbus@f,e0001000
/iommu@f,e0000000/sbus@f,e0001000/SUNW,bpp@f,4800000
/iommu@f,e0000000/sbus@f,e0001000/ledma@f,400010
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000
/iommu@f,e0000000/sbus@f,e0001000/ledma@f,400010/le@f,c00000
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/st
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd
/packages/obp-tftp
/packages/deblocker
/packages/disk-label
ok
ok probe-scsi-all
/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000
Target 0
Unit 0 Disk QEMU QEMU HARDDISK 1.3.
Unit 1 Disk QEMU QEMU HARDDISK 1.3.
Unit 2 Disk QEMU QEMU HARDDISK 1.3.
Unit 3 Disk QEMU QEMU HARDDISK 1.3.
Unit 4 Disk QEMU QEMU HARDDISK 1.3.
Unit 5 Disk QEMU QEMU HARDDISK 1.3.
Unit 6 Disk QEMU QEMU HARDDISK 1.3.
Unit 7 Disk QEMU QEMU HARDDISK 1.3.
Target 2
Unit 0 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Unit 1 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Unit 2 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Unit 3 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Unit 4 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Unit 5 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Unit 6 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Unit 7 Removable Read Only device QEMU QEMU CD-ROM 1.3.
Any and all help will be appreciated.
Excellent Post!
I have an old server running solaris 6 and i am considering to migrate it to a vmachine exactly as you did. Have you performed any performance test or noticed any incompatibility during your tests ?
Many thanks to you for this tuto!
Is it possible to run a Solaris 6 with graphic mode?
Anything is correct from my side, but I've go some difficulties for running it in graph mode.
Any help is welcome :)
Alex
Hi,
Thanks for this tuto...
I am begginer in Linux and I need to install Solaris on a emulating sparc machine.
I had a problem when I execute the commands of the iten "c) Start OS Installation"
I had the follow error:
qemu: fatal: Trap 0x02 while interrupts disabled, Error state
pc: 00000000 npc: 00000004
%g0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%o0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%l0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%i0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%f00: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
psr: 400000c0 (icc: ---- SPE: SP-) wim: 00000001
fsr: 00000000 y: 00000000
Have you ever seen this error?
Sandro
I managed to run Solaris 9 with boot disk2:d -vb and boot disk2:d -vs. However, when i do disk2:d, the system loads until the terminal type menu.
What type of terminal are you using?
1) ANSI Standard CRT
2) DEC VT52
3) DEC VT100
4) Heathkit 19
5) Lear Siegler ADM31
6) PC Console
7) Sun Command Tool
8) Sun Workstation
9) Televideo 910
10) Televideo 925
11) Wyse Model 50
12) X Terminal Emulator (xterms)
13) CDE Terminal Emulator (dtterm)
14) Other
Type the number of your choice and press Return: 3
syslog service starting.
savecore: no dump device configured
Running in command line mode
And nothing happens after that. Anyone encountered this issue?
hello,
How can I add another NIC to the installation????
The "Assertion failed: MUTEX_HELD(&svc_mutex), file rpc/svc_run.c, line 754" error in multi-user mode has been fixed in QEMU git master and the fix will appear in the upcoming 2.6 release.
See https://bugs.launchpad.net/qemu/+bug/1450881 for more information.
followed the tutorial step by step and it worked as of 2017.12.17 on Fedora 27 up to date
Now my question is.. is it possible to run graphics and can I add a second NIC?
Does network config needs any special tips or tricks or just following solaris manual?
Thanks
Viktor
Hello, I am using qemu on x86 windows 10 os. I installed qemu version 2.11.0 I downloaded solaris_2.6_598_sparc.iso image and ss5.bin file. I used the command qemu-system-sparc.exe -m 256 -cdrom F://solaris_2.6_598_sparc.iso -bios F://ss5.bin -M SS-5 -nographic -L . -hda F://solaris.img This gave lots of messages after getting OK i gave boot disk2:d -v command. IThis took me to the configurations pages and at last I got the # prompt. But i cannot write any file, I think it booted as read only file system. Please suggest me how to boot read write file system and install the os permanently for the next booting.
Hi! I know this is a bit of an old blog post, but I was wondering if you knew of a way to mount a folder on the host as a drive in Solaris 2.6/2.7? I know on qemu you can technically do it by adding
-drive file=fat:rw:[folder],bus=0,unit=1,if=scsi,format=raw,media=disk
To the VM invocation command line. Doing this, Solaris sees it as a disk, but I can't mount it or format it, so I can't read anything off it or copy anything from the VM to my host.
I'm just trying to create a share folder between my host and ghost.