Using NFS

From ReactOS Wiki
Revision as of 08:14, 3 August 2017 by Heis Spiter (talk | contribs)
Jump to: navigation, search

Starting with r75120, ReactOS can handle remote NFS shares. You can use them to expose host files to guest ReactOS (and the other way round). To get them working, follow the following instructions.

Host configuration

On your Linux host, you have to configure your NFS exports as you would do normally.

Specific to VirtualBox

If you are running ReactOS on VirtualBox with NAT network and your host is serving the NFS share, you have to make sure your configuration line contains the following: insecure and that you allow 127.0.0.1/24.

An example line would look like this: /nfs/ReactOS 127.0.0.0/24(rw,sync,no_subtree_check,insecure,all_squash,anonuid=65534,anongid=65534)

This makes the /nfs/ReactOS directory accessible to ReactOS VM.

ReactOS configuration

Start your ReactOS and open a cmd window.

Start the NFS daemon : net start pnfs

General

Mount your share: net use * \\<ip addr>\share, where ip addr is either the IP address of your NFS server and where share is the full path to your share.

Specific to VirtualBox

Only if you are in a VirtualBox VM with host serving NFS share, find your gateway address by typing: ipconfig

Then, mount your share: net use * \\<gw addr>\share, where gw addr is your gateway IP (found with ipconfig command) and where share is the full path to your share.

If we take previous example, you would type net use * \\10.0.2.2\nfs\ReactOS

Example

If your NFS server is: 192.168.0.100 and your ReactOS machine is: 192.168.0.150 and you're exporting directory: /foo/bar with your NFS server.

Your server configuration may look like: /foo/bar 192.168.0.150/32(rw,sync,no_subtree_check,all_squash,anonuid=65534,anongid=65534)

On your ReactOS host, you would use a command like: net use * \\192.168.0.100\foo\bar