tal-zvon / RAM_booster

http://ubuntuforums.org/showthread.php?t=1594694
36 stars 14 forks source link

Missing Ethernet Adapter #2

Closed cjbarker closed 10 years ago

cjbarker commented 10 years ago

Some versions Ubuntu and cloned images running on VirtualBox will result it unrecognized ethernet adapter due to mismatch MAC Addresses.

For more details see: http://www.serenux.com/2009/11/howto-fix-a-missing-eth0-adapter-after-moving-ubuntu-server-from-one-box-to-another/

and

http://chris.dziemborowicz.com/blog/2010/07/25/fix-missing-eth0-when-cloning-ubuntu-vmware-virtual-machines/

tal-zvon commented 10 years ago

This is a very interesting problem, and while I haven't run into it in the past, I have no doubt that I will some time in the future, so thank you for the links.

Fortunately, this script is meant to be run on Ubuntu Desktop, and according to your links, "Unlike Ubuntu Desktop, you can’t simply change network cards willy nilly [on Ubuntu Server]". This basically says that the problem doesn't apply in our case. I've also seen no reports of this problem on any of the 21 pages of comments (at time of writing) on the Ubuntu Forums thread about this script.

I would think that no one would want to run their Ubuntu Server with this script since:

  1. No one would want to introduce the stability concerns of the script to a server
  2. No one cares if it takes them half a second longer to connect to some service on the server - the advantage the script provides is far less noticeable on a server (I would think)
  3. It was never designed with Ubuntu Server in mind, or tested on it

Am I wrong? Is anyone actually using this script with Ubuntu Server?

cjbarker commented 10 years ago

You're correct. It appears and only applies to the Ubuntu Server (haven't reproduced problem for desktop - only tested solution). I ran into the issue while making some minor changes to your script and applying it to fix it on the server.

Given that this is not your script's original intention feel free to ignore and close this. I thought I'd bring it to your attention. That said, if you do merge it - it does no harm to existing Desktop since the OS will simply re-write the network rules.

Thanks for the script. It's been quite handy.

tal-zvon commented 10 years ago

True - there is no harm in your code. I like how simple, and to the point it is. On the off chance that Ubuntu 13.10 or some other future version starts acting more like Ubuntu Server in this instance, at least I won't need to fix my script anymore - it will already expect the problem. I have also never collaborated on github with anyone before, so I thought it would be interesting to find out how that works (merging a pull request) :)

Thanks for the patch.

cjbarker commented 10 years ago

No problem. Thank you for making it simple for me to create a RAM image. Cheers!