large scale deployment of linux

41
Large Scale Deployment of Linux 1

Upload: kshitij-agarwal

Post on 01-Sep-2014

2.778 views

Category:

Technology


1 download

DESCRIPTION

With the rapid increase in enterprise adoption of Linux, automation of deployment becomes very important.In most cases, the configuration of the individual applications and the look and feel also need customization.Target Audience: StudentsIT ManagersArchitectsAcademiciansCXOsSystem Administrators

TRANSCRIPT

Page 1: Large Scale Deployment of Linux

Large Scale Deployment of Linux

1

Page 2: Large Scale Deployment of Linux

Getting to know the Audience

• How many of you are Linux Users?

• How many of you have installed your Operating Systems of your own?

• Average Time Required in installation of OS

• Imagine the time required to install 50 such systems Single Handedly

• How about I tell you a way of installing all these 50 systems or such a huge number in the same 30 min

• Anybody having a clue that how will we do this?!

2

Page 3: Large Scale Deployment of Linux

• Booting from LAN

aka

• Network Boot

aka

• PXE Booting

aka

• Etherboot

Answer

• So how are we going serve the requests from the client who will boot from the network

• Obviously, we will be needing a server that will provide support for pxe booting.

3

Page 4: Large Scale Deployment of Linux

BEFORE THAT

• You must have heard of cloning softwares like

• Ghost aka Norton Ghost

• Acronis True Image

• Why not use the above softwares

• No GPL Licence – No Freedom

• Very Expensive

• Slow

4

Page 5: Large Scale Deployment of Linux

Diskless Remote Boot in LinuxDRBL (Diskless Remote Boot in Linux) is a server providing a diskless environment for client machines.

It could be used for

providing for a network installation of Linux distributions like Fedora, Debian, etc.,

cloning machines with Clonezilla software inbuilt,

providing machines via PXE boot with a small size operation system (e. g. Puppy Linux).

How to provide a DRBL-Server

Installation on a machine running a supported Linux distribution

Live CD.

Installation is possible on a machine with Debian, Ubuntu, Mandriva, Red Hat Linux, Fedora, CentOS or SuSE already installed. It also includes Clonezilla, a partitioning and disk cloning utility similar to Symantec Ghost.

DRBL comes under the terms of a GPL license so providing the user with the ability to customize it.

5

Page 6: Large Scale Deployment of Linux

• The client computer is set to boot from the network card using PXE or Etherboot.

• The client requests an IP address, and image to boot from, both are provided by the DRBL server. The client boots using these provided by the DRBL server and proceeds to map an nfs share (also provided by the DRBL server) as its root (/) partition.

• From there, the client boots the Linux distribution in which the DRBL server is installed, Clonezilla

•All system resources reside on the local machine except storage, which resides on the DRBL server.

How it works after the installation of the server

The DRBL-based PXEBoot Clonezilla is used to

• Clone many computers simultaneously.

• Configuration all of your client computers by installing one server machine.

• DRBL with Clonezilla allows you to use multi-casting to deploy many computers in the same time.

DRBL / Clonezilla is free, open source, and downright FAST!

6

Page 7: Large Scale Deployment of Linux

Ubuntu Linux: Creating ethernet alias for eth0 network device

• Multiple IP Address

• Assuming that your eth0 IP is 192.168.1.10 and you would like to create an alias eth0:0 with IP 192.168.1.11. Type the following command:

sudo ifconfig eth0:0 192.168.1.11 up

Verify that alias is up and running using following two command(s):

ifconfig

ping 192.168.1.11

7

Page 8: Large Scale Deployment of Linux

Your ethernet configuration is located in a file called /etc/network/interfaces.

gksudo gedit /etc/network/interfaces

Append the following configuration:

auto eth0:0

iface eth0:0 inet static

name Ethernet alias LAN card

address 192.168.1.11

netmask 255.255.255.0

broadcast 192.168.1.255

network 192.168.1.0

Save the file and restart system or restart the network:

sudo /etc/init.d/networking restart

8

Page 9: Large Scale Deployment of Linux

Add the repositories for DRBL by editing the /etc/apt/sources.list file

sudo gedit /etc/apt/sources.listand insert the following 2 lines at the bottom deb http://archive.ubuntu.com/ubuntu lucid main restricted universe multiverse #deb http://drbl.sourceforge.net/drbl-core drbl stableNext you need to grab the keys...use the following commands sudo wget http://drbl.sourceforge.net/GPG-KEY-DRBLsudo apt-key add GPG-KEY-DRBLNow let's update and install sudo apt-get updatesudo apt-get install drbl

Now it's time to run the setup program!

This is an interactive set up script. After running this (and YES...it MUST be connect to the internet to work as it will use "apt-get" to download more packages)

sudo /opt/drbl/sbin/drblsrv -iAfterwards, you'll need to run this command (also from the server)sudo /opt/drbl/sbin/drblpush -i

This will walk you through setting up the diskless boot for your clients...especially for Clonezilla.

9

Page 10: Large Scale Deployment of Linux

To create an image,

• Start CloneZilla Server on the Ubuntu system

• Tell it to store an image

• Then we boot the client system which has to be cloned from the network.

• That client should then boot into a CloneZilla Linux system that connects to the server and create the image.

Run

/opt/drbl/sbin/dcs

on the Ubuntu server and select

All Select all clients

Creating An Image Of A Linux System

10

Page 11: Large Scale Deployment of Linux

11

Page 12: Large Scale Deployment of Linux

12

Page 13: Large Scale Deployment of Linux

13

Page 14: Large Scale Deployment of Linux

14

Page 15: Large Scale Deployment of Linux

15

Page 16: Large Scale Deployment of Linux

16

Page 17: Large Scale Deployment of Linux

17

Page 18: Large Scale Deployment of Linux

18

Page 19: Large Scale Deployment of Linux

19

Page 20: Large Scale Deployment of Linux

20

Page 21: Large Scale Deployment of Linux

21

Page 22: Large Scale Deployment of Linux

22

Page 23: Large Scale Deployment of Linux

To Restore an image,

• Stop CloneZilla Server on the Ubuntu system

• Again, Start CloneZilla Server on the Ubuntu system

• Tell it to restore an image

• Then we boot the client systems on which we have to install the cloned image.

• That client should then boot into a CloneZilla Linux system that connects to the server and restore the image.

Run

/opt/drbl/sbin/dcs

on the Ubuntu server and select

All Select all clients

Restoring An Image Of A Linux System

23

Page 24: Large Scale Deployment of Linux

24

Page 25: Large Scale Deployment of Linux

25

Page 26: Large Scale Deployment of Linux

26

Page 27: Large Scale Deployment of Linux

Run

/opt/drbl/sbin/dcs

on the Ubuntu server and select

All Select all clients

Clonezilla Stopped

27

Page 28: Large Scale Deployment of Linux

28

Page 29: Large Scale Deployment of Linux

29

Page 30: Large Scale Deployment of Linux

30

Page 31: Large Scale Deployment of Linux

31

Page 32: Large Scale Deployment of Linux

32

Page 33: Large Scale Deployment of Linux

33

Page 34: Large Scale Deployment of Linux

34

Page 35: Large Scale Deployment of Linux

35

Page 36: Large Scale Deployment of Linux

36

Page 37: Large Scale Deployment of Linux

37

Page 38: Large Scale Deployment of Linux

38

Page 39: Large Scale Deployment of Linux

39

Page 40: Large Scale Deployment of Linux

Any Queries

40

Page 41: Large Scale Deployment of Linux

Thank you for your time

41