1 describes the environment settings that this article is based on as follows:
? Host operating system: Windows 7 Ultimate
? Parasitic operating systems: Solaris 8 SPARC (SunOS 5.8)
? Virtual Environment: Simics 3.0.4
This article assumes that the Solaris 8 SPARC operating system has been installed on Simics.
Motive: A binary file Graphgen that can run under UNIX, cannot run on a separate Ubuntu-equipped computer because the hardware architecture of the computer is based on X86, and Graphgen is a program that can run under the SPARC architecture Install virtual Box on my laptop Win7 system, then install the SPARC architecture of Solaris 8, the installation is unsuccessful because my laptop AMD, this path is not available, the possible way is to install Solaris 8 on the laptop using the Simics virtual environment SPARC operating system, and then graphgen the file on the Win7 "copy" to the Solaris 8 operating system in Simics to achieve the purpose of running the Graphgen program. This "copy" process, due to the host operating system and the parasitic operating system communication, it is not so easy. This is mainly to explain the "copy" method and process.
2 Two ways to get the files on the host system 2.1 take the Mount CD method to get the files on the host system the main steps are as follows:
1. Package the files on the Win7 system that need to be used by the Solaris 8 SPARC system into the ISO image file format (this packaging process can use the UltraISO software, I use UltraISO Premium Edition 9.6.2.3059, because I did not find the registration code for the software, I only use a trial version, but does not affect the packaging of files. In fact, which version does not matter), for example, the Simics installation directory under the \import\sun4u two files Mount_simicsfs and Simicsfs-sol8 packaged into a file Myimage.iso (in UltraISO operation is very simple, Select the two files and save as Myimage.iso.
2. Place the packaged ISO image file under the Simics's Working directory folder (for example, F:\OS\simics\workspace), for example, to copy the Myimage.iso to F:\OS\simics\workspace.
3. In the case where the Solaris 8 parasitic system has been successfully started, enter the following command on the Simics main interface, New-file-cdrom Myimage.iso and Cd0.insert myimage,1.
Figure 1: Enter command 4 to load the ISO file in Simics. At this point, under the parasitic System Solaris 8 SPARC folder/cdrom/cdrom0/, you will see the 2 files before packaging (see Figure 2), which makes it possible to access the host operating system files successfully. You can copy these files to any location you need. As you can see, the parasitic system Solaris 8 retains only the first 8 bits of the file name, but the content itself does not change.
Figure 2: View the files in the ISO in the parasitic system Solaris 8 SPARC
2.2 Make the corresponding settings direct access to files on the host system we often use the parasitic system, we will feel that the way the Mount CD to obtain the host system file is inconvenient, it is best to use a method of direct access to the host system of a driver disk (for example, the Win7 system under the C-disk content). The methods for achieving the above objectives are:
1. Create a new folder (mkdir/usr/lib/fs/simicsfs/) in the parasitic system Solaris 8 SPARC and use the Mount CD to mount the file under \import\sun4u in the Simics installation directory SIMICSFS is placed in the folder above and renamed to Mount; Similarly, simicsfs-sol8 files under \import\sun4u in the Simics installation directory are placed in the folder/usr/kernel/fs/sparcv9/of the parasitic operating system , and named Simicsfs (in fact the parasitic system automatically truncates the file name to 8 bits, in Solaris8, we don't see the file name Simicsfs-sol8, 2).
2. Edit the/etc/vfstab file in the parasitic system Solaris 8, where you add a line (space-delimited-),
SIMICSFS-/host Simicsfs-no-
Note that when you use VI to edit the file, the screen display is not the actual file content, and the up and DOWN ARROW keys are used to go back and forth through the displayed content to show the actual content. After you add the content, use the cat command to see if the specification is added in a timely manner.
3. Under the root directory of the parasitic system, create the Host folder (MkDir host).
4. Execute the mount/host command under the parasitic system, and you will find that the host folder is full of the contents of the C drive in the Win7 system. 3.
Figure 3: Direct acquisition of Win7 in the parasitic system Solaris 8 SPARC 3 Save the operating state of the parasitic system simics the virtual machine operating system is non-memory, and the next time you restart the parasitic operating system, all changes to the last operating system will disappear. After acquiring the file to the host operating system using either of these methods, or in order to save some of the response settings, we must save the operating state of the parasitic OS to facilitate the next boot. The steps are as follows:
To save the state of a moment:
1. Enter stop in the simics command input area, 2. Enter the Save-persistent-state [own state name] in the simics command input area;
3. Enter run in the Simics command input area to continue the system operation.
To start from a state:
1. Open new session from Peanut-common.simics;
2. Enter the Load-persistent-state [own state name] in the simics command input area;
3. Run the system by entering run in the simics command input area.
For example, I named Solaris_8_sf.boot for the status of 2.2 bars. 4 questions as you can see from Figure 3, I have successfully copied the Graphgen program into the parasitic operating system and can run the program in Solaris 8 SPARC. Heart is happy, however, the program is still not running successfully, the following results appear:
Ld.so.1:./graphgen:fatal:libstdc++.so.2.10.0:open failed:no such file or directory
As you can see, this program can run on Solaris 8 SPARC, with a single shared library missing. As you can see, the hardware architecture has been breached and a step closer to running the program successfully.
Reference Blog:http://xilinx.eetop.cn/viewthread-463116
Simics Virtual Machine Solaris 8 operating system two ways to obtain files on the host system Win7