Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PXE Diskless Client w/ Two Interfaces [weirdness discussion]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
travlr
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 158
Location: USA

PostPosted: Sun Jun 16, 2013 10:22 am    Post subject: PXE Diskless Client w/ Two Interfaces [weirdness discussion] Reply with quote

############
# OVERVIEW #
############

Kernel getting confused by two ethernet interfaces when booting pxe diskless client via nfsroot.

edit.. kind of solved, but now i'm confused 8O ... see my post below.


##########
# DETAILS #
##########

  • DHCP, TFTP and kernel image transfer.. from server.. over lan.. works without any issue.
  • No loadable modules or initrd.. all drivers built into the kernel.
  • The client has two ethernet devices.. one facing the lan and one facing the wan (client is to be the iptables nat/snat router).
  • If I declare both device drivers in the kernel config, my kernel loading just stops.. due to lan facing device going down (presumably.. I notice from kernel messages that the wan facing device gets a dhcp address from my internet provider's server, and.. possibly.. does not continue to do so from my dhcp server for the lan facing device).
  • If I declare only the lan facing ethternet device driver in the kernel.. all is well with the booting process.. (successful virt shell prompt).
  • I am not yet aware of how to capture the kernel boot process log, but working on it at this moment (dmesg isn't activated until after a successful kernel loading).
  • I believe that I need to better specify the kernel command line parameters for an nfsroot kernel so that the lan facing iface is not killed in the process.



#####################
# RELEVANT CONFIGS #
#####################

pxelinux.cfg
Code:

default linux
label linux
    say booting gentoo linux over pxe...
    kernel /boreal/boot/vmlinuz
    append net.ifnames=0 ip=dhcp root=/dev/nfs loglevel=7 nfsroot=10.10.10.1:/pxe/boreal,nfsvers=3 nfsrootdebug rw


##########
# FINALLY #
##########

I rarely ask for help and stubbornly try to fix issues myself... I give in this time :D

Thank you all in the Gentoo community.. love this distro!

~Peter
_________________
ProDataLab.com -- A Focus On Efficiency


Last edited by travlr on Sun Jun 16, 2013 11:58 am; edited 4 times in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 16, 2013 10:37 am    Post subject: Reply with quote

http://stackoverflow.com/questions/11642330/linux-built-in-driver-load-order

I think it's worth a try.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
travlr
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 158
Location: USA

PostPosted: Sun Jun 16, 2013 11:49 am    Post subject: Reply with quote

##########
# UPDATE #
##########

Solved... well kind of, because now this is getting really weird.

  • I configured the wan facing device driver as the only loadable module for my kernel.
  • I did not list the module in /etc/conf.d/modules.
  • AND... I don't even have that interface mentioned in /etc/init.d/.
  • I expected to have to modprobe <device-driver-module-name>.
  • Funny enough, everything works now.. without even needing to modprobe the loadable module (the exception that my wan facing nameserver is incorrect in /etc/resolv.conf.. easy enough to fix).



###############
# AT THIS POINT #
###############

Several weird issues to hopefully discuss with you. Even though this works now, I'd like to know more about this peculiar situation. Hopefully we can shed some more light on it.


~Peter
_________________
ProDataLab.com -- A Focus On Efficiency
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 16, 2013 1:13 pm    Post subject: Reply with quote

AFAIK recent kernels load modules if matching hardware is found.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
travlr
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 158
Location: USA

PostPosted: Sun Jun 16, 2013 2:25 pm    Post subject: Reply with quote

Jaglover wrote:
AFAIK recent kernels load modules if matching hardware is found.

Hi Jaglover,

I did not know that.. very good. Do you happen to have any references handy for that? If not no problem I'll end up google searching it. Thanks for your input.. you're first post was very interesting.. i've bookmarked it for future deep kernel endevours.. 8)
_________________
ProDataLab.com -- A Focus On Efficiency
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum