LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-06-2013, 03:09 PM   #1
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Rep: Reputation: 5
Debian - Setup TFTP to boot CentOS


Hello all!

I have set up a Debian(Wheezy7.0) SAN to boot a CentOS6 client. I have a successful connection between the iSCSI target and initiator and installed CentOS directly to the Debian SAN on its own physical hard drive (/dev/sdb1). I used Debian's iscsitarget for this. I then set up isc-dhcp-server on Debian to serve an address to the CentOS client which also works fine.

I'm stuck on how to set up the TFTP server, though. I tried using Debian's TFTPD-HPA but I am at a loss for how to point it to /dev/sdb1...

Any help would be much appreciated and thanks in advance for taking the time to read it!
 
Old 06-06-2013, 03:41 PM   #2
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Original Poster
Rep: Reputation: 5
Here are the notes I took while configuring this:

// Time to install some DHCP since it looks like CentOS is trying to boot via PXE and not receiving an address...

apt-get isc-dhcp-server
// Get a DHCP I've used before...

vim /etc/dhcp/dhcpd.conf
option domain-name "example.com";
option domain-name-servers san0.example.com;
default-lease-time 6000;

allow booting;
allow bootp;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.99.10 192.168.99.20;
option broadcast-address 192.168.99.255;
option domain-name-servers 192.168.99.1;
}

group {
next-server 192.168.99.6;
host tftpclient {
hardware ethernet 00:0C:29:A8:93F;
filename "pxelinux.0";
}
}

service isc-dhcp-server restart

vim /var/log/daemon.log
// Verify DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, DHCPACK are in use

apt-cache search tftpd
// Looks like the package on this howto is there

apt-get install tftpd-hpa

TFTP_USERNAME="initiator1"
TFTP_DIRECTORY="/dev/sdb1"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"

service tftpd-hpa restart
// Error on restart "Restarting HPA's tftpd: in.tftpd/dev/sdb1 missing, aborting..."

service tftpd-hpa status
// in.tftpd is not running ... failed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6 tftp directory ivandrago Linux - Software 2 09-12-2011 10:05 AM
TFTP on CentOS kmasal Linux - Networking 1 03-09-2009 06:22 AM
New CentOS 5 install, setup on first boot, no mouse or keyboard dickgregory Linux - General 1 06-18-2007 01:38 PM
tftp issue, unable to transfer kernel image using tftp to boot ltsp-client noobs4linux Linux - Networking 1 02-07-2007 01:53 AM
tftp setup blackzone Linux - Networking 1 12-23-2004 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration