LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-25-2010, 05:58 AM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
No network on VirtualBox, udev problem?


Udev renames eth0 to eth2. I'm hypothesizing that this is what is stopping internet connections. Is there a way to stop udev from doing this? Debian Lenny 5 i386 (32 bit).

[Background: Using a Debian Lenny 5 i386 (32 bit) guest in virtual box, the software computer. The host is Lenny 5 amd64.

Got some trouble and after fix the guest would not get internet - use it because flash player does not support amd64. Discovered udev was renaming eth0 to eth2; replaced 'eth0' with 'eth2' in /etc/network/interfaces and eth2 came up - eth0 would not come up. But internet will still not work.

So anyone work this out?? Great thanks.]
 
Old 07-25-2010, 07:20 AM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Run 'dhclient' as root in the Guest and you should have internet again. The interface name change is because the MAC address changed. Linux creates a new interface name when it detects an interface with a different MAC address. You can change this by editing or removing /etc/udev/rules.d/70-persistent-net.rules and reboot.
 
Old 07-25-2010, 05:20 PM   #3
chas
LQ Newbie
 
Registered: Aug 2000
Location: New York and Texas
Distribution: Debian sid
Posts: 20

Rep: Reputation: 0
I've had a problem doing a successful dist-upgrade on a sid system after isc-dhcp-common and client where installed as NEW packages and dhcp3-common and client were upgraded.(at the same time)

I'm wondering if the file you've mentioned is causing the problem. I'll just remove it I think, /etc/udev/rules.d/70-persistent-net.rules and try the dist-upgrade again. There isn't a lot of documentation regarding the isc-dhcp common and client packages. From /usr/share/doc/dhcp3-client/README.Debian there's this:

PLEASE NOTE: Upon upgrading dhcp3-client, dhclient is NOT restarted. Therefore,
after upgrading, the version of dhclient running will still be from the
previous version of dhcp3-client that was installed.

But there's nothing about how to restart the upgraded client, no script to edit in /etc/default for instance, which would have been thoughtful.

There's a README in /usr/share/doc/dhcp3-common a brief HOWTO as it were, but it doesn't seem to address where one starts off regarding apt's installation. There is no 'subdirectory' to cd to as it were. I mean we're installing .debs here, not having to compile or run ./ after downloading etc.

I'll try removing the file you mentioned, (/etc/udev/rules.d/70-persistent-net.rules) and see if that changes everything. If so, then your letter has helped me a lot and for that, thanks. If not I'll be back.

--
C
 
  


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
Virtualbox on slackware 13 - where is the network ? adrian2009 Slackware 3 03-20-2010 05:47 PM
VirtualBox Bridged Network help bourne Linux - Software 4 07-21-2009 04:06 PM
[SOLVED] weird network problem of slackware in virtualbox zyli2006 Slackware 2 06-29-2009 06:57 AM
Fedora network problem in SUN VirtualBox fedora-user Linux - Networking 8 01-28-2009 04:07 PM
VirtualBox network bridge - tunctl problem astrogeek Slackware 26 12-20-2008 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:30 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
Open Source Consulting | Domain Registration