Difference between revisions of "NFS image creation"

(Created page with "Category:Linux This article explains how to initialize a new NFS image. =Requirements= ==NetBoot kernel== By now you should already know and have a NetBoot kernel. ...")
(No difference)

Revision as of 15:03, 21 August 2014


This article explains how to initialize a new NFS image.


Requirements

NetBoot kernel

By now you should already know and have a NetBoot kernel.

!! Don't forget to backup the kernel's libraries and modules !!


>> See TFTP server manage netboot kernels


NFS image folder

You should create a folder to host the new NFS image, for instance QA:

mkdir -p /nfs/qa
chmod -R 777 /nfs/qa

This folder must be registered in NFS server configuration (/etc/exports). See NFS server



Get a minimal Operating System

Go to your NFS image folder (it should be empty):

cd /nfs/qa


Thank to Deboostrap you can initialize a lot of *Nix versions!

You need to adjust the following command to the distribution you'd like to run:

## Debian 7
debootstrap wheezy /nfs/qa

## Ubuntu 14.04
debootstrap trusty /nfs/qa


!! This step is quite long... Depending on your network and CPU it can take up to 10 or 15 minutes !!


Copy kernel's libraries and modules

First thing to do is to copy your kernel's libraries and modules into your new NFS image.

cp -r /tftpboot/sources-images/trusty/lib/modules /nfs/qa/lib/
cp -r /tftpboot/sources-images/trusty/usr/src/ /nfs/qa/usr/src/


Where:

  • /tftpboot/sources-images/trusty is your TFTP kernel name
  • /nfs/qa/ is your new NFS image