Changes

Jump to: navigation, search

VirtualBox Network Configuration

1,744 bytes added, 15:40, 8 May 2012
NFS Configuration completed
===== NFS Configuration =====
 
[[w:Network_File_System|NFS]] is commonly used to network mount the target root file system. NFS Server is already installed on [[:Category:DVDK|DVDK]] but needs to be configured before using it.
 
User just need to edit <code>/etc/exports</code> file to allow the local network to mount NFS shares.
 
The default configuration provided with DVDK allow mounting all subdirectory of ''/home/shared'' by the default class C private network 192.168.0.0/24, but is disabled.
 
<pre class="workstation-terminal">
nelk@nelk-desktop:~$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
 
#/home/shared 192.168.0.0/24(rw,sync,no_subtree_check,no_root_squash,no_all_squash)
 
nelk@nelk-desktop:~$
</pre>
 
If you are on the default network just remove the <code>#</code> at the beginning of the last line. If you are on a different network, e.g. private class A network 10.0.0.0/8, change the line in;
 
<pre>
/home/shared 10.0.0.0/8(rw,sync,no_subtree_check,no_root_squash,no_all_squash)
</pre>
 
Changes are applied by running <code>exportfs -a</code> as root, and can be verified with <code>exportfs</code>
 
<pre class="workstation-terminal">
nelk@nelk-desktop:~$ sudo exportfs -a
nelk@nelk-desktop:~$ sudo exportfs
/home/shared 192.168.0.0/24
</pre>
 
For more information regarding NFS server and /etc/exports see ''exports'' man page or, for example, [http://linux.die.net/man/5/exports]

Navigation menu