Large Scale Deployment of Linux
-
Upload
kshitij-agarwal -
Category
Technology
-
view
2.773 -
download
1
description
Transcript of Large Scale Deployment of Linux
![Page 1: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/1.jpg)
Large Scale Deployment of Linux
1
![Page 2: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/2.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/3.jpg)
• 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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/4.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/5.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/6.jpg)
• 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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/7.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/8.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/9.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/10.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/11.jpg)
11
![Page 12: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/12.jpg)
12
![Page 13: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/13.jpg)
13
![Page 14: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/14.jpg)
14
![Page 15: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/15.jpg)
15
![Page 16: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/16.jpg)
16
![Page 17: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/17.jpg)
17
![Page 18: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/18.jpg)
18
![Page 19: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/19.jpg)
19
![Page 20: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/20.jpg)
20
![Page 21: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/21.jpg)
21
![Page 22: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/22.jpg)
22
![Page 23: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/23.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/24.jpg)
24
![Page 25: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/25.jpg)
25
![Page 26: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/26.jpg)
26
![Page 27: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/27.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/28.jpg)
28
![Page 29: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/29.jpg)
29
![Page 30: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/30.jpg)
30
![Page 31: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/31.jpg)
31
![Page 32: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/32.jpg)
32
![Page 33: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/33.jpg)
33
![Page 34: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/34.jpg)
34
![Page 35: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/35.jpg)
35
![Page 36: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/36.jpg)
36
![Page 37: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/37.jpg)
37
![Page 38: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/38.jpg)
38
![Page 39: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/39.jpg)
39
![Page 40: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/40.jpg)
Any Queries
40
![Page 41: Large Scale Deployment of Linux](https://reader033.fdocuments.us/reader033/viewer/2022061104/5404246d8d7f72a1768b4595/html5/thumbnails/41.jpg)
Thank you for your time
41