Vagrant provision infrastructure

I think that m310 is totally different from m103 and m312, so solutions for those courses wouldn’t work here.
I am facing below errors while provisioning my infrastructure machine.

E:\university\m310>vagrant reload infrastructure
Must redirect to new repository for old Vagrant versions
==> infrastructure: Attempting graceful shutdown of VM…
==> infrastructure: Checking if box ‘centos/7’ is up to date…
==> infrastructure: A newer version of the box ‘centos/7’ is available! You curr
ently
==> infrastructure: have version ‘1804.02’. The latest is version ‘1809.01’. Run

==> infrastructure: vagrant box update to update.
==> infrastructure: Clearing any previously set forwarded ports…
==> infrastructure: Fixed port collision for 22 => 2222. Now on port 2200.
==> infrastructure: Clearing any previously set network interfaces…
==> infrastructure: Preparing network interfaces based on configuration…
infrastructure: Adapter 1: nat
infrastructure: Adapter 2: hostonly
==> infrastructure: Forwarding ports…
infrastructure: 22 (guest) => 2200 (host) (adapter 1)
==> infrastructure: Running ‘pre-boot’ VM customizations…
==> infrastructure: Booting VM…
==> infrastructure: Waiting for machine to boot. This may take a few minutes…
infrastructure: SSH address: 127.0.0.1:2200
infrastructure: SSH username: vagrant
infrastructure: SSH auth method: private key
==> infrastructure: Machine booted and ready!
[infrastructure] No installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

One of the configured repositories failed (CentOS-7 - Updates),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.


 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=updates ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable updates
    or
        subscription-manager repos --disable=updates

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=updates.skip_if_unavailable=true

failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
http://centos.excellmedia.net/7.5.1804/updates/x86_64/repodata/repomd.xml: [Errn
o 14] HTTP Error 401 - Unauthorized
http://centos.mirror.snu.edu.in/centos/7.5.1804/updates/x86_64/repodata/repomd.x
ml: [Errno 14] HTTP Error 401 - Unauthorized
http://centos.mirror.net.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 401 - Unauthorized
http://mirrors.estointernet.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xm
l: [Errno 14] HTTP Error 401 - Unauthorized
http://mirror.vbctv.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [Errn
o 14] HTTP Error 401 - Unauthorized
http://centos.myfahim.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [E
rrno 14] HTTP Error 401 - Unauthorized
http://mirror.dhakacom.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [
Errno 14] HTTP Error 401 - Unauthorized
http://del-repos.extreme-ix.org/centos/7.5.1804/updates/x86_64/repodata/repomd.x
ml: [Errno 14] HTTP Error 401 - Unauthorized
http://mirror.xeonbd.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [Er
rno 14] HTTP Error 401 - Unauthorized
http://mirrors.fibergrid.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 401 - Unauthorized
==> infrastructure: Checking for guest additions in VM…
infrastructure: No guest additions were detected on the base box for this VM
! Guest
infrastructure: additions are required for forwarded ports, shared folders,
host only
infrastructure: networking, and more. If SSH fails on this machine, please i
nstall
infrastructure: the guest additions and repackage the box to continue.
infrastructure:
infrastructure: This is not an error message; everything may continue to wor
k properly,
infrastructure: in which case you may ignore this message.
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

yum install -y kernel-devel kernel-devel-uname -r gcc binutils make perl bzip2

Stdout from the command:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

Stderr from the command:

http://centos.excellmedia.net/7.5.1804/extras/x86_64/repodata/repomd.xml: [Errno
14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.5.1804/extras/x86_64/repodata/repomd.xm
l: [Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://centos.mirror.net.in/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: [
Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirrors.estointernet.in/centos/7.5.1804/extras/x86_64/repodata/repomd.xml
: [Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirror.vbctv.in/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: [Errno
14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://centos.myfahim.com/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: [Er
rno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirror.dhakacom.com/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: [E
rrno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://del-repos.extreme-ix.org/centos/7.5.1804/extras/x86_64/repodata/repomd.xm
l: [Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirror.xeonbd.com/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: [Err
no 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirrors.fibergrid.in/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: [
Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://centos.excellmedia.net/7.5.1804/updates/x86_64/repodata/repomd.xml: [Errn
o 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://centos.mirror.snu.edu.in/centos/7.5.1804/updates/x86_64/repodata/repomd.x
ml: [Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://centos.mirror.net.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirrors.estointernet.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xm
l: [Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirror.vbctv.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [Errn
o 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://centos.myfahim.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [E
rrno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirror.dhakacom.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [
Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://del-repos.extreme-ix.org/centos/7.5.1804/updates/x86_64/repodata/repomd.x
ml: [Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirror.xeonbd.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [Er
rno 14] HTTP Error 401 - Unauthorized
Trying other mirror.
http://mirrors.fibergrid.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 401 - Unauthorized
Trying other mirror.

One of the configured repositories failed (CentOS-7 - Updates),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.


 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=updates ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable updates
    or
        subscription-manager repos --disable=updates

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=updates.skip_if_unavailable=true

failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
http://centos.excellmedia.net/7.5.1804/updates/x86_64/repodata/repomd.xml: [Errn
o 14] HTTP Error 401 - Unauthorized
http://centos.mirror.snu.edu.in/centos/7.5.1804/updates/x86_64/repodata/repomd.x
ml: [Errno 14] HTTP Error 401 - Unauthorized
http://centos.mirror.net.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 401 - Unauthorized
http://mirrors.estointernet.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xm
l: [Errno 14] HTTP Error 401 - Unauthorized
http://mirror.vbctv.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [Errn
o 14] HTTP Error 401 - Unauthorized
http://centos.myfahim.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [E
rrno 14] HTTP Error 401 - Unauthorized
http://mirror.dhakacom.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [
Errno 14] HTTP Error 401 - Unauthorized
http://del-repos.extreme-ix.org/centos/7.5.1804/updates/x86_64/repodata/repomd.x
ml: [Errno 14] HTTP Error 401 - Unauthorized
http://mirror.xeonbd.com/centos/7.5.1804/updates/x86_64/repodata/repomd.xml: [Er
rno 14] HTTP Error 401 - Unauthorized
http://mirrors.fibergrid.in/centos/7.5.1804/updates/x86_64/repodata/repomd.xml:
[Errno 14] HTTP Error 401 - Unauthorized

Hi Lnderjeet_85450,

Could be caused by some network glitch when downloading the libraries and/or vagrant box. I would probably try to clear everything and start over.

vagrant destroy infrastructure
vagrant remove box centos
vagrant up infrastructure

Hope this helps,

David

Thanks for your reply, but no luck.
vagrant up infrastructure failed with same error.