LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2010, 04:53 PM   #1
mrholepunch
LQ Newbie
 
Registered: Jan 2006
Location: Orlando, FL
Distribution: Fedora/CentOS/Ubuntu
Posts: 5

Rep: Reputation: 0
Question CentOS 5.4: System migration issue with network card


Hello everyone!

I hope I'm posting this in the correct forum. I recently created an image of my CentOS 5.4 install and migrated it from one machine to another. I plan on using this image for more than one machine, but have been having problems with the network driver on boot. I get the error:

"e1000e device eth0 does not seem to be present..."

I know the reason why this is happening. Modprobe.conf has the line "alias eth0 e1000e" which is the module for the network card in the original machine. I was wondering if there is a way with using udev or something else to have the correct network module auto loaded at boot and assigned to eth0. Any information on this would be greatly appreciated.

::edit::

I know it would be simple to just add the correct module to the modprobe.conf file, but it would make my life a lot easier to just have it detect the new network card on boot properly because of the project I am working on. Thanks!

Last edited by mrholepunch; 02-19-2010 at 05:10 PM. Reason: More Information
 
Old 02-19-2010, 05:36 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Can you just enable kudzu ? ..
 
Old 02-19-2010, 05:48 PM   #3
mrholepunch
LQ Newbie
 
Registered: Jan 2006
Location: Orlando, FL
Distribution: Fedora/CentOS/Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Is this something that can run before the network INIT scripts? I need the networking to work as it normally would on boot.

::edit::

Now that I think about it, doesn't Fedora somehow do this on boot anyway? My modprobe.conf file on my fedora box is empty, yet the driver is getting mapped correctly to eth0. Udev?

Last edited by mrholepunch; 02-19-2010 at 05:50 PM. Reason: More info
 
Old 02-20-2010, 01:27 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
If kudzu is enabled it will prompt you to reconfigure during boot if it finds new or missing hardware, and yes, it does this prior to bringing up the network

cheers
 
Old 02-20-2010, 02:11 PM   #5
mrholepunch
LQ Newbie
 
Registered: Jan 2006
Location: Orlando, FL
Distribution: Fedora/CentOS/Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Kudzu is in fact enabled, and is in the init scripts. I'm not getting anything on boot asking to reconfigure.
 
Old 02-21-2010, 05:23 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Try running it manually... it should prompt you to remove the configuration for the missing nic and ask you if you want to configure the new nic
 
Old 02-22-2010, 10:13 AM   #7
mrholepunch
LQ Newbie
 
Registered: Jan 2006
Location: Orlando, FL
Distribution: Fedora/CentOS/Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Basically, for this project to work correctly I need the NIC to be configured at boot. When the system comes up, it will run some pre-defined tasks over the network. Kudzu is running on boot, but does not change anything in modprode.conf. It's still giving the error "e1000e device eth0 does not seem to be present..." which is the wrong module for the network card, thus kudzu is changing nothing. Any ideas as to why this isn't happening correctly on boot? also, my kudzu config file only has the option "SAFE=no" in it.
 
Old 02-22-2010, 09:14 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Found a tidbit that may be relevant -

Quote:
kudzu no longer modifies network configurations on device change if the device's
HWADDR is not specified
.. can you please confirm whether you have a 'HWADDR' line in your network config ?

cheers
 
Old 02-23-2010, 05:57 PM   #9
mrholepunch
LQ Newbie
 
Registered: Jan 2006
Location: Orlando, FL
Distribution: Fedora/CentOS/Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
I just checked and the "network.hwaddr" line is present in /etc/sysconfig/hwconf. Still no dice. Kudzu is refusing to load the correct module. I tried manually editing modprobe.conf and adding "alias eth0 forcedeth" and the new system works perfectly. Problem is still that all the network cards are not going to be the same and I need it to detect at boot. Any other ideas? I'm stumped on this one.
 
Old 02-23-2010, 11:08 PM   #10
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
You might have to try one of the alternatives to kudzu -
http://wiki.linuxquestions.org/wiki/..._configuration

cheers
 
  


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
Network card inactive on boot - centos 4.6 exactiv Linux - Hardware 2 09-03-2010 02:31 PM
network card not picked when installing centos 5 hardley Linux - Newbie 3 04-11-2008 08:23 AM
LXer: Network Card Bonding On CentOS LXer Syndicated Linux News 0 07-06-2007 11:01 AM
network card issue (the card itself no network problem) Youri Linux - Hardware 2 01-23-2006 09:58 AM


All times are GMT -5. The time now is 02:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration