6   Installing an OS on Simics

6.1   Installing Solaris on Simics

Solaris can be installed directly on the simulated machine in Simics. Solaris can be obtained from Sun's web-site at in the form of ISO images.

To simplify the installation process, some scripts are supplied with the Simics distribution for the chili machine: chili-sol<version>-cd-install.simics, where <version> is 8, 9 or 10. The scripts will answer all questions automatically to create a standard workstation install.

6.1.1   Installation, step by step

This section describes how to install Solaris using the command-line version Simics.

  1. Select the install script to use, depeding on Solaris version to install, either chili-sol10-cd-install.simics for Solaris 10, chili-sol9-cd-install.simics for Solaris 9, or chili-sol8-cd-install.simics for Solaris 8.
  2. Set the path to the CD images in the simics script. The line
        $cdrom_path[$idx] = ("sol-10-u2-ga-sparc-v" + $idx + ".iso")
    should be changed to reflect the location and name of the CD images for the installlation. It can either be ISO image files, or a CD-ROM device file (Linux and Solaris host only).
  3. Start the first installation script, for example:
      $ ./simics targets/fiesta/chili-sol10-cd-install.simics
    and wait for it to complete. This may take several hours, depending on the performance of the host machine.
  4. When the script stops, the installation is ready. The newly created disk image has the following file name: chili-sol<version>-install.disk.
  5. To boot a machine with the newly installed Solaris OS, run the chili-common.simics and make sure that the variable $os is set to "solaris10", "solaris9" or "solaris8" depending on the operating system version installed). Add a line like the following first in that simics script:
      $os = "solaris10"
  6. An optional last step is to compress the disk image with the craff utility to save some disk space.