We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,437 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

PXE Boot Linux

Ok, im trying to PXE boot a thin client under Linux. Ive been using the following HOWTO:

tftpd cannot do PXE installs due to the lack of the tsize option, so we use tftpd-hpa instead:

sudo apt-get install dnsmasq tftpd-hpa tftp-hpa openbsd-inetd xinetd bootp dhcp3-server

sudo mkdir /var/lib/tftpboot 
cd /var/lib/tftpboot 
sudo wget http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-i386/current/images/netboot/netboot.tar.gz
sudo tar -xvzf netboot.tar.gz -C /var/lib/tftpboot/
sudo chown -R nobody:nogroup /var/lib/tftpboot

In /etc/dnsmasq.conf, add the following (replace values as needed): 

dhcp-range=lower,upper,12h
enable-tftp
tftp-root=/var/lib/tftpboot
dhcp-boot=pxelinux.0,servername,serverip
dhcp-option=3,gatewayip
dhcp-option=6,dnsserverip

In /etc/bootptab, add the following (replace values as needed): 

client:\
ha="macaddress":\
ip=clientip:\
gw=gatewayip:\
sm=subnetmask:\
td=/var/lib/tftpboot: hd=/: bf=pxelinux.0

In /etc/default/tftpd-hpa, add the following:

RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"

Add the following to /etc/xinetd.d/tftp (replace values as needed):

 service tftp
 {
 disable = no
 socket_type = dgram
 wait = yes
 user = root
 server = /usr/sbin/in.tftpd
 server_args = -v -s /var/lib/tftpboot
 only_from = networkip
 interface = serverip
 }

Reboot the server.

BUT IT DOESNT WORK!

Anyone got a better one?

2
Contributors
3
Replies
5 Hours
Discussion Span
1 Year Ago
Last Updated
4
Views
jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

Hello,

Based on the apt-get entry I am going to direct you towards this site:
http://www.howtoforge.com/ubuntu_pxe_install_server

rch1231
Veteran Poster
1,045 posts since Sep 2009
Reputation Points: 142
Solved Threads: 154
Skill Endorsements: 12

Ill give that a shot, cheers!

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

Gave up setting it myself and installed the LTSP Server role using the Ubuntu Alternate CD. Worked out of the box.

Not quite what I wanted though. I wanted it doing the processing on the client side still (fatter client) as opposed to VDI, but will do for now....

Just needed to get a number of older machines up to use as web kiosks for a pet project.

jbennet
Moderator
Team Colleague
18,528 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 609
Skill Endorsements: 29

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0684 seconds using 2.65MB