Installation & Configuration Clonezilla Server

 

Install the required packages on server
 

If it's Ubuntu Precise (12.04):

deb http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb http://free.nchc.org.tw/drbl-core drbl stable

If it's Ubuntu Precise (14.04):

deb http://drbl.sourceforge.net/drbl-core drbl stable

 

 

 

Set up the file system for the client in the Server

 

Installing DRBL for Debian Linux...

*****************************************************.

Do you want to install the network installation boot images so that you can let the client computer install some GNU/Linux distributions (Debian, Ubuntu, RedHat Linux, Fedora Core, Mandriva, CentOS and OpenSuSE...) via a network connection?  !!NOTE!! This will download a lot of files (Typically > 100 MB) so it might take a few minutes. If the client computer has a hard drive that you may install GNU/Linux onto, put a Y here. If you answer "no" here, you can run "drbl-netinstall" to install them later.

[y/N] y

 

*****************************************************.

This GNU/Linux distribution uses one kernel to support SMP and non-SMP arch.

*****************************************************.

Do you want to use the serial console output on the client computer(s)?

If you do NOT know what to pick, say "N" here, otherwise the client computer(s) may show NOTHING on the screen!

[y/N] 

 

Do you want to upgrade the operating system?

[y/N] 

 

*****************************************************.

Searching for the latest kernel in the repository...  kernel ...

The kernel image in Ubuntu 14.04 "uses generic" for i686/amd64 CPU.

The latest kernel in the ayo repository is linux-image-3.16.0-31-generic

There are 2 kernels available for clients, which one do you prefer?

[1]: kernel 3.13.0-24-generic x86_64 (from this DRBL server)

[2]: linux-image-3.16.0-31-generic (from APT repository)

[1] 1

 

Please enter DNS domain (such as drbl.sf.net):

[epfl.ch

 

------------------------------------------------------

Please enter NIS/YP domain name:

[penguinzilla] 

 

Please enter the client hostname prefix:

This prefix is used to automatically create hostname for clients. If you want to overwrite some or all automatically created hostnames, press Ctrl-C to quit this program now, edit /etc/drbl/client-ip-hostname, then run this program again.

[icnalsp3s4-] icsubnet-52-

Set the client hostname prefix as icsubnet-52-

 

The ethernet port for Internet access is: em1

The ethernet port(s) for DRBL environment:   

///WARNING/// Only one configured network card was found in this system, this is not recommended since this DRBL server will provide a DHCP service which might mess up your network environment if there is an existing DHCP service in the network environment where this network card is connected!!! It is recommended to use at least 2 network cards in this server to avoid this problem.

Are you sure you want to continue?

[y/N] y

 

******************************************************

Now we can collect the MAC address of clients!

If you want to let the DHCP service in DRBL server offer same IP address to client every time when client boot, and you never did this procedure, you should do it now!

If you already have those MAC addresses of clients, you can put them into different group files (These files number is the same number of networks cards for DRBL service). In this case, you can skip this step.

This step helps you to record the MAC addresses of clients, then divide them into different groups. It will save your time and reduce the typos.

The MAC addresses will be recorded turn by turn according to the boot of clients,

and they will be put into different files according to the network card in server, file name will be like macadr-eth1.txt, macadr-eth2.txt... You can find them in directory /etc/drbl.

Please boot the clients by order, make sure they boot from etherboot or PXE!

Do you want to collect them?

[y/N]  

 

Hostmin: 128.178.52.1

Do you want to let the DHCP service in DRBL server offer same IP address to the client every time when client boots (If you want this function, you have to collect the MAC addresses of clients, and save them in file(s) (as in the previous procedure)). This is for the clients connected to DRBL server's ethernet network interface em1 ?

[y/N] n

 

******************************************************

What is the initial number do you want to use in the last set of digits in the IP (i.e. the initial value of d in the IP address a.b.c.d) for DRBL clients connected to this ethernet port em1.

[1] 83

******************************************************

How many DRBL clients (PC for students) connected to DRBL server's ethernet network interface em1 ?

Please enter the number: 

[12] 10

 

In the system, there are 3 modes for diskless linux services:

[0] Full DRBL mode, every client has its own NFS based /etc and /var.

[1] DRBL SSI (Single system image) mode, every client uses tmpfs based /etc and /var. In this mode, the loading and necessary disk space of server will be lighter. NOTE! (a) The client machine memory is recommended at least 256 MB. (b) The setting and config files of client will not be saved to the DRBL server! They are just used once and will vanish after the machine shutdowns! Besides, if you modify any file in the template client (located in /tftpboot/nodes), you have to run drbl-gen-ssi-files to create the template tarball in /tftpboot/node_root/drbl_ssi/. (c) If you want to provide some file to overwrite the setting in the template tarball when client boots, check /tftpboot/node_root/drbl_ssi/clients/00_README for more details.

[2] I do NOT want to provide diskless Linux service to client.

Which mode do you prefer?

[0] 2

 

In the system, there are 4 modes available for clonezilla:

[0] Full Clonezilla mode, every client has its own NFS based /etc and /var.

[1] Clonezilla box mode, every client uses tmpfs based /etc and /var. In this mode, the loading and necessary disk space of server will be lighter than that in Full Clonezilla mode. Note! In Clonezilla box mode, the setting and config files of client will not be saved to the DRBL server! They just use once and will vanish after the machine shutdowns!

[2] I do NOT want clonezilla.

[3] Use Clonezilla live as the OS (Operating System) of clients (Testing).

Which mode do you prefer?

[0] 1

 

When using clonezilla, which directory in this server you want to store the saved image (Please use absolute path, and do NOT assign it under /mnt/, /media/ or /tmp/)?

[/home/partimag] /partimag 

 

Do you want to set the pxelinux password for clients so that when client boots, a password must be entered to startup (For better security)

[y/N] 

 

Do you want to set the boot prompt for clients?

[Y/n] 

 

How many 1/10 sec is the boot prompt timeout for clients?

[70] 5

 

Do you want to use graphic background for PXE menu when client boots?

Note! If you use graphical PXELinux menu, however client fails to boot, you can switch to text mode by running "switch-pxe-bg-mode -m text".

[y/N] n

 

Do you want to let DRBL server as a NAT server? If not, your DRBL client will NOT be able to access Internat.

[Y/n] n

 

We are now ready to deploy the files to system! 

Do you want to continue?

Warning! If you go on, your firewall rules will be overwritten during the setup!

The original rules will be backuped as iptables.drblsave in system config directory (/etc/sysconfig or /etc/default).

[Y/n] y