| 63 | |
| 64 | Guest OSes expect to be able to read: |
| 65 | |
| 66 | * {{{/users}}} |
| 67 | * {{{/proj}}} |
| 68 | * {{{/groups}}} |
| 69 | * {{{/share}}} |
| 70 | |
| 71 | If your system can directly access parts of the host file system then you're done! For an example of this, see view-os lightweight processes. |
| 72 | |
| 73 | If not, you should probably use the npfs implementation currently being used by qemu. The npfs server is launched from {{{launch/qemu}}} just before inner-nodes are booted. This will likely need to move to a more general location. |
| 74 | |
| 75 | Linux 9P support is excellent starting from the 2.6.20's series. Here's an example fstab entry, assuming the host machine's IP is {{{192.168.1.1}}}: |
| 76 | {{{ |
| 77 | 192.168.1.1 /users 9p _netdev,aname=/users 0 1 |
| 78 | }}} |
| 79 | |
| 80 | For more bread crumbs look in {{{setup/qemu/40_file_systems.py}}} and {{{setup/qemu/50_root_fs.py}}} (look for 'fstab' in the latter). |