Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Large Scale Deployment of Linux


Published on

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:
IT Managers
System Administrators

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Large Scale Deployment of Linux

  1. 1. Large Scale Deployment of Linux
  2. 2. Getting to know the Audience <ul><li>How many of you are Linux Users? </li></ul><ul><li>How many of you have installed your Operating Systems of your own? </li></ul><ul><li>Average Time Required in installation of OS </li></ul><ul><li>Imagine the time required to install 50 such systems Single Handedly </li></ul><ul><li>How about I tell you a way of installing all these 50 systems or such a huge number in the same 30 min </li></ul><ul><li>Anybody having a clue that how will we do this?! </li></ul>
  3. 3. <ul><li>Booting from LAN </li></ul><ul><li>aka </li></ul><ul><li>Network Boot </li></ul><ul><li>aka </li></ul><ul><li>PXE Booting </li></ul><ul><li>aka </li></ul><ul><li>Etherboot </li></ul>Answer <ul><li>So how are we going serve the requests from the client who will boot from the network </li></ul><ul><li>Obviously, we will be needing a server that will provide support for pxe booting. </li></ul>
  4. 4. BEFORE THAT <ul><li>You must have heard of cloning softwares like </li></ul><ul><ul><li>Ghost aka Norton Ghost </li></ul></ul><ul><ul><li>Acronis True Image </li></ul></ul><ul><li>Why not use the above softwares </li></ul><ul><ul><li>No GPL Licence – No Freedom </li></ul></ul><ul><ul><li>Very Expensive </li></ul></ul><ul><ul><li>Slow </li></ul></ul>
  5. 5. Diskless Remote Boot in Linux <ul><li>DRBL (Diskless Remote Boot in Linux) is a server providing a diskless environment for client machines. </li></ul><ul><li>It could be used for </li></ul><ul><li>providing for a network installation of Linux distributions like Fedora, Debian, etc., </li></ul><ul><li>cloning machines with Clonezilla software inbuilt, </li></ul><ul><li>providing machines via PXE boot with a small size operation system (e. g. Puppy Linux). </li></ul><ul><li>How to provide a DRBL-Server </li></ul><ul><li>Installation on a machine running a supported Linux distribution </li></ul><ul><li>Live CD. </li></ul><ul><li>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. </li></ul><ul><li>DRBL comes under the terms of a GPL license so providing the user with the ability to customize it. </li></ul>
  6. 6. <ul><li>The client computer is set to boot from the network card using PXE or Etherboot. </li></ul><ul><li>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. </li></ul><ul><li>From there, the client boots the Linux distribution in which the DRBL server is installed, Clonezilla </li></ul><ul><li>All system resources reside on the local machine except storage, which resides on the DRBL server. </li></ul>How it works after the installation of the server <ul><li>The DRBL-based PXEBoot Clonezilla is used to </li></ul><ul><li>Clone many computers simultaneously . </li></ul><ul><li>Configuration all of your client computers by installing one server machine. </li></ul><ul><li>DRBL with Clonezilla allows you to use multi-casting to deploy many computers in the same time. </li></ul>DRBL / Clonezilla is free, open source, and downright FAST!
  7. 7. Ubuntu Linux: Creating ethernet alias for eth0 network device <ul><li>Multiple IP Address </li></ul><ul><li>Assuming that your eth0 IP is and you would like to create an alias eth0:0 with IP Type the following command: </li></ul><ul><li>sudo ifconfig eth0:0 up </li></ul><ul><li>Verify that alias is up and running using following two command(s): </li></ul><ul><li>ifconfig </li></ul><ul><li>ping </li></ul>
  8. 8. 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 netmask broadcast network Save the file and restart system or restart the network: sudo /etc/init.d/networking restart
  9. 9. Add the repositories for DRBL by editing the /etc/apt/sources.list file sudo gedit /etc/apt/sources.list and insert the following 2 lines at the bottom deb lucid main restricted universe multiverse # deb drbl stable Next you need to grab the keys...use the following commands sudo wget sudo apt-key add GPG-KEY-DRBL Now let's update and install sudo apt-get update sudo apt-get install drbl Now it's time to run the setup program! This is an interactive set up script. After running this (and MUST be connect to the internet to work as it will use &quot;apt-get&quot; to download more packages) sudo /opt/drbl/sbin/drblsrv -i Afterwards, 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.
  10. 10. <ul><li>To create an image, </li></ul><ul><li>Start CloneZilla Server on the Ubuntu system </li></ul><ul><li>Tell it to store an image </li></ul><ul><li>Then we boot the client system which has to be cloned from the network. </li></ul><ul><li>That client should then boot into a CloneZilla Linux system that connects to the server and create the image. </li></ul><ul><li>Run </li></ul><ul><li>/opt/drbl/sbin/dcs </li></ul><ul><li>on the Ubuntu server and select </li></ul><ul><li>All Select all clients </li></ul>Creating An Image Of A Linux System
  11. 11.
  12. 12.
  13. 13.
  14. 14.
  15. 15.
  16. 16.
  17. 17.
  18. 18.
  19. 19.
  20. 20.
  21. 21.
  22. 22.
  23. 23. <ul><li>To Restore an image, </li></ul><ul><li>Stop CloneZilla Server on the Ubuntu system </li></ul><ul><li>Again, Start CloneZilla Server on the Ubuntu system </li></ul><ul><li>Tell it to restore an image </li></ul><ul><li>Then we boot the client systems on which we have to install the cloned image. </li></ul><ul><li>That client should then boot into a CloneZilla Linux system that connects to the server and restore the image. </li></ul><ul><li>Run </li></ul><ul><li>/opt/drbl/sbin/dcs </li></ul><ul><li>on the Ubuntu server and select </li></ul><ul><li>All Select all clients </li></ul>Restoring An Image Of A Linux System
  24. 24.
  25. 25.
  26. 26.
  27. 27. Run /opt/drbl/sbin/dcs on the Ubuntu server and select All Select all clients Clonezilla Stopped
  28. 28.
  29. 29.
  30. 30.
  31. 31.
  32. 32.
  33. 33.
  34. 34.
  35. 35.
  36. 36.
  37. 37.
  38. 38.
  39. 39.
  40. 40. Any Queries
  41. 41. Thank you for your time