1 Introduction
I have a binary file that is a program that cannot be executed on Ubuntu system and the results obtained by using the file command are:
Graphgen:elf 32-bit MSB executable, SPARC, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
Based on the above tips, I thought about installing the Soloari SPARC series operating system on Virtual box VMS because the hints above are binaries that can be executed under the SPARC hardware architecture. So downloaded the Sol-10-11-ga-sparc-dvd.iso file, installed on the Oracle VM VirtualBox, but the instinctive success, because my computer is x86 architecture, from Google above the result is, want to VirtualBox To install the Solaris operating system, you must install an installation file that supports X86, and you cannot install files that support the SPARC architecture. The road to use the VirtualBox is not going to make sense.
So, can there be a way to make my Graphgen program run smoothly with a virtual use of the SPARC architecture type operating system on my X86 architecture computer, such as Solaris 8? The answer from the Web is: Virtual installation of the SPARC architecture operating system via Simics. Operating systems that use VirtualBox or Vmvare to install a SPARC architecture do not work.
2 Pre-Installation Preparation 2.1 Download the Solaris 8 ISO image file I chose the lower version of the Solaris 8 operating system image file because the version of Simics I used later was relatively low. The operating system installation files are downloaded in 2 ISO files, which are:
Ftp://ftp.pl.freebsd.org/vol/rzm1/solaris-cd-pm/8/sparc/sol-8-u7-sparc-v1.zip
ftp://ftp.pl.freebsd.org/vol/rzm1/solaris-cd-pm/8/sparc/ Sol-8-u7-sparc-v2.zip since 2005 years or so, DVD is not very popular, the above 2 files in the form of suitable for CD-ROM storage requirements. In fact, in order to install Solaris, I also downloaded the Solaris 10 DVD ISO installation file on the Oracle Web site, but it didn't work, and the installation was unsuccessful through Simics 3.0.4.
2.2 Download and install the Simics 3.0.4 software Simics software is a powerful software that can be installed on different host operating systems. Because my computer is X86 the Win7 operating system of the schema, the downloaded simics installation files are supported for installation under the WIN32 system. Simics can simulate different hardware architectures, allowing testers to perform a variety of tests without having to have a computer with a real hardware architecture.
Simics is not an open-source operating system, it requires license files, which requires downloading Keygen.exe programs on the network to generate license files. The Simics installation files installed on the Win32 system can be searched on the network and then downloaded and installed by installing the usual Windows programs. Similarly, the Keygen.exe program can also be searched and downloaded from the Web, and you can use the Search keyword for simics 3.0.4 keygen.exe. When using keygen to generate a license file, enter the current login name under my win7 system, and I am entering administrator. The resulting license file is stored in the same folder as keygen. There are 2 ways to import the license file, one is to specify the location of the license file in accordance with the simics process, and the second is to simics the generated \simics-3.0.4\licenses file in the license installation directory after the Simics is installed. Only if you import the license file can you use the Simics software properly. 3 Installing the Solaris 8 SPARC operating system 3.1 simics installation directory and Simics workspace directory on simics refers to the directory where the software is installed, which contains the various files required to start the software. After you use the Simics software, it will ask you to specify a workspace directory, although the directory can be arbitrarily specified, my recommendation is to set the directory on a larger disk, because all of the virtual operating system installed on the simics of the hard disk files will be built under the directory. I set the workspace directory to F:\OS\simics\workspace, and I have more than 80 g of space on my f drive.
After you have specified the workspace directory, Simics will automatically create the relevant files and folders under that folder, 1.
Figure 1:simics content automatically created in the workspace directory (selected)
3.2 Install the Solaris 8 steps as follows:
1. Place 2 ISO files Sol-8-u7-sparc-v1.iso and sol-8-u7-sparc-v2.iso into the F:\OS\simics\workspace folder. Don't worry, Simics will automatically find these two ISO files during installation.
2. Modify the files Peanut-sol8-cd-install1.simics and peanut-sol8-cd-install2.simics under the installation directory \targets \sunfire.
(a) 32 lines of the first file should be $cdrom path = "Sol-8-u7-sparc-v1.iso". Change the 6th line of the second file to $cdrom path = "Sol-8-u7-sparc-v2.iso".
(b) In all two documents, the contents are commented out as Run-command-file "\%script\%/. /common/solaris8-install.include "line. Note with the pound sign (sharp). Do not comment out these 2 rows appear installation error (Assertion Failed:have ext NET info (NC) = = TRUE, file main.c line 931), the error is in the serial Console Note that there are many manual settings to be made during the installation process after commenting out the two lines.
3. Start Simics, choose the new Session under the File menu, select \targets\sunfire\peanut-sol8-cd-install1.simics under the workspace directory, and the serial will appear. The Console Ttya the window, and the Simics itself will appear with the corresponding information on the interface. Ttya window displays the installation process and settings for the Solaris 8 SPARC operating system, after the OK prompt, enter the boot cdrom-v command in console Ttya, then the virtual machine starts booting from the ISO image of the CD-ROM, and the installation process begins. The corresponding configuration I have made is as follows:
Select a language:0 中文版
Select a locale:0 中文版 (c-7-bit ASCII)
What type of terminal is you using? I'm here to choose vt100[the first time I installed the use of Pc-console results let input domain name, in the 2nd disk, the presence of the input domain name, it is inappropriate. ]
Dhcp:no
Host Name:chgzhi2
IP address:10.10.0.5
netmask:255.255.255.0
Enable Ipv6:no
Configure Kerberos Security:no
Name Service:none
F2 Standard
Select a Bit Yes
[X] entire distribution plus OEM support 64-bit 1523.00 MB
Auto Reboot
Configuring disk (with default configuration)
The next is a long wait, about 3 hours or so. Don't worry, be patient. When the installation is complete, the console will display rebooting (line wrapping) resetting ... At the same time, the Simics main window will show now exit Simics and continue with the Peanut-sol8-cd-install2.simics script.
4. In the File menu of the Simics main interface, click Close Session, then new session, select the workspace directory \targets\sunfire \ Peanut-sol8-cd-install2.simics the installation of the 2nd ISO image file. You will be prompted to set the root password during the installation process:
You'll be prompted to type the root password twice; For security, the password is not being displayed on the screens as you type it.
>if you does not want a root password, press RETURN twice.
Root Password:
Re-enter your root password.
Press Return to continue.
Into the same long waiting process, about 2 hours or so. I set the password to 123456. May appear in the console during installation sendmail[333]: Unable to qualify my own domain name (CHGZHI2) –using the hint of short name while in the main window of Simics Now similar to this [sn0 info] Got UDP packet on the port 520 (unknown) with no active service prompt, encountered such a hint, directly ignored, does not affect the installation of Solaris 8 SPARC.
5. Similarly, Close session, then new session, select Workspace directory under \targets\sunfire\ Peanut-sol8-cd-install3.simics, when installing the third Intall file, the root login will be in the serial console and you will need to log in using the password you set previously. The installation process will soon be over. After the end will be prompted, Serial console will appear: Program terminated, and in Simics will appear: Now exit Simics and use the Peanut-common.simics script to start The machine. Make sure, the $os variable are set to Solaris9. This is a false hint and should be solaris8. Actually, it's a foot.
The error message in this peanut-sol8-cd-install3.simics. Depending on the prompt, add $os = "Solaris8" before the 2nd line in the file \targets\sunfire \peanut-common.simics in the workspace directory.
4 booting the installed Solaris 8 in Simics is a simple way to select a file \targets\sunfire the workspace directory by simics the new session under the File menu in the main window. Peanut-common.simics can be. The pop-up serial Console on Ttya will prompt you to log in and log in with the root account and the password you set. You can now use the virtual Solaris operating system. The boot succeeds as shown in 2. Has a fun.
Figure 2: Solaris System interface launched in Simics
Installing the Solaris 8 SPARC operating system on a Win7 system with Simics