Difference between revisions of "Diskless netboot"

(Installation)
Line 1: Line 1:
 
Diskless server / workstation using netboot
 
Diskless server / workstation using netboot
  
 +
 +
NFS is a technology that allow you to share some files and folders over the network. So:
 +
* All the clients will share the installation, configuration files and so on.
 +
* Each client will run a dedicated instance of the operating system
 +
* Logs will be centralized on the common NFS server - so we don't loose data on each reboot.
 +
 +
 +
You must have a working DHCP server + NetBoot before starting this part.
  
 
Requirements:
 
Requirements:
Line 7: Line 15:
  
  
You must have a working NetBoot before starting this part.
+
Like TFTP, this part is insecure !
  
This will add NFS support and sharing.
+
You must restrict the access to your NFS server by a firewall script and filtering BEFORE reaching the LAN !
  
  
Line 28: Line 36:
  
  
=NFS configuration=
+
=NFS server setup=
 +
 
 +
 
 +
==Preparation==
 +
 
 +
You have to create a dedicated folder on your server where you will host the client image.
 +
 
 +
<syntaxhighlight lang="bash">
 +
mkdir -p /srv/nfsroot
 +
</syntaxhighlight>
  
NFS is a technology that allow you to share some files / folders over the network. So:
 
* All the clients will share the installation, configuration files and so on.
 
* Each client will run a dedicated instance of the operating system
 
* Logs will be centralized on the common NFS server - so we don't loose data on each reboot.
 
  
 +
==Configuration==
  
 
The NFS configuration is done in the '''/etc/exports''' file
 
The NFS configuration is done in the '''/etc/exports''' file
Line 41: Line 55:
 
vim /etc/exports
 
vim /etc/exports
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
Add something like that:
 +
 +
<syntaxhighlight lang="bash">
 +
  /srv/nfsroot      192.168.2.xxx(rw,no_root_squash,async,insecure)
 +
</syntaxhighlight>
 +
 +
 +
Adjust "192.168.2.xxx" to your own network address

Revision as of 15:05, 22 May 2014

Diskless server / workstation using netboot


NFS is a technology that allow you to share some files and folders over the network. So:

  • All the clients will share the installation, configuration files and so on.
  • Each client will run a dedicated instance of the operating system
  • Logs will be centralized on the common NFS server - so we don't loose data on each reboot.


You must have a working DHCP server + NetBoot before starting this part.

Requirements:


Like TFTP, this part is insecure !

You must restrict the access to your NFS server by a firewall script and filtering BEFORE reaching the LAN !


Installation

NFS support

apt-get install nfs-kernel-server nfs-common

Debootstrap (manage netboot image)

apt-get install debootstrap


NFS server setup

Preparation

You have to create a dedicated folder on your server where you will host the client image.

mkdir -p /srv/nfsroot


Configuration

The NFS configuration is done in the /etc/exports file

vim /etc/exports


Add something like that:

  /srv/nfsroot      192.168.2.xxx(rw,no_root_squash,async,insecure)


Adjust "192.168.2.xxx" to your own network address