Centos 7 on Hyper-V yum problem

Issues related to applications and software problems
Post Reply
hypercast
Posts: 7
Joined: 2015/02/21 18:51:00

Centos 7 on Hyper-V yum problem

Post by hypercast » 2015/02/21 23:15:47

Hello

I installed 6 VM centos 7 on hyperv.
All 6 vm cannot connect to yum repository.

After many troubleshooting I installed a VM on VMWare and yum works.
You know why?

The network and Dns are properly configured and works fine.

Thanks

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Centos 7 on Hyper-V yum problem

Post by avij » 2015/02/21 23:51:01

What is the exact error message? Can you ping mirrorlist.centos.org ? If not, then your network is not set up properly.

hypercast
Posts: 7
Joined: 2015/02/21 18:51:00

Re: Centos 6/7 yum problem

Post by hypercast » 2015/02/22 12:03:32

Yes of course,
my network connection is properly configured.

Now I tried to install a Centos 6 but the same error even on Vsphere production and not on my Workstation.
So, the problem is not on hyper-v only but vsphere too, so I corrected the Subject.

The output of the commands are the following.

Thanks

[root@localhost ~]# yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=6 ... nfra=stock: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Error: Cannot find a valid baseurl for repo: base
[root@localhost ~]# ping mirrorlist.centos.org
PING mirrorlist.centos.org (84.22.180.89) 56(84) bytes of data.
64 bytes from 89.180.22.84.as20860.net (84.22.180.89): icmp_seq=1 ttl=58 time=30.9 ms
64 bytes from 89.180.22.84.as20860.net (84.22.180.89): icmp_seq=2 ttl=58 time=31.6 ms
64 bytes from 89.180.22.84.as20860.net (84.22.180.89): icmp_seq=3 ttl=58 time=29.9 ms
^C
--- mirrorlist.centos.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2635ms
rtt min/avg/max/mdev = 29.960/30.850/31.607/0.693 ms
[root@localhost ~]# nslookup mirrorlist.centos.org
Server: 192.168.101.30
Address: 192.168.101.30#53

Non-authoritative answer:
Name: mirrorlist.centos.org
Address: 88.150.173.218
Name: mirrorlist.centos.org
Address: 108.61.16.227
Name: mirrorlist.centos.org
Address: 84.22.180.89

[root@localhost ~]#

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 on Hyper-V yum problem

Post by TrevorH » 2015/02/22 12:17:09

Try with --disableplugin=fastestmirror
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hypercast
Posts: 7
Joined: 2015/02/21 18:51:00

Re: Centos 7 on Hyper-V yum problem

Post by hypercast » 2015/02/22 13:49:50

Sorry, but the command is correct?

yum --disableplugin=fastestmirror nothing to do.

thanks


[root@localhost ~]# yum update --disableplugin=fastestmirror
Loaded plugins: security
Setting up Update Process
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... nfra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=6 ... nfra=stock: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@localhost ~]#

hypercast
Posts: 7
Joined: 2015/02/21 18:51:00

Re: Centos 7 on Hyper-V yum problem

Post by hypercast » 2015/02/23 08:35:45

Tried to disable IPV6.

Nothing to do.

hypercast
Posts: 7
Joined: 2015/02/21 18:51:00

Re: Centos 7 on Hyper-V yum problem

Post by hypercast » 2015/02/24 14:46:26

Any Ideas?

thanks

Mario :?:

hypercast
Posts: 7
Joined: 2015/02/21 18:51:00

Re: Centos 7 on Hyper-V yum problem

Post by hypercast » 2015/03/02 10:23:43

anyone can help me?

thanks

Mario

Post Reply