LinuxMCE Forums
May 20, 2013, 01:10:12 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1] 2 3 4
  Print  
Author Topic: Diskless MDs not PXE booting  (Read 3255 times)
m3freak
Veteran
***
Posts: 125


View Profile
« on: July 25, 2011, 12:13:21 am »

I've installed LinuxMCE on a 2-nic server with the snapshot image LinuxMCE-8.10-24098-i386.iso.  The instructions on the 8.10 install page are missing steps, so it was a bit of a challenge because I'm not used to Ubuntu (I'm a Red Hat guy).  In the end, I got the core updated.  I also ran the script for creating the diskless boot image. It seemed to complete without any issue.

When I try to PXE boot a Jetway Ecomini, it never gets an IP and eventually the PXE boot fails.  After many failed attempts, I tried another random PC (HP laptop) - PXE boot on it failed, too.  I reviewed the logs on the core, and saw this:

Jul 24 17:51:03 core dhcpd: DHCPDISCOVER from 00:30:18:ae:b5:56 via eth0
Jul 24 17:51:03 core dhcpd: DHCPOFFER on 192.168.80.129 to 00:30:18:ae:b5:56 via eth0

The DHCPREQUEST and DHCPACK are never logged.  Oh, the above log is for the Ecomini.

I don't understand why the device attempting the PXE boot doesn't follow through with the DHCPREQUEST.

It's very likely I've missed something.  Would someone please point out what that something is?
Logged
tkmedia
wants to work for LinuxMCE
**
Posts: 936


View Profile WWW
« Reply #1 on: July 25, 2011, 04:43:21 am »

Did you run /usr/pluto/bin/Diskless_CreateTBZ.sh  to create the initial images.

if not please do so.

HTH

Tim

Logged

My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/
m3freak
Veteran
***
Posts: 125


View Profile
« Reply #2 on: July 25, 2011, 01:32:32 pm »

Did you run /usr/pluto/bin/Diskless_CreateTBZ.sh  to create the initial images.

Yes, of course I did.  I even said so in my post!

I have also run the script a few times, but the result is the same - no device will PXE boot.
« Last Edit: July 25, 2011, 01:34:49 pm by m3freak » Logged
purps
NEEDS to work for LinuxMCE
***
Posts: 1269


If it ain't broke, tweak it


View Profile
« Reply #3 on: July 25, 2011, 01:51:41 pm »

Knackered switch? And check your cables.
Logged

1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps
my blog :: http://projectsofmatt.wordpress.com/
RayBe
Guru
****
Posts: 264



View Profile
« Reply #4 on: July 25, 2011, 02:13:54 pm »

hi m3freak,

Below are a few URL's on how-to setup your Lmce network,
i would suggest to check your setup with whats described in the URL's,
your PXE-boot devices must be on the internal part of your setup.

http://wiki.linuxmce.org/index.php/Network_Settings
http://wiki.linuxmce.org/index.php/Network_Setup
http://wiki.linuxmce.org/index.php/File:Diagram1.jpg

br,
Raymond
Logged

When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.
coley
Guru
****
Posts: 430


View Profile
« Reply #5 on: July 25, 2011, 05:05:46 pm »

m3freak,
Your logs are showing that your internal network is on eth0.
The external n/w should normally be on eth0 and internal on eth1.
If you swap your n/w cables and click "Swap interfaces" on the Network Admin page this should swap over eth0 and eth1 interfaces.

Try pxe-booting your machines again.

-Coley.
Logged

m3freak
Veteran
***
Posts: 125


View Profile
« Reply #6 on: July 25, 2011, 08:19:28 pm »

m3freak,
Your logs are showing that your internal network is on eth0.
The external n/w should normally be on eth0 and internal on eth1.
If you swap your n/w cables and click "Swap interfaces" on the Network Admin page this should swap over eth0 and eth1 interfaces.

Try pxe-booting your machines again.

No way.  I'm going to cry if this really is the case.  Why would LinuxMCE care?

FYI: I put the internal on eth0 because eth0 is the on board Gb NIC.  eth1 is an Intel PRO1000 PCI card.  I figured the on-board NIC would have better performance.

I'll try the swap tonight and report back.
Logged
klovell
Guru
****
Posts: 205


View Profile
« Reply #7 on: July 25, 2011, 09:24:00 pm »

m3freak,
Your logs are showing that your internal network is on eth0.
The external n/w should normally be on eth0 and internal on eth1.
If you swap your n/w cables and click "Swap interfaces" on the Network Admin page this should swap over eth0 and eth1 interfaces.

Try pxe-booting your machines again.

-Coley.

I'm not arguing these instructions, but if he swaps the cables and click on thw swap interface button wouldn't that put him back in the same position... Like a double negative? I thought the swap interfaces button was there so you wouldn't have to physically swap the cables.  I thought it swapped eth0 and eth1 in the config. 

Correct me if i'm wrong.
Logged
bongowongo
wants to work for LinuxMCE
**
Posts: 826



View Profile
« Reply #8 on: July 25, 2011, 09:25:15 pm »

Correct.

Or swap cables

Or swap interfaces

Or do Both, 1,5 times.
Logged
klovell
Guru
****
Posts: 205


View Profile
« Reply #9 on: July 25, 2011, 09:33:48 pm »

No way.  I'm going to cry if this really is the case.  Why would LinuxMCE care?

FYI: I put the internal on eth0 because eth0 is the on board Gb NIC.  eth1 is an Intel PRO1000 PCI card.  I figured the on-board NIC would have better performance.

I'll try the swap tonight and report back.

By default LMCE doesn't offer ip addresses to the external interface, therefore you can not pxe boot off of the external interface.  It doesn't care which interface is internal or external.  I had the same logic when I setup my core.  Both nic's are gb nics but I just figured the on-board nic would yield higher performance. 
Logged
bongowongo
wants to work for LinuxMCE
**
Posts: 826



View Profile
« Reply #10 on: July 25, 2011, 09:37:33 pm »

Usually dedicated NIC has more speed, and doesn't lean on processor.
That could have changed, but in the olden days that was the case.
Logged
coley
Guru
****
Posts: 430


View Profile
« Reply #11 on: July 25, 2011, 10:23:42 pm »

yep, thx for the correction.
don't know why the system is giving out ip addresses on eth0.

-Coley.
Logged

purps
NEEDS to work for LinuxMCE
***
Posts: 1269


If it ain't broke, tweak it


View Profile
« Reply #12 on: July 25, 2011, 11:21:59 pm »

I always put eth0 on external and eth1 on internal because "that is what you are supposed to do", but I've had past installs working with no problems that were the other way round.

If you want to change which card is eth0 and which card eth1, you have to do it in /etc/udev/rules.d/70-persistent-net.rules

Cheers,
Matt.
Logged

1004 RC :: looking good :: upgraded 01/04/2013
my setup :: http://wiki.linuxmce.org/index.php/User:Purps
my blog :: http://projectsofmatt.wordpress.com/
ardirtbiker
Guru
****
Posts: 217



View Profile
« Reply #13 on: July 26, 2011, 12:44:26 am »

ditto what Matt (purps) said!

Dennis
Logged
m3freak
Veteran
***
Posts: 125


View Profile
« Reply #14 on: July 27, 2011, 01:40:40 pm »

So this is what I did:

1. took the udev approach and made the add-in nic eth0, and the onboard nic eth1.  PXE boot still fails.
2. I reinstalled LinuxMCE.  PXE boot still fails.
3. I changed cables.  PXE boot still fails.
4. I change the switch.  PXE boot still fails.
5. I plugged the Ecomini directly into eth1 on the core. PXE boot still fails.
6. I plugged in a lexmark printer, a random PC, and a HP laptop.  PXE boot or just plain IP assignment via DHCP fails on all of them.
7. I checked iptables - no rules, at all.

I ran tshark on eth1 to see what's happening on the wire (I had a feeling the DHCPOFFER wasn't getting out).  When I PXE boot anything, tshark shows the DHCPDISCOVER.  /var/log/daemon then shows DHCPOFFER, but tshark NEVER sees it.  That is, even though the core shows a DHCPOFFER being sent, tshark reveals the DHCPOFFER never actually reaches eth1. This explains why I wasn't seeing a DHCPREQUEST before: the PXE client isn't getting the DHCPOFFER, so it can't send a DHCPREQUEST!

Something is preventing DHCP from working correctly. I don't think it's the hardware: both nics exhibit the same behaviour.  No matter how many times I install LinuxMCE, I see the same problem.

I don't know LinuxMCE well enough to troubleshoot this.  Does anyone know what's going on?
« Last Edit: July 27, 2011, 03:14:52 pm by m3freak » Logged
Pages: [1] 2 3 4
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!