INFO: I am using Windows 7 Pro (64bit) with VMware Workstation version 10.0.1 . I am using CentOS(64bit) 6.5 minimal, for the first time. I am running this from my workplace network, which may use a proxy server.
Background: I have been following this tutorial (http://1stopit.blogspot.com/2013/11/creating-centos-64-minimal-vm-with.html)
As recommended in the tutorial, I configured the VM to used bridged networking, rather than NAT (which is the default).
At first, when trying to run
yum update I received a PYCURL ERROR 6, it looked like this:
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile could not retreive mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" Error: Cannot find a valid baseurl for repo: base
Then I tried to run
ping mirrorlist.centos.org, which resulted in
ping:unknown host mirrorlist.centos.org
Then I tried:
ifdown eth0 then
ifup eth0, which yielded:
Determining IP information for eth0... failed.
This below is the current contents of my file at
DEVICE=eth0 HWADDR=xx:xx:xx:xx:xx:xx TYPE=Ethernet UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ONBOOT=yes NM_CONTROLLED=no BOOTPROTO=dhcp
(I didn't know if I should be showing my HWADDR and UUID, so I left it anonymous)
Since I am trying to run this from my workplace(which may use a proxy server), I thought I would try the recommendations here http://unix.stackexchange.com/a/93428/60724, and edit
/etc/yum.conf, I added
proxy=http://xxx.xxx.xx.xx:8080, here is the full file of yum.conf:
[main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php? project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum distroverpkg=centos-release proxy=http://xxx.xxx.xx.xx:8080 #comments #metadata_expire=90
Then after that when I tried to run
yum update, I started to receive PYCURL Error 5, rather than PYCURL Error 6, see this:
running yum update results in: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile 4&repo=os error was 14: PYCURL ERROR 5 - "Couldn't resolve proxy 'xxx.xxx.xx.xx'" Error: Cannot find a valid baseurl for repo:base