LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2015, 10:24 PM   #1
twork
LQ Newbie
 
Registered: Mar 2015
Posts: 20

Rep: Reputation: Disabled
Consistent network device naming in the VM world (or: shut up, udev)


There has to be something basic that I'm missing. This problem can't be as bad as I'm making it... other people do this...

I do a lot of work on virtual machine platforms. I also concentrate on configuration management. So, I'd really like to have it worked out so that I can deploy a new VM (cloned from a template, usually) without having to figure out what udev has decided to do with my network device names. "For system X, Configure eth1 thus; configure eth2 so; connect them accordingly."

Once upon a time I had it figured out how to get udev to just leave network devices alone. That pleased me deeply, but now I can't seem to find how I did that. I tried putting my devices in "90-local.rules", but that's a partial solution -- a cloned VM with new MAC's would need to update that.

Virtualbox is part of my problem here. For some reason, it isn't giving my VM the same MAC address across boot times. Each reboot looks like new virtual hardware. So I guess udev is doing as it's told, ignoring those MAC's (that aren't there anyway), but what I really want is to have ethN plugged into network N, ethQ plugged into network Q, and so on, like it was in olden times.

I've hunted around for a solution, but no luck. I must not be phrasing this the right way. For instance, I found:

http://www.linuxquestions.org/questi...rename-946670/

All the way at the bottom there's a solution to the problem, but it requires manual intervention. This shouldn't be that kind of a problem. It should Just Work. udev is a solution to a problem that I don't have.
 
Old 03-17-2015, 05:06 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I'm not sure what distro/version you're running but have a read of http://www.freedesktop.org/wiki/Soft...nterfaceNames/
There are several options at the bottom of the page that you can choose from to change the behaviour or disable it.
 
1 members found this post helpful.
Old 03-17-2015, 08:19 PM   #3
twork
LQ Newbie
 
Registered: Mar 2015
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thanks much! I did indeed fail to find that on my own, in spite of near misses.

To answer your question: I was wrestling with CentOS 6.8 when I posted, but I've had similar troubles with Debian, at least, and maybe one or two others. On Gentoo, I just get rid of udev altogether.

And just for the record, after I posted, the behavior changed again: reboot after reboot, MAC addresses didn't change. I don't know what determines the behavior other than VM cloning, which I hadn't done.
 
Old 03-17-2015, 09:26 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Sorry, I don't use VBox but I haven't seen mac-changing behaviour anywhere else other than during cloning which you would expect.
 
1 members found this post helpful.
  


Reply



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
Naming problem with udev zkab Debian 2 03-08-2012 03:25 AM
Consistent Network Device Naming in Fedora pedenski Linux - Newbie 2 03-05-2012 12:25 AM
LXer: Breaking a few eggs: Fedora 15 changes network device naming LXer Syndicated Linux News 0 01-25-2011 11:40 AM
Hotswap and udev persisten naming Thure Linux - Server 3 01-26-2009 06:41 AM
udev consistent across distributions? tlemons Linux - Software 1 10-23-2007 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:37 AM.

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
Open Source Consulting | Domain Registration