LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-16-2016, 12:37 AM   #1
scriptkiddy
LQ Newbie
 
Registered: Feb 2016
Posts: 18

Rep: Reputation: Disabled
Question How to setup networking CentOS / RHEL 7


Quick facts:

1.) My host is a Win 7 machine.

2.) I installed Vbox 5.0.4

3.) I downloaded CentOS 7 and installed it as one of the VMs

4.) I'm now stuck trying to get the first VM's network adapter to initialize, but it errors


Goal: I'm trying to setup two VM's with CentOS (since RHEl isn't free) so I can practice for the RHCSA exam (EX200)


My issue for networking, I started with the Red Hat 7 Networking Guide link here:
https://access.redhat.com/documentat...working_Guide/

I also read through the VirtualBox instructions through vbox and NAT appears to be the way I need to go., but adapter errors on starting the network service. I would also love to share those errors by copy / pasting the logs but I can't seem to get the VM to mount a Win 7 folder I setup as a share in vbox to the VM... Anyway, the output of

Code:
tail -f /var/log/messages
has roughly 30 messages that I hope will clue someone in to the issue. One of the last entries for the interface (enp0s3) is

Code:
Feb 15 03:12:20 localhost network: Bringing up interface enp0s3: Error: Connection activation failed
I'd like to start with this interface / network issue, ideas?

SK
 
Old 02-16-2016, 01:39 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Goal: I'm trying to setup two VM's with CentOS (since RHEl isn't free) so I can practice for the RHCSA exam (EX200)
a bit of advice
if you are planing on taking redhat's exam

BUY the redhat operating system
( well the support ! - there is a $49/year DESKTOP self support)

Did you set up a bridge for the VM's network ?
you might want to reread the VM's documentation again
 
1 members found this post helpful.
Old 02-16-2016, 02:16 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
How is your virtual network adapter configured?

NAT is probably not the way to go. Look at host only
http://www.virtualbox.org/manual/ch06.html

Last edited by michaelk; 02-16-2016 at 02:27 PM.
 
1 members found this post helpful.
Old 02-17-2016, 12:00 AM   #4
scriptkiddy
LQ Newbie
 
Registered: Feb 2016
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thumbs up

Thanks John VV and michaelk, here is the update.

The reading of the Vbox manual seems to indicate that I needed a bridged adapter configured in the Vbox settings for both VMs. The bridge (per the manual) seemed to be the one that would allow outside connections than the other configuration options. The Host only also indicated that it was possible if "an additional bridged network" was setup, but I was not sure how to do that.

So when I set them both up as host only, both VM's came up with IPs under 192.168.56.x/24. They could ping each other and ssh to each other, but not the outside world. But when I set both VM's to use the bridge adapter and a simple ping to each other and google works with no problem as well as ssh to each other. They also came up on the same subnet from my router (192.168.1.x/24).


Interesting results. Thanks for pointing me back to Vbox, I was focused only on /var/log/messages and did not consider the VM environment, many thanks.

SK

Last edited by scriptkiddy; 02-17-2016 at 12:01 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
LXer: Setup Directory Server(LDAP) in CentOS 6.4 / RHEL 6.4 LXer Syndicated Linux News 0 03-20-2013 03:20 AM
[SOLVED] Centos 6 and KVM - how to setup bridged networking in KVM in a -Class B- environment? rylan76 Linux - Virtualization and Cloud 7 11-07-2012 06:46 AM
Unable to setup a NIS server setup on CentOS system swatidas11 Linux - Server 3 01-19-2010 07:01 PM
LXer: How To Setup OpenVZ Virtualization under RHEL / CentOS Linux LXer Syndicated Linux News 0 08-07-2009 01:41 PM
printer setup from Centos 5 to Vista home prem. on a headless centos pc ncsuapex Red Hat 6 03-10-2008 11:40 AM

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

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