I am using Centos 7.1.1503 (core) as a VM. The host OS is Windows 10. I created this VM so this is a fresh installation of CentOS. My laptop has a direct connection to the internet, without a proxy.
When I execute the command yum update all
I get with the error
Cannot find a valid baseurl for repo: base/7/x86_64
I went through various threads related to this error on Stackexchange.com and tried all the below suggestions:
executed
dhclient
.Edited
ifcfg-enp0s3
with information, as suggested in this questionUncommented the baseURL from the
/etc/yum.repos.d/CentOS-Base.repo
file
If I change the VirtualBox network settings to use "NAT", then I can see that yum is working without any issues. I can keep this setting, but I will not be able to access CentOS from my host OS, which is why I had used "Bridge" networking. When I use "Bridge" I am having this issue.