Menu

TFTP timeout

Zvetam
2014-03-14
2014-03-18
  • Zvetam

    Zvetam - 2014-03-14

    Hi!
    Quick disclaimer: I'm a complete newbie so I'm sure I've done something incredibly stupid. Sorry in advance:)

    So, I'm trying to set up a clonezilla server. I'm running Ubuntu 12.04. When I start the client it picks up an IP address but then waits for TFTP and I receive a TFTP timeout.

    This is my config file:

    Setup for general

    [general]
    domain=drbl.org
    nisdomain=penguinzilla
    localswapfile=no
    client_init=text
    login_gdm_opt=
    timed_login_time=
    maxswapsize=
    ocs_img_repo_dir=/clonezilla
    total_client_no=15
    create_account=
    account_passwd_length=8
    hostname=clonezilla
    purge_client=yes
    client_autologin_passwd=
    client_root_passwd=
    client_pxelinux_passwd=
    set_client_system_select=no
    use_graphic_pxelinux_menu=no
    set_DBN_client_audio_plugdev=no
    open_thin_client_option=no
    client_system_boot_timeout=
    language=en_US.UTF-8
    set_client_public_ip_opt=no
    config_file=drblpush.conf
    collect_mac=no
    run_drbl_ocs_live_prep=yes
    drbl_ocs_live_server=
    clonezilla_mode=clonezilla_box_mode
    live_client_branch=alternative
    live_client_cpu_mode=i386
    drbl_mode=none
    drbl_server_as_NAT_server=no
    add_start_drbl_services_after_cfg=yes
    continue_with_one_port=

    Setup for eth1

    [eth1]
    interface=eth1
    range=2-16

    this showed up when i finished configuring :

    OK! Let's do it!

    Some files are found in /usr/share/drbl//prerun/drbl/. Run them first...
    Checking the necessary disk space... done!
    Copying the config file to /etc/drbl... done!
    Backup the original /etc/hosts as /etc/hosts.drblsave... done!
    Generate the /etc/hosts for clients connected to eth1... done!
    Cleaning the stale files of the diskless nodes if they exist... done!
    ********.
    *******.
    The version number for your GNU/Linux: DBN-TU
    Completely cleaning old common root files if they exist... done !
    Completely cleaning old nodes if they exist... done !
    Creating common root files... This might take several minutes...........Copying normal dir /lib64 to /tftpboot/node_root/... done!
    Update the kernel for client if necessary...
    The DRBL client uses x86_64 kernel with version 3.11.0-18-generic...
    Trying to update the /tftpboot/node_root/lib/modules/3.11.0-18-generic from server's /lib/modules/... This might take several minutes...
    Found kernel modules in /lib/modules/3.11.0-18-generic and its arch "x86_64" matches client's "x86_64"...
    Syncing /lib/modules/3.11.0-18-generic to client's common root...
    Syncing /boot/
    -3.11.0-18-generic to client's common root...
    Generating the /tftpboot/node_root/lib/modules/3.11.0-18-generic/modules.dep
    Syncing /lib/firmware/ to client's common root...
    Copying the directory /etc/ to clients common root /tftpboot/node_root...
    Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.deny copied from server... done!
    Commenting the TCPwrapper related file /tftpboot/node_root/etc/hosts.allow copied from server... done!
    cp: cannot stat /usr/share/drbl//setup/files/ocs/ocs-run': No such file or directory cp:/lib64/ld-linux-x86-64.so.2' and /tftpboot/node_root/lib64/ld-linux-x86-64.so.2' are the same file The startup services for DRBL client are: firstboot dbus acpid acpi-support cups drblthincli arm-wol sendsigs umountfs cp:/lib64/ld-linux-x86-64.so.2' and /tftpboot/node_root/lib64/ld-linux-x86-64.so.2' are the same file cp:/lib64/ld-linux-x86-64.so.2' and /tftpboot/node_root/lib64/ld-linux-x86-64.so.2' are the same file Using udev for clients... Set text mode for Debian DRBL client... cp:/lib64/ld-linux-x86-64.so.2' and /tftpboot/node_root/lib64/ld-linux-x86-64.so.2' are the same file Note: xinetd currently is not fully supported by update-inetd. Please consult /usr/share/doc/xinetd/README.Debian and itox(8). Deleting the accounts (except root) in the clients common root template... cp:/lib64/ld-linux-x86-64.so.2' and /tftpboot/node_root/lib64/ld-linux-x86-64.so.2' are the same file Can't open /var/yp/Makefile: No such file or directory. Can't open /var/yp/Makefile: No such file or directory. grep: /var/yp/Makefile: No such file or directory Can't open /var/yp/Makefile: No such file or directory. done! Enabling the NIS client in the common root template... done! Creating some necessary files in the clients common root template.....touch: cannot touch/tftpboot/node_root/var/lib/nfs/state': No such file or directory
    . done!
    Creating DRBL client: clonezilla102 192.168.1.2... Generating SSH host keys for client 192.168.1.2 if they do not exist... done!
    Display manager:"lightdm"...
    Setting node 192.168.1.2 as normal_login... done!
    /usr/share/drbl/sbin/drbl-gen-client-files: line 400: ocs-related-srv: command not found
    Creating DRBL client: clonezilla103 192.168.1.3... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla104 192.168.1.4... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla105 192.168.1.5... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla106 192.168.1.6... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla107 192.168.1.7... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla108 192.168.1.8... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla109 192.168.1.9... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla110 192.168.1.10... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla111 192.168.1.11... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla112 192.168.1.12... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla113 192.168.1.13... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla114 192.168.1.14... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla115 192.168.1.15... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Creating DRBL client: clonezilla116 192.168.1.16... Pseudo client is created for DRBL SSI or clonezilla box mode! done!
    Template client for DRBL SSI, Clonezilla box mode or Clonezilla live client is 192.168.1.2
    Using template host /tftpboot/nodes/192.168.1.2
    Generating SSH host keys for client 192.168.1.2 if they do not exist... done!
    Generating the files for DRBL single system image template... root... etc... var... Root's openssh public key... /usr/share/drbl/sbin/drbl-gen-ssi-files: line 152: output_ocs_related_pkgs: command not found
    done!
    ./drbl_deploy.sh: line 2010: drbl-ocs-live-prep: command not found
    Disable the password in pxelinux simple menu for all clients...
    Disabling PXE password in config file /tftpboot/nbi_img/pxelinux.cfg/default...
    done!
    Now add necessary services to this DRBL server: DHCP, TFTP, NFS, NIS...
    Generating the NFS exports for DRBL clients...
    Backup the original /etc/exports as /etc/exports.drblsave
    Exporting to clients by IP address line-by-line...
    The /etc/exports setting is ok now!
    This DRBL server does NOT provide NAT service, so your DRBL client will NOT be able to access the Internet.
    Now stop the NAT service...
    Now set the YP securenets...
    Backup the original /etc/ypserv.securenets as /etc/ypserv.securenets.drblsave
    The /etc/ypserv.securenets setting is done!
    Update YP...
    Now add the service: xinetd isc-dhcp-server drbl-clients-nat
    Force to add xinetd service in this Debian DRBL server...
    Force to add isc-dhcp-server service in this Debian DRBL server...
    Force to add drbl-clients-nat service in this Debian DRBL server...
    Now start the service: xinetd isc-dhcp-server drbl-clients-nat
    xinetd stop/waiting
    xinetd start/running, process 12496
    isc-dhcp-server stop/waiting
    isc-dhcp-server start/running, process 12509
    Stopping the NAT services for DRBL clients... Now stop the NAT service...
    done!
    Starting the NAT services for DRBL clients... done!
    ip_forward is already on.
    Clean all the previous saved config file if they exist...done!
    Turn off the boot prompt for PXE client...done!
    Modifying /tftpboot/nbi_img/pxelinux.cfg/default to let DRBL client use text PXE boot menu... done!
    Turn off all MENU DEFAULT in /tftpboot/nbi_img/pxelinux.cfg/default...
    Make "local" as default label in /tftpboot/nbi_img/pxelinux.cfg/default.
    DRBL service is set as unavailable. Set clientdir opt for label drbl in pxelinux config...
    Setting drbl_mode="none" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
    Clonezilla box mode. Set clientdir opt for label clonezilla in pxelinux config...
    Setting clonezilla_mode="clonezilla_box_mode" in /etc/drbl/drbl_deploy.conf and /etc/drbl/drblpush.conf... done!
    You have to use "dcs" -> clonezilla-start to start Clonezilla service, so that there will be a Clonezilla menu when client boots
    Some files are found in /usr/share/drbl//postrun/drbl/. Run them now...
    Warning! You already set the /etc/hosts.allow or /etc/hosts.deny!
    You must MAKE SURE these clients:
    192.168.1.2 192.168.1.3 192.168.1.4 192.168.1.5
    192.168.1.6 192.168.1.7 192.168.1.8 192.168.1.9
    192.168.1.10 192.168.1.11 192.168.1.12 192.168.1.13
    192.168.1.14 192.168.1.15 192.168.1.16
    can access this DRBL server!
    Otherwise, your client will fail to boot, and error messages will appear like:
    TFTP open timeout
    TFTP.......
    or
    mount: RPC: Unable to receive; errno = Connection refused
    The number of running NFS services in this DRBL number (0) is not enough for clients, 37 nsfd is expected! The performance will NOT be good! Check the NFS setting in /etc/sysconfig/ or /etc/default/!!!
    *******
    ***.

    Hosts.allow was modified with ALL: ALL
    Hosts.deny is empty.

    Please help, also, sorry for my stupidity:)

     
  • Steven Shiau

    Steven Shiau - 2014-03-16

    Did you check your system logs on the server?
    e.g. /var/log/daemon.log, /var/log/syslog, /var/log/messages?
    I believe you can find some clues.
    BTW, try to reboot your server and test it again. It might help.

    Steven.

     
  • Zvetam

    Zvetam - 2014-03-18

    Thanks, I've sorted it out.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.