I just started using the VirtualBox, but I don't seem to have any internet on the CentOS when I type
yum update. Is there a solution to my problem? (it could possibly be a problem with misconfigured VirtualBox)
Here is an output of
Looks like your eth0 is not set up. Here is what I did to fix mine on CentOS 6.4.
This should return: NETWORKING=yes - If it does not, then change it to yes.
This should look like:
There are a few options that we want to change here, NM_CONTROLLED needs to be NO, ONBOOT needs to be YES, and finally add this code at the bottom:
This will allow you to grab an IP from your DHCP and essentially enable IPV4.
Now the whole file should look like this:
Save and close. Now, lets restart the network service to reload with these settings:
Notice the ‘eth0′ – awesome! Now lets check to see if we got an IPV4 from our DHCP:
You should now see 'eth0'.
You have no networking configured. you should have enabled it during install (its not obvious, I missed it too during my first minimal-install). Try:
This will get you started. Then try:
Which will give you a curses based network config program where you can set things permanently.
When you're installing CentOS, on the networking page, there is a button at the bottom left that allows you to configure the network settings. Click edit next to eth0 and find the checkbox to set the network to connect automatically.