SimicsFS gives you access to the file system of your real computer inside the simulated machine. This greatly simplifies the process of importing files into the simulated machine.
SimicsFS is supported for targets running Solaris 7, 8, 9 and 10, and Linux kernel versions 2.0 to 2.6.
SimicsFS is installed on disk dumps distributed by Virtutech. For users booting from other disks, there are a number of steps needed to configure the target system. This process is target OS specific, and is described in the following sections.
SimicsFS is not fully functional on all simulated operating systems. The following limitations apply:
Simulated OS | Limitations |
Linux | Access is read-only. (Write support experimental.) |
Solaris | Truncating files does not work. |
Other | SimicsFS is not currently available. |
For Linux kernel versions prior to 2.4, the SimicsFS kernel module is called hostfs rather than simicsfs, so for those kernels just replace the simicsfs part in file names with hostfs in the following description. When the instructions ask you to copy files into the simulated machine, one of the methods described elsewhere must be used (e.g., network, loopback disk access, or CD-ROM).
special /host simicsfs noauto,ro 0 0
SimicsFS should now be working, and by issuing ls /host on the simulated machine, you should get a listing of the host machine's files.
These are the steps needed to install SimicsFS on a simulated Solaris, version 7, 8, 9 and 10. When the instructions ask you to copy files into the simulated machine, one of the methods described above must be used (network, loopback disk access, CD-ROM...). Note that the driver included with earlier Simics distributions was called hostfs and not simicsfs.
simicsfs - /host simicsfs - no -
mount /host
You should now be able to do ls /host on the simulated system to get a list of the files on the host.
By default, the simulated machine can access the entire file tree of the host computer from the mount point (typically /host).
This can sometimes be inconvenient (or dangerous, if the simulator runs untrusted or unreliable code), so it is recommended to set the directory that is visible to the simulated machine using the <hostfs>.root command, e.g.:
simics> hfs0.root /home/alice/sandbox
The command will take effect next time SimicsFS is mounted.
Because of implementation limitations, it is recommended that SimicsFS be chiefly used to copy files into and out from the target machine. In particular, executing binaries residing on the host machine may be unreliable.