public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Network install fails at TFTP load on client pc
@ 2008-08-12  9:08 Phil C
  2008-08-12 22:47 ` Jim Carter
  0 siblings, 1 reply; 7+ messages in thread
From: Phil C @ 2008-08-12  9:08 UTC (permalink / raw)
  To: Jim Carter; +Cc: Newbie Mailing List

> 

> Is this a pre-installer kernel and initrd for Ubuntu to be used for PXE 
> booting?  Often the two components are in separate files; the initrd may be 
> called "root.image" or something like that.

I verified from the official ubuntu website that pxelinux.0 is the file that a boot client needs to be looking for
 
> >  ###end of dmesg###
> >  ### All ip addresses and mac addresses obscured for security ###
> >  
> >  x:xx:xx SRC=192.168.10.xx DST=192.168.10.xx LEN=78 TOS=0x00 PREC=0x00 TTL=20 
> >  ID=2 PROTO=UDP SPT=2070 DPT=69 LEN=58 
> >  [101285.992494] Unknown InputIN=eth0 OUT= 
> >  MAC=00:0b:cd:05:a9:c0:00:08:0d:b5:dc:xx:xx:xx SRC=192.168.10.xx 
> >  DST=192.168.10.xx LEN=78 TOS=0x00 PREC=0x00 TTL=20 ID=3 PROTO=UDP SPT=2071 
> >  DPT=69 LEN=58 
>
> Well, the server's kernel is still logging TFTP packets, so there must be 
> another place in the iptables that needs to be perforated (temporarily).  
> Likely the firewall specifically blocks a laundry list of ports (or more 
> likely, allows only listed ports) no matter where they come from, plus 
> there is probably a chain to whitelist a specific IP address range and 
> block all others.  Both chains must be passed for the packet to be 
> accepted.  That's how a lot of firewalls work, but I've never seen what 
> Ubuntu gives you.

I tried messing with some of the firewall setting and have run into a new problem. My internet connection exists only on a WLAN right now (thanks to moronic time-warner employees) and my local network is only on LAN. I was able to get only one to communicate properly at a time. Either the laptop connects and communicates only to find that it can not route to the internet to get the rest of the files, or there is no functioning local connection. I read around and have not yet found a way around this. I need to get iptables to recognize seperate function sets for each interface and allow both to run at the same time. To the best of my knowledge iptables is configured the same way regardless of distro as it's a kernel module. Any thoughts on how to do this?

> Can you borrow a USB external DVD drive?  That's what we do when the 
> optical drive on a machine is unuseable: take the external drive off our 
> burner host and use it on the uncooperative machine.
 
There are severe compatiblity issues with this model of Toshiba Portege. Even the company admits that only a handful of external DVD/CD drives will boot properly under there broken bios. I have already tried using both the external DVD drive that I have handy and a USB key that formatted and configured to be bootable. Neither was recognized by the laptop's bios. I have no desire to get another external drive in an attempt to fix this problem. 

What are the odds of a success if I simply pull the drive, hook it up to a host machine via a 44 pin IDE adapter, install from there and pop it back in? I forsee some severe hardware config issues but I'm curiouse if that could work.

Either way I have an express intreset in achieving this network boot as I know I'll use it again somewhere down the line.

 - Phil C



      

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Network install fails at TFTP load on client pc
@ 2008-08-13  0:15 Phil C
  2008-08-13 15:41 ` Jim Carter
  0 siblings, 1 reply; 7+ messages in thread
From: Phil C @ 2008-08-13  0:15 UTC (permalink / raw)
  To: Jim Carter; +Cc: Newbie Mailing List



> > > Well, the server's kernel is still logging TFTP packets, so there must be 
> > > another place in the iptables that needs to be perforated (temporarily).  
> > > --snip--
> > 
> > I tried messing with some of the firewall setting and have run into a new 
> > problem. My internet connection exists only on a WLAN right now (thanks 
> > to moronic time-warner employees) and my local network is only on LAN. I 
> > was able to get only one to communicate properly at a time. Either the 
> > laptop connects and communicates only to find that it can not route to 
> > the internet to get the rest of the files, or there is no functioning 
> > local connection. 

> Now the problem is, if the server isn't set up for routing it will drop 
> your packets on the floor.  To cause it to forward them to the real default 
> route (the cable or DSL modem (via WLAN?)), you need to temporarily turn on 
> the feature, like this:
> 
> echo "1" > /proc/sys/net/ipv4/ip_forward

Aha! That seems like it should do the trick. And no the laptop is not booting from WLAN. The problem was that the local network and the internet are accessed on two separate NICs for the server. Since I have never actually used it to allow another local machine to connect to the internet I had completely neglected to allow for routing/packet forwarding so thanks for bringing this up.

> > I need to get iptables to recognize seperate function sets for each 
> > interface and allow both to run at the same time. 
> 
> The installer on the laptop probably doesn't have enough flexibility to 
> bring up two interfaces at once -- there are limits to what the GUI can ask 
> the user to tell it.
> 
> That's a good point: the provided firewall may have "features" for paranoia 
> relating to forwarded packets.  I know the one I wrote has special rules 
> for forwarding, and the Windows firewall is very strict about outgoing 
> packets too. 

Maybe a restriction based on mac address?

> > To the best of my 
> > knowledge iptables is configured the same way regardless of distro as 
> > it's a kernel module. Any thoughts on how to do this?
> 
> Yes, the modules are the same, but some distros have a nice GUI to 
> configure the rules, with more or less flexibility.  So the chain names and 
> their order and details will vary from one distro to the next.

GUIs be damned. I do all server and network work from the terminal. What about ipchains? It's compatible with iptables but I've never used it. Any experience there?
 
> > What are the odds of a success if I simply pull the drive, hook it up to 
> > a host machine via a 44 pin IDE adapter, install from there and pop it 
> > back in? I forsee some severe hardware config issues but I'm curiouse if 
> > that could work.
> 
> What could go wrong?  
> 
> 1. A laptop drive in a desktop machine: the PATA or SATA interfaces should 
>    be plug compatible, but what about the power connector?
> <snipped> 
>
> Conclusion: your plan is feasible... barely.

Was just a thought. I would by the way be swapping the drive out for the main drive in the host computer. I have a desktop set aside with a variety of connectors and adapters for testing hardware that I could use to run the install. I think, however, that I will not try that just yet.

> OK, the Toshiba BIOS won't boot from foreign devices.  How about this: boot 
> from the net, but once the pre-installer gets control, tell it that the 
> installation media is not on the network but rather on the local DVD or 
> flash device.  At that point you're using the Linux USB mass storage 
> driver, which should work, rather than the BIOS' broken one.  The 
> installation docs should say something about how to override the location 
> of the installation media, though the more common use-case is to boot from 
> CD/DVD and get the distro from the network.

Excellent idea! I will give that a try before attempting the install completely over the net. Thanks for all the help and for being so tolerant in answering my questions and concerns.

- Phil C



      

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Network install fails at TFTP load on client pc
@ 2008-08-08  3:35 Phil C
  0 siblings, 0 replies; 7+ messages in thread
From: Phil C @ 2008-08-08  3:35 UTC (permalink / raw)
  To: Newbie Mailing List

I am trying to isntall ubuntu via the network to a laptop that has no installed os and no optical or disk drive. Attemps at installing via USB drive have also proven unsuccesful due to compatibility issues. The laptop is a Toshiba Portege M205-s810. I have configured dhcp3 using the following dhcpd.conf file. 


#
#  Cleaned up dhcpd.conf file.
## arbitrary ip addresses ##
#  Last edit was at 0652 2008.08.07 to allow booting
#

authoritative;
allow booting;
allow bootp;

default-lease-time 14400;
max-lease-time 86400;
ddns-ttl 14400;

subnet 192.168.10.0 netmask 255.255.255.224 {
    range 192.168.10.24 192.168.10.30;
    }
    
    ignore client-updates;

    #options
    option subnet-mask 255.255.255.224;
    option broadcast-address 192.168.10.31;

    option routers 127.0.0.1;
    option domain-name-servers 192.168.10.9, 192.168.10.5;
    option domain-name "network.install";

    #Declare laptop

    #tftpd server info
    next-server 192.168.10.xx; #Last octet deleted for security
    host tftpclient {
    hardware ethernet 00:08:0d:xx:xx:xx; #Last 3 hex numbers deleted for security
    fixed-address 192.168.10.xx;         #Last octet deleted for security
    filename "/var/lib/tftpboot/test/pxelinux.0";
    }

## end dhcpd.conf ##
## All ip addresses and mac addresses obscured for security ##

I then launch tftpd and dhcpd using the following commands as root

#>in.tftpd /var/lib/tftpboot/test
#>/etc/init.d/dhcp3-server restart

The services both show that they are active and the laptop recieves DHCP requests on boot and is assigned an ip address. It then attempts to initiate TFTP and times out. The following is the end of dmesg during these attempts.

###end of dmesg###
### All ip addresses and mac addresses obscured for security ###

x:xx:xx SRC=192.168.10.xx DST=192.168.10.xx LEN=78 TOS=0x00 PREC=0x00 TTL=20 ID=2 PROTO=UDP SPT=2070 DPT=69 LEN=58 
[101285.992494] Unknown InputIN=eth0 OUT= MAC=00:0b:cd:05:a9:c0:00:08:0d:b5:dc:xx:xx:xx SRC=192.168.10.xx DST=192.168.10.xx LEN=78 TOS=0x00 PREC=0x00 TTL=20 ID=3 PROTO=UDP SPT=2071 DPT=69 LEN=58 
[101290.001452] Unknown InputIN=eth0 OUT= MAC=00:0b:cd:05:a9:c0:00:08:0d:b5:dc:xx:xx:xx SRC=192.168.10.xx DST=192.168.10.xx LEN=78 TOS=0x00 PREC=0x00 TTL=20 ID=4 PROTO=UDP SPT=2072 DPT=69 LEN=58 
[101295.987430] Unknown InputIN=eth0 OUT= MAC=00:0b:cd:05:a9:c0:00:08:0d:b5:dc:xx:xx:xx SRC=192.168.10.xx DST=192.168.10.xx LEN=78 TOS=0x00 PREC=0x00 TTL=20 ID=5 PROTO=UDP SPT=2073 DPT=69 LEN=58 


The following is displayed on the laptop after failure.

PXE-E32: TFTP open timeout
PXE-E32: TFTP open timeout
PXE-E32: TFTP open timeout
PXE-M0F: Exiting Intel Boot Agent.

I downloaded the gutsy netboot package and extracted it into the folder /var/lib/tftpboot/test. iptables has been configured to allow all connections to and from the laptop on the local connection.

Am I missing something? What am I doing wrong? Thanks

 - Phil C



      

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-08-19 19:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-12  9:08 Network install fails at TFTP load on client pc Phil C
2008-08-12 22:47 ` Jim Carter
2008-08-18  0:18   ` Philip Cohen
2008-08-19 19:30     ` Jim Carter
  -- strict thread matches above, loose matches on Subject: below --
2008-08-13  0:15 Phil C
2008-08-13 15:41 ` Jim Carter
2008-08-08  3:35 Phil C

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox