Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

Embed Size (px)

Citation preview

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    1/17

    Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    The problem:Purchases or donations of multiple identical computers / laptops require a standardized

    setup before deploying them on campus. Setting up and configuring computers for campus use can take

    several hours for a single computer. Commercial disk imaging softwarelicensing can be costly.

    The solution: Set up ONE computer in a standardized configuration and then duplicate it exactly to the

    other computers using a method known as cloning or disk imaging. Avoid high licensing costs for

    commercial cloning software by using Clonezilla Server, afree open source disk imaging s oftware.

    The method used here is multicast disk imaging.

    This is a preferred method of re-imaging many computers simultaneously. Using multicasting, a roomful

    of computers will image in the same time as a single computer using other methods.

    Disk Imaging example using 6 clients and a network switch:

    There are 4 main steps to successfully imaging groups of computers.

    Install and configure an disk image server.1.

    Setup a mini computer cloning s tation.2.

    Clone the master computer's hard disk to an image file.3.

    Create clones from the master disk image file.4.

    Imaging for School Computers - Free http://oakdome.com/k5/tutorials/computer-cloning/free-compute

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    2/17

    Create clones from the master disk image file.4.

    To do this you will need:

    An Ubuntu Linux computer with Clonezilla Server installed.

    A simple 10/100 or 10/100/1000 network switch with 8 ports or more.

    Ethernet network cables connecting all computers to the switch.

    A fully configured Windows computer as the "Master" computer.

    All the computers must be able to boot up from the network card. (PXE booting)

    One or more computers to be cloned from the master.

    Step 1. Install and configure a disk image server.

    First install Ubuntu Linux Desktop

    Download and install the latest Ubuntu Desktop release on a spare computer or laptop. A recent

    computer with a Pentium 4 processor or better, 512MB ram and 40GB drive or more will suffice. This

    computer needs internet access to download software during installation.

    The Ubuntu download is an .iso file that needs to be burned to a CD. You can burn it with Img Burn, a

    free program.

    Insert the Ubuntu CD, restart the computer and watch the screen for a message that says "Press any key

    to boot from CD". Press a key.

    If you don't see that message, change the boot order to boot from the CD first in BIOS.

    Follow the prompts to install Ubuntu. Recent Ubuntu Desktop installations are straightforward. No special

    Imaging for School Computers - Free http://oakdome.com/k5/tutorials/computer-cloning/free-compute

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    3/17

    Follow the prompts to install Ubuntu. Recent Ubuntu Desktop installations are straightforward. No special

    configurations are necessary.

    Next install Clonezilla Server on the Ubuntu Linux Desktop

    Clonezilla Server is used to clone many computers simultaneously across a network. This is done using

    a DRBL server and computer workstations that can boot from a network.

    1. Install the key for the Clonezilla repository. Enter the following in the terminal to download the key:

    To get to the terminal in Ubuntu go to:Appl ications > Accessories > Terminal

    Now type:

    wget http://drbl.nchc.org.tw/GPG-KEY-DRBL

    2. Add the key:

    sudo apt-key add GPG-KEY-DRBL

    3. Add the Clonezilla repository to the apt source.list file. Open /etc/apt/source.list in the nano text editor:

    sudo nano /etc/apt/sources.list

    4. Add the following lines to the bottom of the list. Replace "lucid" with the name of the Ubuntu

    distribution you are using. I.E. gutsy, feisty, edgy, hardy, lucid..: Find your release name here.

    deb http://free.nchc.org.tw/ubuntulucidmain restricted universe multiverse

    deb http://free.nchc.org.tw/drbl-core drbl stable

    Save changes and exit the file. ( ctrl + x) then press Yesat the prompt andEnterto exit the nano editor.

    5.Run these two commands to update your list and install drbl:

    sudo apt-get updatesudo apt-get install drbl

    6. Finally:

    sudo /opt/drbl/sbin/drbl4imp

    This configures DRBL and CloneZilla with default values.

    When the installation is finished, Clonezilla is started and ready to accept clients for cloning.

    Stop the Clonezilla Server. Type this in the terminal:

    sudo /opt/drbl/sbin/dcs clonezilla-stop

    June 29 2013 - A message from a user has indicated that there is a change:

    Imaging for School Computers - Free http://oakdome.com/k5/tutorials/computer-cloning/free-compute

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    4/17

    June 29 2013 - A message from a user has indicated that there is a change:

    NOTE: From DRBL version 2.x, those related files are not in /opt /drbl/ anymore.

    "All the files are in /usr/sbin/, /usr/bin, /etc/drbl/ or /usr/share/drbl/.

    but I found the above info via google, now it works

    We have to install 40 new (secondhands) pc's"

    Dree

    Step 2. Setup a mini computer cloning s tation

    This part is fairly simple, perhaps the hardest part is finding space to setup the equipment.

    To do this you will need:

    1. An ethernet switch wi th 8 ports or more.

    2. Cat 5 Ethernet cables - enough for each computer toconnect to the switch.

    3. Setup the mini cloning station

    Setup all the computers and the server. Connect all of them to the switch. We want to isolate these

    computers from any other network so do not connect the switch to your router or another switch. The

    Clonezilla server will be using it's own DHCP server to give the computers IP address to communicate

    back and forth. We don't want any network conflicts or any unintended machines to be cloned. Keep this

    mini network separate from your regular network!

    Mass computer disk imaging network setup diagram:

    Imaging for School Computers - Free http://oakdome.com/k5/tutorials/computer-cloning/free-compute

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    5/17

    Imaging for School Computers - Free http://oakdome.com/k5/tutorials/computer-cloning/free-compute

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    6/17

    Step 3. Clone the master computer to an image file

    Overview of Step 3:

    In this step, you will create a disk image of your master computer and save it on the Clonezila Server.

    1. Start Conezilla Server

    Open the terminal on Ubuntu.Appl ications > Accessories > Terminal.

    Type:sudo /opt/drbl/sbin/dcs

    Follow the prompts and enter as illustrated:

    1.

    Imaging for School Computers | K-5 Computer Lab http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    7/17

    2. Start the server in Clonezilla mode.

    3. Run the wizard in Beginner mode: Accept the default options.

    4.Select to save-disk which clones the computer disk and saves it as an image file.

    5.Select the option to input the image and device name later.

    6.You can choose to reboot or poweroff the computer after it is cloned.

    7.

    Imaging for School Computers | K-5 Computer Lab http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    8/17

    7.

    8.Use the enter button to finish.Clonezilla has loaded all of your settings. Leave this terminal open.

    Now it is time to set up the Master Computer to PXE boot and clone it's disk to a file on the server.

    2. Start the Master Computer

    In order to clone the Master Computer, it must be set to boot from the network card. Booting from the

    network is known as PXE booting. PXE is short for Preboot eXecution Environment. It allows the

    computers to boot up via their network interface instead of the CD rom or hard drive.

    To configure your client PC to boot from the network card, access the computers BIOS. The BIOS

    is accessed by entering a key during power up. The keys vary by computer model and brands, but F1,

    F2, F12, DEL, and ESC are common. You may have to google your computer model to get the proper

    key.

    In the BIOS control panel, locate the menu for changing the startup sequence. Set the first boot device to

    the network card. In the screen pic below, it is a PXE menu item, on some motherboards the choice may

    be LAN or something similar.

    After setting the computer to PXE boot in the BIOS, save the changes and exit the BIOS. Allow the

    computer to restart. It will start using the network card, contact the Clonezilla server to get an IP address

    and load the Clonezilla boot program into memory.

    Imaging for School Computers | K-5 Computer Lab http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    9/17

    .

    3. Clone the Master Computer

    1. After loading the boot program, the Master Computer prompts you to input a name for the saved

    image.

    2. Use the space bar to put an asterisk next to the disk you want to clone.

    3. After entering , sit back and let Clonezilla work. Here, a 10.7 GB disk finishes imaging after

    about 14 minutes. You can shutdown the Master Computer after it is finished. Exit the terminal.

    4. Check the Clonezilla server for the completed image files. File System > home > partim ag

    Imaging for School Computers | K-5 Computer Lab http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    10/17

    5.Shutdown the Master Computer.

    Imaging for School Computers | K-5 Computer Lab http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    11/17

    Step 4. Create clones from the master disk image file

    Overview of this step:

    All of the clients will receive the Master Computer's disk image from the Clonezilla Server simultaneously

    using multicast imaging.

    ng School Computers with Free Disk Imaging Software http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    12/17

    1. Start the Clonezilla Server, configure to restore disks

    1.Choose to select all the clients for disk imaging.

    2.Select clonezilla-start Start clonezilla mode.

    3.Choose Beginner mode: Accept the default options.

    4.Choose restore-disk, Restore an image onto the computers.

    5.Make sure you select poweroff - Shutdown client when the clone finishes. You don't want the finished

    client rebooting and loading up the clonezilla program again.

    ng School Computers with Free Disk Imaging Software http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    13/17

    6.Choose the disk image you want to restore.

    7.Choose the target disks to be overwritten.

    8.Choose multicast to restore multiple cl ients simultaneously.

    9.Set the number of clients that Clonezilla will wait for before starting disk restoral / cloning.

    10.Choose the number of clients you are cloning.

    ng School Computers with Free Disk Imaging Software http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    14/17

    11.After pressing Clonezilla will load your settings and then it is ready to restore disks on theclients. Leave the terminal open.

    ng School Computers with Free Disk Imaging Software http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    15/17

    Step 4. Part 2 - PXE boot the clients and begin cloning

    1.With the clients configured to PXE boot on startup, start the clients to be cloned. A screen similar to

    this appears while the client is contacting the Clonzilla server:

    2.When the client successfuly loads the Clonezilla program, choose Clonezilla: multicast restore if it isnot already selected.

    3.Once all the clients are ready, the cloning will start.

    ng School Computers for Free with Clonezilla Server http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    16/17

    4.Once the cloning starts, all the clients will be cloned simutaneously. These are 3 clients being cloned

    at the same time.

    .

    5.When the cloning process has finished, the clients should shutdown automatically if you configured that

    option in Clonezilla. Start the clients, enter the BIOS again and change the boot order to start from theCD / ROM or Hard drive first. Save changes and exit.

    6.Start the clients. All of them will be exact duplicates of the Master Computer. You will need to change

    all of their names to avoid network conflicts.

    ng School Computers for Free with Clonezilla Server http://oakdome.com/k5/tutorials/computer-cloning/free-computer-

    2/15/2014

  • 7/21/2019 Disk Imaging for Groups of Computers Using Clonezilla Server (FREE)

    17/17

    7.Stop Clonezilla Server

    Open the terminal.Appl ications > Accessor ies > Terminaland they type;

    sudo /opt/drbl/sbin/dcs

    Click throught the Clonezilla screens and then select Clonezilla-stop Stop clonezilla mode to shut down

    the CloneZilla Server.

    DONE!

    ng School Computers for Free with Clonezilla Server http://oakdome.com/k5/tutorials/computer-cloning/free-computer-