LinuxQuestions.org
Help answer threads with 0 replies.
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 01-25-2017, 03:11 PM   #1
linuxmantra
Member
 
Registered: Dec 2013
Posts: 113

Rep: Reputation: Disabled
Network interface is not coming up in virtual box


I am using Oracle VM virutal box. I created VM with CentOS6.4 and RHEL 6.4 on my laptop running window 7. Problem here is, I network interface is not coming up. I did what ever I have to do to make the interface up, but it is not coming up.
See the attached pictures.


Thanks
Attached Thumbnails
Click image for larger version

Name:	er1.PNG
Views:	25
Size:	8.0 KB
ID:	24054   Click image for larger version

Name:	error.PNG
Views:	23
Size:	8.3 KB
ID:	24055  
 
Old 01-25-2017, 04:40 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,423

Rep: Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998
This may help http://unix.stackexchange.com/questi...-in-virtualbox
 
Old 01-26-2017, 10:06 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,796
Blog Entries: 27

Rep: Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638
Quote:
I did what ever I have to do to make the interface up, but it is not coming up.
So what exactly did you do? Knowing what has been tried and hasn't worked is often helpful in figuring out what would work.

How are you networks for the VMs configured in the VirtualBox settings?

What is the output of

Code:
ip addr (or ipconfig -a)
in the VMs?

The more information you provide, the easier it is to help.
 
Old 01-26-2017, 11:41 PM   #4
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 987

Rep: Reputation: 260Reputation: 260Reputation: 260
Since you mention changing router recently to a dual band router. 5Ghz band does not have great range, great speed if your ISP is fast, but apparently famous for not reaching every room in the house. 2.4Ghz band has great range, and because a lot if ISPs (internet service providers) don't have the greatest speed during peek hours anyway, it can be just as fast as the 5Ghz.
Google "speed test" and try the link to "bandwidth place", wait till the page loads completely before running a test in both bands to see if it's worth using the 5ghz over the 2.4Ghz.
 
Old 01-29-2017, 12:33 PM   #5
linuxmantra
Member
 
Registered: Dec 2013
Posts: 113

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
So what exactly did you do? Knowing what has been tried and hasn't worked is often helpful in figuring out what would work.

How are you networks for the VMs configured in the VirtualBox settings?

What is the output of

Code:
ip addr (or ipconfig -a)
in the VMs?

The more information you provide, the easier it is to help.
FIRST: What I did to bring interface up. Here is what I did.
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=..
HWADDR=..
UUID=...
BOOTPROTO=dhcp
ONBOOT=yes
NM_CONTROLLED=no

- I even changed the MAC add and deleted the file # rm -rf /etc/udev/rules.d/70-persistent.net.rules and restated the system.
-Cleared the lease also and try to get new lease as # dhclient -r # dhclient -v eth0

Here is another thing, When I connect my laptop to Public Library wifi,my VM works fine, No network issues. I checked my router (brand name 'SAGEMCOM') to check whether any rules applied but there is nothing at all.
 
Old 01-29-2017, 12:36 PM   #6
linuxmantra
Member
 
Registered: Dec 2013
Posts: 113

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Brains View Post
Since you mention changing router recently to a dual band router. 5Ghz band does not have great range, great speed if your ISP is fast, but apparently famous for not reaching every room in the house. 2.4Ghz band has great range, and because a lot if ISPs (internet service providers) don't have the greatest speed during peek hours anyway, it can be just as fast as the 5Ghz.
Google "speed test" and try the link to "bandwidth place", wait till the page loads completely before running a test in both bands to see if it's worth using the 5ghz over the 2.4Ghz.
Well, it has nothing to do with my VM interface network. I have good connection every where in my room. Issue why VM network interface is failing in my home network while when I use Public Library wifi, everything works fine.
 
Old 01-29-2017, 09:27 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,796
Blog Entries: 27

Rep: Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638Reputation: 4638
Quote:
Well, it has nothing to do with my VM interface network. I have good connection every where in my room. Issue why VM network interface is failing in my home network while when I use Public Library wifi, everything works fine.
Just to clarify, when you are at home, does the host machine's internet connection work?

If so, there might be some firewall or port setting, perhaps in your router, that is causing issues. I've not run into any such problems with VB, but this document discusses VB port usage; scroll down to section 6.3.1.

You might also try the traceroute command in the VM at the library, save the results to a file, then do the same at home, and compare the results. Just to be thorough, I'd do it for the host machine as well as for the VM.

Code:
traceroute google.com > [somefile.txt]
will send a traceroute to google and save the output to [somefile.txt]. See man traceroute for more.

That would give you some hint as to where the connection is failing at home.

Last edited by frankbell; 01-29-2017 at 09:29 PM.
 
Old 01-30-2017, 12:45 AM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
In one of your posts eth0 is managed by Network-manager (NM), but in another reply it isn't. If it's managed by NM, then you should use network-manager to control it. It sounds like a problem with the DHCP server. It's not giving you an IP address.

I would let network-manager handle the interface in the VM and troubleshoot from there.
 
Old 01-30-2017, 03:43 AM   #9
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Did you change the VBox default from default NAT, where the guest gets 10.0.2.15?
In the library, what ['category' of] IP address does it get from the DHCP there?
My router [ISP] generally -refuses- to give my (XPhost) VBox clients an IP *when bridged*!

Something 'non-obvious until exposed' is likely going on here. since "it should work".

http://www.dedoimedo.com/computers/v...k-sharing.html

p.s. yes, per #3, more info is always useful, like the [library!]: ip a
 
Old 02-04-2017, 08:56 PM   #10
linuxmantra
Member
 
Registered: Dec 2013
Posts: 113

Original Poster
Rep: Reputation: Disabled
Finally, I solved this issues by changing the adaptor to Host-only.. phewwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
 
Old 02-04-2017, 09:14 PM   #11
linuxmantra
Member
 
Registered: Dec 2013
Posts: 113

Original Poster
Rep: Reputation: Disabled
Though I was able to get IP and ssh it via putty. but I can't ping google or download any rpm via internet.
Attached Thumbnails
Click image for larger version

Name:	tr.PNG
Views:	4
Size:	12.7 KB
ID:	24135  

Last edited by linuxmantra; 02-04-2017 at 09:15 PM.
 
Old 02-05-2017, 12:18 AM   #12
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
http://virtualbox.org/manual/ch06.html#network_hostonly
Quote:
the virtual machines cannot talk to the world outside the host
My 'trick' *with NAT*, is to add "Port Forwarding"
(for [unfortunately] each&every desired host->guest port)
so host 127.0.0.1 port# -> guest 10.0.2.15 port#
(IF >1 guest, I need to do ssh like: 221 -> 10.0.3.15 22)

Oh: PF is 'hiding'! On Adapter#, when NAT selected,
** click-down Advanced; click Port Forwarding **!!

OR, give guest TWO NICs: #1:NAT for Internet; #2:HostOnly to go host->guest

This is all because my ISP (/router) won't give out a DHCP for bridged.
'evil' SAGEMCOM?

Yes, "phewwwwwwww...": this all had me *lost for months* (at first)!

Last edited by Jjanel; 02-05-2017 at 12:48 AM.
 
  


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
[SOLVED] Question: Network interface not coming up appropriately haertig Linux - Software 4 04-02-2016 03:58 PM
Network stack accepting packets coming in on the wrong interface o2blom Linux - Networking 6 02-19-2016 06:37 PM
Virtual box VM bridging to centos eth interface question jzoudavy Linux - Newbie 2 07-15-2015 03:48 PM
network interface not coming up automatically at boot Kropotkin Linux - Networking 11 02-16-2010 06:15 PM
network interface not coming backup after reboot noir911 Linux - Server 2 02-11-2009 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:23 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