Difference between revisions of "Using NFS"

From ReactOS Wiki
Jump to: navigation, search
(Created page with "Starting with r75120, ReactOS can handle remote NFS shares. You can use them to expose host files to guest (and the other way round). To get them working, follow the following...")
 
m (typo and "Category:Tutorial")
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Starting with r75120, ReactOS can handle remote NFS shares. You can use them to expose host files to guest (and the other way round). To get them working, follow the following instructions.
+
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: <code>/nfs/ReactOS 127.0.0.0/24(rw,sync,no_subtree_check,insecure,all_squash,anonuid=65534,anongid=65534)</code>
 +
 
 +
This makes the /nfs/ReactOS directory accessible to ReactOS VM.
 +
 
 +
= ReactOS configuration =
 +
Start your ReactOS and open a cmd window.
 +
 
 +
Start the NFS daemon : <code> net start pnfs </code>
 +
== General ==
 +
 
 +
Mount your share: <code> net use * \\<ip addr>\share </code>, 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: <code>ipconfig</code>
 +
 
 +
Then, mount your share: <code>net use * \\<gw addr>\share</code>, 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 <code>net use * \\10.0.2.2\nfs\ReactOS</code>
 +
 
 +
= 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: <code>/foo/bar 192.168.0.150/32(rw,sync,no_subtree_check,all_squash,anonuid=65534,anongid=65534)</code>
 +
 
 +
On your ReactOS host, you would use a command like: <code>net use * \\192.168.0.100\foo\bar</code>
 +
 
 +
 
 +
[[Category:Tutorial]]

Revision as of 20:17, 30 November 2017

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