I need to image about 220 computers. I created a v12.04 Ubuntu box to do so. I then followed this youtube video (https://www.youtube.com/watch?v=RkBetLzsWPY) to setup my server. After downloading drbl to Ubuntu, I disconnected it from the internet and then connected it to my switch. The only items connected to my switch:
1. The newly created Ubuntu server
2. Windows 7 computer I need to pull the image from.
I set the IP address to static (please see below) following my instructions through the video. This switch is not connected to the internet.
Then sudo /usr/sbin/drblpush -i - which I keep receving an error from
image@image-desktop:~$ sudo /usr/sbin/drblpush -i
Hint! When a yes/no option is available, the default value is uppercase, Ex. (y/N), the default is "N", when you press "Enter", it will use "N". If you are not sure which one to choose, you can just press "Enter" key.
Searching the installed packages for DRBL server...This might take several minutes...
Finished searching the installed packages for DRBL server.
The interactive mode let you supply the information of your DRBL environment.
Please enter DNS domain (such as drbl.sf.net): [drbl.org]
Set DOMAIN as drbl.org
Please enter NIS/YP domain name: [penguinzilla]
Set DOMAIN as 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. [image-desktop-]
Set the client hostname prefix as image-desktop-
eth0: IP address 192.168.1.254, netmask 255.255.255.0
Configured ethernet card(s) found in your system: eth0
The public IP address of this server is NOT found.
Which ethernet port in this server is for public Internet accsess, not for DRBL connection?
Available ethernet ports in this server:
eth0 (192.168.1.254), [eth0]
The ethernet port you choose for the WAN connection: eth0
///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]
OK! Let's continue...
Hostmin: 192.168.1.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 eth0 ? [y/N]
OK! Let's continue, we will set the IP address of clients by "first boot gets IP first" instead of fixed one!
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 eth0. [1]
How many DRBL clients (PC for students) connected to DRBL server's ethernet network interface eth0 ?
Please enter the number: [12] 25
We will set the IP address for the clients connected to DRBL server's ethernet network interface eth0 as: 192.168.1.1 - 192.168.1.25
Accept ? [Y/n]
OK! Let's continue...
The Layout for your DRBL environment:
NIC NIC IP Clients
+-----------------------------+
| DRBL SERVER |
| |
| +-- [eth0] 192.168.1.254 +- to WAN
| |
| +-- [eth0] 192.168.1.254 +- to clients group 0 [ 25 clients, their IP
| | from 192.168.1.1 - 192.168.1.25]
+-----------------------------+
Total clients: 25
Press Enter to continue...
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]
Full DRBL mode is chosen!
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]
Full clonezilla mode is set!
The CPU arch for clients when running Clonezilla job: i386
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]
Directory for clonezilla saved images: /home/partimag
If there is a local harddrive with swap partition or writable file system in your client machine,
do you want to use that swap partition or create a swap file in the writable filesystem so that client has more memory to use? (This step will NOT destroy any data in that harddisk) [Y/n]
OK! We will try to create a swap space for your client if it has a local hard drive!
What's the maximun size (Megabytes) for the swap space?
We will try to allocate the swap space for you, if it's not enough, 60% of the free space will be used. [128]
maxswapsize=128
Which mode do you want the clients to use after they boot?
"1": Graphic mode (X window system) (default),
"2": Text mode. [1]
The clients will enter graphic mode after booting.
Which mode do you want when client boots in graphic mode?
0: normal login, 1: auto login, 2: timed login [0]
The clients will wait for user to login when they boot.
Do you want to set the root's password for clients instead of using same root's password copied from server? (For better security) [y/N]
OK! Let's continue...
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]
OK! Let's continue...
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]
OK! Let's continue...
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]
Use graphic PXE Linux menu for the client.
Do you want to let audio, cdrom, floppy, video and plugdev (like USB device) open to all users in the DRBL client? If yes, we will add all the users to those device groups in the server and client. [Y/n]
OK! Let's continue...
By using alias interface, every client can have 2 IPs,
one of them is private IP for clients connected to DRBL server, and the other is public IP for clients directly connected to WAN from switch!
Do you want to setup public IP for clients? [y/N]
Do you want to let DRBL clients have an option to run terminal mode? i.e. you want to let that client run remote display (which will mostly use resources of server), say "Y" here.
Note!
0. If you say yes to this option, this will be a very limited environment for client, i.e. NO local access for USB, CD, audio, printer, etc. in client.
1. If your server is not powerful, say "no" here.
2. By saying "yes" here, we will turn on xdmcp,
It is never a safe thing to turn on that. Setting up /etc/hosts.allow and /etc/hosts.deny to only allow local access is another alternative but not the safest.
Firewalling port 177 is the safest if you wish to have xdmcp on.
Read the manual for more notes on the security of XDMCP.
Please set it by yourself!
3. If you say "yes" here, you might have to restart your desktop environment manager (gdm/kdm) later, remember to save your data before you close applications!
Do you want to let client has an option to run terminal mode? [y/N]
OK! Let's continue...
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
This DRBL server does NOT provide NAT service, so your DRBL client will NOT be able to access Internat.
Error! NAMESERVER is unset!
Please set it in config file "drblpush.conf" or /etc/resolv.conf.
image@image-desktop:~$
Every time I get the "NAMESERVER is unset error" that I cannot seem to fix even after combing through article after article.
Do I need to have two network cards for this to work?
My idea was to just use a switch and have no outside connections. Pull the imagine from the master and then rotate all the new computers in a large workspace.
Last edit: Adam 2016-06-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Good People,
I need to image about 220 computers. I created a v12.04 Ubuntu box to do so. I then followed this youtube video (https://www.youtube.com/watch?v=RkBetLzsWPY) to setup my server. After downloading drbl to Ubuntu, I disconnected it from the internet and then connected it to my switch. The only items connected to my switch:
1. The newly created Ubuntu server
2. Windows 7 computer I need to pull the image from.
I set the IP address to static (please see below) following my instructions through the video. This switch is not connected to the internet.
image@image-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:c9:51:d2
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::e269:95ff:fec9:51d2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:487 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:74224 (74.2 KB) TX bytes:11343 (11.3 KB)
Interrupt:20 Memory:fe500000-fe520000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:6540 errors:0 dropped:0 overruns:0 frame:0
TX packets:6540 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:431644 (431.6 KB) TX bytes:431644 (431.6 KB)
After this I run the sudo /usr/sbin/drblsrv -i command
tp' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/ethtool/ethtool_3.1-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/tcl8.5/tcl8.5_8.5.11-1ubuntu1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/expect/expect_5.45-2_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/freedos/freedos_1.0-19drbl_i386.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/h/hfsprogs/hfsprogs_332.25-10_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/h/hfsutils/hfsutils_3.2.6-11build3_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/h/hal/libhal1_0.5.14-8_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/h/hwinfo/libhd16_16.0-2.1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/h/hwinfo/hwinfo_16.0-2.1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/ipxe/ipxe_20140910-drbl1_all.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/syslinux/syslinux-common_6.03+dfsg-4_all.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/syslinux/syslinux_6.03+dfsg-4_i386.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/syslinux/isolinux_6.03+dfsg-4_all.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lftp/lftp_4.3.3-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libg/libgetopt-argvfile-perl/libgetopt-argvfile-perl_1.11-1_all.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/l/lzlib/liblz1_1.2-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libn/libnfsidmap/libnfsidmap2_0.25-1ubuntu2_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/l/lrzip/lrzip_0.608-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/w/watershed/watershed_6_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/lvm2/lvm2_2.02.66-4ubuntu7.4_i386.deb Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/l/lzip/lzip_1.13~rc2-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/lzma/lzma_9.22-2ubuntu1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/l/lzop/lzop_1.03-3_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/m/mknbi/mknbi_1.4.4-9ubuntu1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/mkswap-uuid/mkswap-uuid_0.1.1-1drbl_i386.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/n/netcat/netcat-traditional_1.10-39_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/n/netcat/netcat_1.10-39_all.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/nfs-utils/nfs-common_1.2.5-3ubuntu3.2_i386.deb Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/nfs-utils/nfs-kernel-server_1.2.5-3ubuntu3.2_i386.deb Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/n/ntfs-3g/ntfsprogs_2012.1.15AR.1-1ubuntu1.2_all.deb Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_5.9p1-5ubuntu1.9_i386.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/partimage/partimage_0.6.8-2.2_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/patch/patch_2.6.1-3ubuntu0.1_i386.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/pbzip2/pbzip2_1.1.6-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/plzip/plzip_0.7-5_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/pv/pv_1.2.0-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/syslinux/pxelinux_6.03+dfsg-4_all.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/r/reiserfsprogs/reiserfsprogs_3.6.21-1build1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/s/sdparm/sdparm_1.06-3build1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/ssh_5.9p1-5ubuntu1.9_all.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/syslinux/syslinux-efi_6.03+dfsg-4_all.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/syslinux/syslinux-utils_6.03+dfsg-4_i386.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/tofrodos/tofrodos_1.7.9.debian.1-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/t/traceroute/traceroute_2.0.18-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/t/txt2html/txt2html_2.51-1_all.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/udpcast/udpcast_20120424-drbl2_i386.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/u/ufsutils/ufsutils_8.2-3_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/u/unzip/unzip_6.0-4ubuntu2.5_i386.deb Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/v/vblade/vblade_20-1ubuntu1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/partclone/partclone_0.2.73.drbl2_i386.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/clonezilla/clonezilla_3.12.8-drbl1_all.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/d/dos2unix/dos2unix_5.3.1-1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/g/gdisk/gdisk_0.8.1-1ubuntu0.1_i386.deb Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/l/lbzip2/lbzip2_2.1-2_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://drbl.sourceforge.net/drbl-core/pool/drbl/stable/mkpxeinitrd-net/mkpxeinitrd-net_2.2.5-drbl1_i386.deb Something wicked happened resolving 'drbl.sourceforge.net:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/ssh-import-id/ssh-import-id_2.10-0ubuntu1_all.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/tftp-hpa/tftpd-hpa_5.2-1ubuntu1_i386.deb Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Warning! Some necessary packages are not installed! If you continue, maybe something will go wrong! It is better to exit now and check your /etc/apt/sources.list and internet link!
Press Ctrl-C to stop the program! Or Press "Enter" to continue...
********.
*******.
Trying to upgrade some necessary packages if available...
********.
Searching for the latest kernel in the repository... kernel ...
The kernel image in Ubuntu 12.04 "uses generic" for i686/amd64 CPU.
/usr/share/drbl/bin/pkg-ver-latest: line 51: gawk: command not found
/usr/share/drbl/bin/pkg-ver-latest: line 51: gawk: command not found
The latest kernel in the ayo repository is
There are 2 kernels available for clients, which one do you prefer?
[1]: kernel 3.11.0-15-generic i686 (from this DRBL server)
[1]
Clients will use the kernel 3.11.0-15-generic i686 from server.
It might take several minutes to install this kernel, please be patient...
done! *******.
Installing kernel for clients... ...
Searching for the latest kernel in the repository... kernel ...
********.
Now run: drblsrv-offline -c -d -a -l en_US.UTF-8 -s 3.11.0-15-generic "" ""
Using kernel from this server for client... *******.
Your OS version is:: Ubuntu 12.04
********.
*******.
Installing kernel for clients... ...
The kernel for client is copied from server.
Installing kernel 3.11.0-15-generic for clients...
It might take several minutes to install this kernel, please be patient... ...done!
Generating modules.dep and map files for clients... done!
Preparing the kernel firmware for clients...
********.
Creating config file for PXE clients...
Copying pxelinux.0, gpxelinux.0, menu.c32, vesamenu.c32, chain.c32, mboot.c32, sanboot.c32 and memdisk to /tftpboot/nbi_img...
Copying memtest86+ to /tftpboot/nbi_img...
Warning! /usr/lib/freedos/fdos1440.img NOT found!!! FreeDOS Remote boot does NOT work!!!
Press "Enter" to continue...
Generating default pxelinux config (/tftpboot/nbi_img/pxelinux.cfg/default)...
Use com32 module: vesamenu.c32
No packages found matching clonezilla.
Adding menus for DRBL, local boot, memtest86+, FreeDOS...
done! *******.
********.
Creating the image files for PXE and Etherboot client computer(s), this will take a few minutes ...
The latest kernel for the DRBL clients is 3.11.0-15-generic
Running mknic-nbi --kernel 3.11.0-15-generic --all --no-modules
Will client check DHCP server name is "drbl" or not: yes
The maximum times to try to get IP address for a client: 5
The pause time after network card is up: 0
The timeout to wait for network card linked (Unit: 0.1 secs): 70
The NFS protocol for DRBL system: nfs3
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Setting port for udhcpc request to default...
Can't open /usr/lib/mkpxeinitrd-net/initrd-skel/etc/linuxrc.conf: No such file or directory.
Using the kernel modules from /tftpboot/node_root//lib/modules...
The selected kernel for DRBL clients is: 3.11.0-15-generic
Kernel 2.6 or 3 was found, so default to use initramfs.
Creating the network boot initrd for PXE clients by: mkpxeinitrd-net -k 3.11.0-15-generic -t initramfs -nf
/usr/sbin/mknic-nbi: line 363: mkpxeinitrd-net: command not found
Finished!
Done! *******.
Then sudo /usr/sbin/drblpush -i - which I keep receving an error from
image@image-desktop:~$ sudo /usr/sbin/drblpush -i
Hint! When a yes/no option is available, the default value is uppercase, Ex. (y/N), the default is "N", when you press "Enter", it will use "N". If you are not sure which one to choose, you can just press "Enter" key.
Searching the installed packages for DRBL server...This might take several minutes...
Finished searching the installed packages for DRBL server.
The interactive mode let you supply the information of your DRBL environment.
Please enter DNS domain (such as drbl.sf.net):
[drbl.org]
Set DOMAIN as drbl.org
Please enter NIS/YP domain name:
[penguinzilla]
Set DOMAIN as 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.
[image-desktop-]
Set the client hostname prefix as image-desktop-
eth0: IP address 192.168.1.254, netmask 255.255.255.0
Configured ethernet card(s) found in your system: eth0
The public IP address of this server is NOT found.
Which ethernet port in this server is for public Internet accsess, not for DRBL connection?
Available ethernet ports in this server:
eth0 (192.168.1.254),
[eth0]
The ethernet port you choose for the WAN connection: eth0
///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]
OK! Let's continue...
Hostmin: 192.168.1.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 eth0 ?
[y/N]
OK! Let's continue, we will set the IP address of clients by "first boot gets IP first" instead of fixed one!
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 eth0.
[1]
How many DRBL clients (PC for students) connected to DRBL server's ethernet network interface eth0 ?
Please enter the number:
[12] 25
We will set the IP address for the clients connected to DRBL server's ethernet network interface eth0 as: 192.168.1.1 - 192.168.1.25
Accept ? [Y/n]
OK! Let's continue...
The Layout for your DRBL environment:
+-----------------------------+
| DRBL SERVER |
| |
| +-- [eth0] 192.168.1.254 +- to WAN
| |
| +-- [eth0] 192.168.1.254 +- to clients group 0 [ 25 clients, their IP
| | from 192.168.1.1 - 192.168.1.25]
+-----------------------------+
Total clients: 25
Press Enter to continue...
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]
Full DRBL mode is chosen!
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]
Full clonezilla mode is set!
The CPU arch for clients when running Clonezilla job: i386
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]
Directory for clonezilla saved images: /home/partimag
If there is a local harddrive with swap partition or writable file system in your client machine,
do you want to use that swap partition or create a swap file in the writable filesystem so that client has more memory to use? (This step will NOT destroy any data in that harddisk)
[Y/n]
OK! We will try to create a swap space for your client if it has a local hard drive!
What's the maximun size (Megabytes) for the swap space?
We will try to allocate the swap space for you, if it's not enough, 60% of the free space will be used.
[128]
maxswapsize=128
Which mode do you want the clients to use after they boot?
"1": Graphic mode (X window system) (default),
"2": Text mode.
[1]
The clients will enter graphic mode after booting.
Which mode do you want when client boots in graphic mode?
0: normal login, 1: auto login, 2: timed login
[0]
The clients will wait for user to login when they boot.
Do you want to set the root's password for clients instead of using same root's password copied from server? (For better security)
[y/N]
OK! Let's continue...
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]
OK! Let's continue...
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]
OK! Let's continue...
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]
Use graphic PXE Linux menu for the client.
Do you want to let audio, cdrom, floppy, video and plugdev (like USB device) open to all users in the DRBL client? If yes, we will add all the users to those device groups in the server and client.
[Y/n]
OK! Let's continue...
By using alias interface, every client can have 2 IPs,
one of them is private IP for clients connected to DRBL server, and the other is public IP for clients directly connected to WAN from switch!
Do you want to setup public IP for clients?
[y/N]
Do you want to let DRBL clients have an option to run terminal mode? i.e. you want to let that client run remote display (which will mostly use resources of server), say "Y" here.
Note!
0. If you say yes to this option, this will be a very limited environment for client, i.e. NO local access for USB, CD, audio, printer, etc. in client.
1. If your server is not powerful, say "no" here.
2. By saying "yes" here, we will turn on xdmcp,
It is never a safe thing to turn on that. Setting up /etc/hosts.allow and /etc/hosts.deny to only allow local access is another alternative but not the safest.
Firewalling port 177 is the safest if you wish to have xdmcp on.
Read the manual for more notes on the security of XDMCP.
Please set it by yourself!
3. If you say "yes" here, you might have to restart your desktop environment manager (gdm/kdm) later, remember to save your data before you close applications!
Do you want to let client has an option to run terminal mode?
[y/N]
OK! Let's continue...
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
This DRBL server does NOT provide NAT service, so your DRBL client will NOT be able to access Internat.
Error! NAMESERVER is unset!
Please set it in config file "drblpush.conf" or /etc/resolv.conf.
image@image-desktop:~$
Every time I get the "NAMESERVER is unset error" that I cannot seem to fix even after combing through article after article.
Do I need to have two network cards for this to work?
My idea was to just use a switch and have no outside connections. Pull the imagine from the master and then rotate all the new computers in a large workspace.
Last edit: Adam 2016-06-24
Please use Ubuntu 14.04 or 16.04 to install drbl.
Or you can use DRBL live, this should be easier.
http://drbl.org/download/
Steven