CentOS / sig-cloud-instance-build

CentOS Cloud Instance SIG: Metadata to build & release instances
362 stars 168 forks source link

Could not resolve host errors during vagrant up on yum install #91

Open dhampik opened 7 years ago

dhampik commented 7 years ago

Environment: Windows 10 Home Edition VirtualBox 5.0.30 (also tested with 5.0.32) Vagrant 1.9.0 (also tested with 1.8.6)

Vagrant box: centos/7 v1611.01

Also tested with and without the following plugins: vagrant-vbguest (to install GuestAdditions) and vagrant-sshfs

During vagrant up I'm getting multiple Could not resolve host errors when yum install is performed. Basically it cannot resolve mirrors, but if I log in to the box after vagrant up, all hosts are resolvable.

With my custom provisioning shell scripts I was managed to resolve it by putting sleep 60 in the beginning of provisioning shell script (so it looks like some service is not working properly for the first few minutes after vagrant up), but I cannot do that for vagrant-vbguest or vagrant-sshfs and that causes failure.

It is always reproducible, but I was not able to find any info about similar issues.

Important thing to note, that there is no such issue with vagrant box centos/7 v1610.01 (previous version), but I cannot use it due to missing kernel headers which vagrant-vbguest plugin cannot install (that is a known issue, I guess)

lpancescu commented 7 years ago

Sorry for answering so late. I'm not sure what's happening in your case, and unfortunately I can't reproduce it on OS X:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos/7'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: centos-test_default_1490256022288_50455
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default:
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
==> default: Installing SSHFS client...
==> default: Mounting SSHFS shared folder...
==> default: Mounting folder via SSHFS: /Users/laur/projects/centos-test => /vagrant
==> default: Checking Mount..
==> default: Folder Successfully Mounted!

If it still happens on your side, could you please include calls to debug networking in your shell provisioning? Something like ip addr show, dig mirror.centos.org, perhaps some traceroute?

dhampik commented 7 years ago

I have update vagrant to 1.9.3 and centos/7 box to 1702.01 but still the same issue.

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'centos/7' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: =1702.01
==> default: Loading metadata for box 'centos/7'
    default: URL: https://atlas.hashicorp.com/centos/7
==> default: Adding box 'centos/7' (v1702.01) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/centos/boxes/7/versions/1702.01/providers/virtualbox.box
    default: Progress: 100% (Rate: 7505k/s, Estimated time remaining: --:--:--)
==> default: Successfully added box 'centos/7' (v1702.01) for 'virtualbox'!
==> default: Importing base box 'centos/7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'centos/7' is up to date...
==> default: Setting the name of the VM: centos-vm
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
[default] No installation found.
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: centos-mirror.rbc.ru
 * extras: centos-mirror.rbc.ru
 * updates: centos-mirror.rbc.ru
Package binutils-2.25.1-22.base.el7.x86_64 already installed and latest version
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-11.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-11.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-11.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-11.el7.x86_64
---> Package kernel-devel.x86_64 0:3.10.0-514.6.2.el7 will be installed
---> Package perl.x86_64 4:5.16.3-291.el7 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-291.el7 for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(File::Temp) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(File::Spec::Unix) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(File::Spec::Functions) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(File::Spec) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(File::Path) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Cwd) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-291.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-291.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-11.el7 will be installed
---> Package glibc-devel.x86_64 0:2.17-157.el7_3.1 will be installed
--> Processing Dependency: glibc-headers = 2.17-157.el7_3.1 for package: glibc-devel-2.17-157.el7_3.1.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-157.el7_3.1.x86_64
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-2.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-2.el7.noarch
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-291.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-291.el7 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-157.el7_3.1 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-157.el7_3.1.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-157.el7_3.1.x86_64
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-291.el7 will be installed
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
--> Running transaction check
---> Package kernel-headers.x86_64 0:3.10.0-514.10.2.el7 will be installed
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch      Version                   Repository  Size
================================================================================
Installing:
 gcc                       x86_64    4.8.5-11.el7              base        16 M
 kernel-devel              x86_64    3.10.0-514.6.2.el7        updates     13 M
 perl                      x86_64    4:5.16.3-291.el7          base       8.0 M
Installing for dependencies:
 cpp                       x86_64    4.8.5-11.el7              base       5.9 M
 glibc-devel               x86_64    2.17-157.el7_3.1          updates    1.1 M
 glibc-headers             x86_64    2.17-157.el7_3.1          updates    668 k
 kernel-headers            x86_64    3.10.0-514.10.2.el7       updates    4.8 M
 libmpc                    x86_64    1.0.1-3.el7               base        51 k
 mpfr                      x86_64    3.1.1-4.el7               base       203 k
 perl-Carp                 noarch    1.26-244.el7              base        19 k
 perl-Encode               x86_64    2.51-7.el7                base       1.5 M
 perl-Exporter             noarch    5.68-3.el7                base        28 k
 perl-File-Path            noarch    2.09-2.el7                base        26 k
 perl-File-Temp            noarch    0.23.01-3.el7             base        56 k
 perl-Filter               x86_64    1.49-3.el7                base        76 k
 perl-Getopt-Long          noarch    2.40-2.el7                base        56 k
 perl-HTTP-Tiny            noarch    0.033-3.el7               base        38 k
 perl-PathTools            x86_64    3.40-5.el7                base        82 k
 perl-Pod-Escapes          noarch    1:1.04-291.el7            base        51 k
 perl-Pod-Perldoc          noarch    3.20-4.el7                base        87 k
 perl-Pod-Simple           noarch    1:3.28-4.el7              base       216 k
 perl-Pod-Usage            noarch    1.63-3.el7                base        27 k
 perl-Scalar-List-Utils    x86_64    1.27-248.el7              base        36 k
 perl-Socket               x86_64    2.010-4.el7               base        49 k
 perl-Storable             x86_64    2.45-3.el7                base        77 k
 perl-Text-ParseWords      noarch    3.29-4.el7                base        14 k
 perl-Time-HiRes           x86_64    4:1.9725-3.el7            base        45 k
 perl-Time-Local           noarch    1.2300-2.el7              base        24 k
 perl-constant             noarch    1.27-2.el7                base        19 k
 perl-libs                 x86_64    4:5.16.3-291.el7          base       688 k
 perl-macros               x86_64    4:5.16.3-291.el7          base        43 k
 perl-parent               noarch    1:0.225-244.el7           base        12 k
 perl-podlators            noarch    2.5.1-3.el7               base       112 k
 perl-threads              x86_64    1.87-4.el7                base        49 k
 perl-threads-shared       x86_64    1.43-6.el7                base        39 k

Transaction Summary
================================================================================
Install  3 Packages (+32 Dependent packages)

Total download size: 53 M
Installed size: 130 M
Downloading packages:
http://mirror.yandex.ru/centos/7.3.1611/os/x86_64/Packages/cpp-4.8.5-11.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.yandex.ru; Unknown error"
Trying other mirror.
http://mirror.yandex.ru/centos/7.3.1611/updates/x86_64/Packages/glibc-devel-2.17-157.el7_3.1.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.yandex.ru; Unknown error"
Trying other mirror.
http://mirror.yandex.ru/centos/7.3.1611/os/x86_64/Packages/gcc-4.8.5-11.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.yandex.ru; Unknown error"
Trying other mirror.
http://mirror.yandex.ru/centos/7.3.1611/updates/x86_64/Packages/glibc-headers-2.17-157.el7_3.1.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.yandex.ru; Unknown error"
Trying other mirror.
http://mirror.yandex.ru/centos/7.3.1611/updates/x86_64/Packages/kernel-devel-3.10.0-514.6.2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.yandex.ru; Unknown error"
Trying other mirror.
http://centos-mirror.rbc.ru/pub/centos/7.3.1611/updates/x86_64/Packages/kernel-headers-3.10.0-514.10.2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: centos-mirror.rbc.ru; Unknown error"
Trying other mirror.
http://mirror.digitalhusky.com/centos/7.3.1611/os/x86_64/Packages/libmpc-1.0.1-3.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.digitalhusky.com; Unknown error"
Trying other mirror.
http://mirror.digitalhusky.com/centos/7.3.1611/os/x86_64/Packages/mpfr-3.1.1-4.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.digitalhusky.com; Unknown error"
Trying other mirror.
Public key for perl-Exporter-5.68-3.el7.noarch.rpm is not installed
warning: /var/cache/yum/x86_64/7/base/packages/perl-Exporter-5.68-3.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
http://mirror.corbina.net/pub/Linux/centos/7.3.1611/updates/x86_64/Packages/glibc-devel-2.17-157.el7_3.1.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.corbina.net; Unknown error"
Trying other mirror.
http://mirror.corbina.net/pub/Linux/centos/7.3.1611/updates/x86_64/Packages/glibc-headers-2.17-157.el7_3.1.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.corbina.net; Unknown error"
Trying other mirror.
Public key for glibc-devel-2.17-157.el7_3.1.x86_64.rpm is not installed
http://mirror.corbina.net/pub/Linux/centos/7.3.1611/updates/x86_64/Packages/kernel-devel-3.10.0-514.6.2.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.corbina.net; Unknown error"
Trying other mirror.
http://mirror.corbina.net/pub/Linux/centos/7.3.1611/os/x86_64/Packages/libmpc-1.0.1-3.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.corbina.net; Unknown error"
Trying other mirror.
http://mirror.corbina.net/pub/Linux/centos/7.3.1611/os/x86_64/Packages/mpfr-3.1.1-4.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.corbina.net; Unknown error"
Trying other mirror.
--------------------------------------------------------------------------------
Total                                              575 kB/s |  53 MB  01:34
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-3.1611.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mpfr-3.1.1-4.el7.x86_64                                     1/35
  Installing : libmpc-1.0.1-3.el7.x86_64                                   2/35
  Installing : cpp-4.8.5-11.el7.x86_64                                     3/35
  Installing : 1:perl-parent-0.225-244.el7.noarch                          4/35
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                           5/35
  Installing : perl-podlators-2.5.1-3.el7.noarch                           6/35
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                          7/35
  Installing : 1:perl-Pod-Escapes-1.04-291.el7.noarch                      8/35
  Installing : perl-Encode-2.51-7.el7.x86_64                               9/35
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                     10/35
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                           11/35
  Installing : perl-threads-1.87-4.el7.x86_64                             12/35
  Installing : perl-Storable-2.45-3.el7.x86_64                            13/35
  Installing : perl-Exporter-5.68-3.el7.noarch                            14/35
  Installing : perl-constant-1.27-2.el7.noarch                            15/35
  Installing : perl-Time-Local-1.2300-2.el7.noarch                        16/35
  Installing : perl-Socket-2.010-4.el7.x86_64                             17/35
  Installing : perl-Carp-1.26-244.el7.noarch                              18/35
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      19/35
  Installing : perl-threads-shared-1.43-6.el7.x86_64                      20/35
  Installing : perl-PathTools-3.40-5.el7.x86_64                           21/35
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 22/35
  Installing : 4:perl-libs-5.16.3-291.el7.x86_64                          23/35
  Installing : 4:perl-macros-5.16.3-291.el7.x86_64                        24/35
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                        25/35
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                        26/35
  Installing : perl-File-Path-2.09-2.el7.noarch                           27/35
  Installing : perl-Filter-1.49-3.el7.x86_64                              28/35
  Installing : perl-Getopt-Long-2.40-2.el7.noarch                         29/35
  Installing : 4:perl-5.16.3-291.el7.x86_64                               30/35
  Installing : kernel-headers-3.10.0-514.10.2.el7.x86_64                  31/35
  Installing : glibc-headers-2.17-157.el7_3.1.x86_64                      32/35
  Installing : glibc-devel-2.17-157.el7_3.1.x86_64                        33/35
  Installing : gcc-4.8.5-11.el7.x86_64                                    34/35
  Installing : kernel-devel-3.10.0-514.6.2.el7.x86_64                     35/35
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                           1/35
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                       2/35
  Verifying  : perl-Storable-2.45-3.el7.x86_64                             3/35
  Verifying  : perl-threads-1.87-4.el7.x86_64                              4/35
  Verifying  : perl-Exporter-5.68-3.el7.noarch                             5/35
  Verifying  : perl-constant-1.27-2.el7.noarch                             6/35
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                            7/35
  Verifying  : cpp-4.8.5-11.el7.x86_64                                     8/35
  Verifying  : kernel-devel-3.10.0-514.6.2.el7.x86_64                      9/35
  Verifying  : 1:perl-Pod-Escapes-1.04-291.el7.noarch                     10/35
  Verifying  : glibc-headers-2.17-157.el7_3.1.x86_64                      11/35
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                         12/35
  Verifying  : kernel-headers-3.10.0-514.10.2.el7.x86_64                  13/35
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                        14/35
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                        15/35
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                        16/35
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                         17/35
  Verifying  : perl-Socket-2.010-4.el7.x86_64                             18/35
  Verifying  : glibc-devel-2.17-157.el7_3.1.x86_64                        19/35
  Verifying  : perl-Carp-1.26-244.el7.noarch                              20/35
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      21/35
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 22/35
  Verifying  : libmpc-1.0.1-3.el7.x86_64                                  23/35
  Verifying  : 4:perl-libs-5.16.3-291.el7.x86_64                          24/35
  Verifying  : 4:perl-macros-5.16.3-291.el7.x86_64                        25/35
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                           26/35
  Verifying  : perl-Encode-2.51-7.el7.x86_64                              27/35
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                          28/35
  Verifying  : perl-Getopt-Long-2.40-2.el7.noarch                         29/35
  Verifying  : perl-File-Path-2.09-2.el7.noarch                           30/35
  Verifying  : 4:perl-5.16.3-291.el7.x86_64                               31/35
  Verifying  : mpfr-3.1.1-4.el7.x86_64                                    32/35
  Verifying  : perl-Filter-1.49-3.el7.x86_64                              33/35
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                     34/35
  Verifying  : gcc-4.8.5-11.el7.x86_64                                    35/35

Installed:
  gcc.x86_64 0:4.8.5-11.el7        kernel-devel.x86_64 0:3.10.0-514.6.2.el7
  perl.x86_64 4:5.16.3-291.el7

Dependency Installed:
  cpp.x86_64 0:4.8.5-11.el7
  glibc-devel.x86_64 0:2.17-157.el7_3.1
  glibc-headers.x86_64 0:2.17-157.el7_3.1
  kernel-headers.x86_64 0:3.10.0-514.10.2.el7
  libmpc.x86_64 0:1.0.1-3.el7
  mpfr.x86_64 0:3.1.1-4.el7
  perl-Carp.noarch 0:1.26-244.el7
  perl-Encode.x86_64 0:2.51-7.el7
  perl-Exporter.noarch 0:5.68-3.el7
  perl-File-Path.noarch 0:2.09-2.el7
  perl-File-Temp.noarch 0:0.23.01-3.el7
  perl-Filter.x86_64 0:1.49-3.el7
  perl-Getopt-Long.noarch 0:2.40-2.el7
  perl-HTTP-Tiny.noarch 0:0.033-3.el7
  perl-PathTools.x86_64 0:3.40-5.el7
  perl-Pod-Escapes.noarch 1:1.04-291.el7
  perl-Pod-Perldoc.noarch 0:3.20-4.el7
  perl-Pod-Simple.noarch 1:3.28-4.el7
  perl-Pod-Usage.noarch 0:1.63-3.el7
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7
  perl-Socket.x86_64 0:2.010-4.el7
  perl-Storable.x86_64 0:2.45-3.el7
  perl-Text-ParseWords.noarch 0:3.29-4.el7
  perl-Time-HiRes.x86_64 4:1.9725-3.el7
  perl-Time-Local.noarch 0:1.2300-2.el7
  perl-constant.noarch 0:1.27-2.el7
  perl-libs.x86_64 4:5.16.3-291.el7
  perl-macros.x86_64 4:5.16.3-291.el7
  perl-parent.noarch 1:0.225-244.el7
  perl-podlators.noarch 0:2.5.1-3.el7
  perl-threads.x86_64 0:1.87-4.el7
  perl-threads-shared.x86_64 0:1.43-6.el7

Complete!
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
mount: /dev/loop0 is write-protected, mounting read-only
Installing Virtualbox Guest Additions 5.0.32 - guest version is unknown
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.32 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[  OK  ]
Building the shared folder support module[  OK  ]
Building the graphics driver module[  OK  ]
Doing non-kernel setup of the Guest Additions[  OK  ]
Starting the VirtualBox Guest Additions Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
[  OK  ]

==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => D:/dhampik/projects/vm-project
==> default: Running provisioner: shell...
    default: Running: C:/Users/Kirill/AppData/Local/Temp/vagrant-shell20170325-11040-68zokt.sh
==> default: Loaded plugins: fastestmirror
==> default: Loading mirror speeds from cached hostfile
==> default:  * base: centos-mirror.rbc.ru
==> default:  * extras: centos-mirror.rbc.ru
==> default:  * updates: centos-mirror.rbc.ru
==> default: No package htop available.
==> default: Package 1:make-3.82-23.el7.x86_64 already installed and latest version
==> default: Resolving Dependencies
==> default: --> Running transaction check
==> default: ---> Package bind-utils.x86_64 32:9.9.4-38.el7_3.2 will be installed
==> default: --> Processing Dependency: bind-libs = 32:9.9.4-38.el7_3.2 for package: 32:bind-utils-9.9.4-38.el7_3.2.x86_64
==> default: --> Processing Dependency: liblwres.so.90()(64bit) for package: 32:bind-utils-9.9.4-38.el7_3.2.x86_64
==> default: --> Processing Dependency: libisccfg.so.90()(64bit) for package: 32:bind-utils-9.9.4-38.el7_3.2.x86_64
==> default: --> Processing Dependency: libisccc.so.90()(64bit) for package: 32:bind-utils-9.9.4-38.el7_3.2.x86_64
==> default: --> Processing Dependency: libisc.so.95()(64bit) for package: 32:bind-utils-9.9.4-38.el7_3.2.x86_64
==> default: --> Processing Dependency: libdns.so.100()(64bit) for package: 32:bind-utils-9.9.4-38.el7_3.2.x86_64
==> default: --> Processing Dependency: libbind9.so.90()(64bit) for package: 32:bind-utils-9.9.4-38.el7_3.2.x86_64
==> default: ---> Package gcc-c++.x86_64 0:4.8.5-11.el7 will be installed
==> default: --> Processing Dependency: libstdc++-devel = 4.8.5-11.el7 for package: gcc-c++-4.8.5-11.el7.x86_64
==> default: ---> Package krb5-workstation.x86_64 0:1.14.1-27.el7_3 will be installed
==> default: --> Processing Dependency: libkadm5(x86-64) = 1.14.1-27.el7_3 for package: krb5-workstation-1.14.1-27.el7_3.x86_64
==> default: --> Processing Dependency: libkadm5srv_mit.so.10(kadm5srv_mit_10_MIT)(64bit) for package: krb5-workstation-1.14.1-27.el7_3.x86_64
==> default: --> Processing Dependency: libkadm5clnt_mit.so.8(kadm5clnt_mit_8_MIT)(64bit) for package: krb5-workstation-1.14.1-27.el7_3.x86_64
==> default: --> Processing Dependency: libkadm5srv_mit.so.10()(64bit) for package: krb5-workstation-1.14.1-27.el7_3.x86_64
==> default: --> Processing Dependency: libkadm5clnt_mit.so.8()(64bit) for package: krb5-workstation-1.14.1-27.el7_3.x86_64
==> default: ---> Package mc.x86_64 1:4.8.7-11.el7 will be installed
==> default: --> Processing Dependency: libgpm.so.2()(64bit) for package: 1:mc-4.8.7-11.el7.x86_64
==> default: ---> Package nano.x86_64 0:2.3.1-10.el7 will be installed
==> default: ---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed
==> default: ---> Package vim-enhanced.x86_64 2:7.4.160-1.el7_3.1 will be installed
==> default: --> Processing Dependency: vim-common = 2:7.4.160-1.el7_3.1 for package: 2:vim-enhanced-7.4.160-1.el7_3.1.x86_64
==> default: ---> Package wget.x86_64 0:1.14-13.el7 will be installed
==> default: ---> Package zip.x86_64 0:3.0-11.el7 will be installed
==> default: --> Running transaction check
==> default: ---> Package bind-libs.x86_64 32:9.9.4-38.el7_3.2 will be installed
==> default: ---> Package gpm-libs.x86_64 0:1.20.7-5.el7 will be installed
==> default: ---> Package libkadm5.x86_64 0:1.14.1-27.el7_3 will be installed
==> default: ---> Package libstdc++-devel.x86_64 0:4.8.5-11.el7 will be installed
==> default: ---> Package vim-common.x86_64 2:7.4.160-1.el7_3.1 will be installed
==> default: --> Processing Dependency: vim-filesystem for package: 2:vim-common-7.4.160-1.el7_3.1.x86_64
==> default: --> Running transaction check
==> default: ---> Package vim-filesystem.x86_64 2:7.4.160-1.el7_3.1 will be installed
==> default: --> Finished Dependency Resolution
==> default:
==> default: Dependencies Resolved
==> default:
==> default: ================================================================================
==> default:  Package              Arch       Version                      Repository   Size
==> default: ================================================================================
==> default: Installing:
==> default:  bind-utils           x86_64     32:9.9.4-38.el7_3.2          updates     202 k
==> default:  gcc-c++              x86_64     4.8.5-11.el7                 base        7.2 M
==> default:  krb5-workstation     x86_64     1.14.1-27.el7_3              updates     772 k
==> default:  mc                   x86_64     1:4.8.7-11.el7               base        1.7 M
==> default:  nano                 x86_64     2.3.1-10.el7                 base        440 k
==> default:  net-tools            x86_64     2.0-0.17.20131004git.el7     base        304 k
==> default:  vim-enhanced         x86_64     2:7.4.160-1.el7_3.1          updates     1.0 M
==> default:  wget                 x86_64     1.14-13.el7                  base        546 k
==> default:  zip                  x86_64     3.0-11.el7                   base        260 k
==> default: Installing for dependencies:
==> default:  bind-libs            x86_64     32:9.9.4-38.el7_3.2          updates     1.0 M
==> default:  gpm-libs             x86_64     1.20.7-5.el7                 base         32 k
==> default:  libkadm5             x86_64     1.14.1-27.el7_3              updates     173 k
==> default:  libstdc++-devel      x86_64     4.8.5-11.el7                 base        1.5 M
==> default:  vim-common           x86_64     2:7.4.160-1.el7_3.1          updates     5.9 M
==> default:  vim-filesystem       x86_64     2:7.4.160-1.el7_3.1          updates     9.7 k
==> default:
==> default: Transaction Summary
==> default: ================================================================================
==> default: Install  9 Packages (+6 Dependent packages)
==> default: Total download size: 21 M
==> default: Installed size: 64 M
==> default: Downloading packages:
==> default: http://mirror.awanti.com/centos/7.3.1611/updates/x86_64/Packages/bind-utils-9.9.4-38.el7_3.2.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.awanti.com; Unknown error"
==> default: Trying other mirror.
==> default: http://mirror.logol.ru/centos/7.3.1611/updates/x86_64/Packages/bind-libs-9.9.4-38.el7_3.2.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.logol.ru; Unknown error"
==> default: Trying other mirror.
==> default: http://mirror.logol.ru/centos/7.3.1611/os/x86_64/Packages/gcc-c%2B%2B-4.8.5-11.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.logol.ru; Unknown error"
==> default: Trying other mirror.
==> default: http://mirror.digitalhusky.com/centos/7.3.1611/os/x86_64/Packages/gpm-libs-1.20.7-5.el7.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.digitalhusky.com; Unknown error"
==> default: Trying other mirror.
==> default: http://mirror.logol.ru/centos/7.3.1611/updates/x86_64/Packages/krb5-workstation-1.14.1-27.el7_3.x86_64.rpm: [Errno 14] curl#6 - "Could not resolve host: mirror.logol.ru; Unknown error"
==> default: Trying other mirror.
==> default: --------------------------------------------------------------------------------
==> default: Total                                              797 kB/s |  21 MB  00:27
==> default: Running transaction check
==> default: Running transaction test
==> default: Transaction test succeeded
==> default: Running transaction
==> default:   Installing : gpm-libs-1.20.7-5.el7.x86_64                                1/15
==> default:
==> default:   Installing : 2:vim-filesystem-7.4.160-1.el7_3.1.x86_64                   2/15
==> default:
==> default:   Installing : 2:vim-common-7.4.160-1.el7_3.1.x86_64                       3/15
==> default:
==> default:   Installing : libstdc++-devel-4.8.5-11.el7.x86_64                         4/15
==> default:
==> default:   Installing : 32:bind-libs-9.9.4-38.el7_3.2.x86_64                        5/15
==> default:
==> default:   Installing : libkadm5-1.14.1-27.el7_3.x86_64                             6/15
==> default:
==> default:   Installing : krb5-workstation-1.14.1-27.el7_3.x86_64                     7/15
==> default:
==> default:   Installing : 32:bind-utils-9.9.4-38.el7_3.2.x86_64                       8/15
==> default:
==> default:   Installing : gcc-c++-4.8.5-11.el7.x86_64                                 9/15
==> default:
==> default:   Installing : 2:vim-enhanced-7.4.160-1.el7_3.1.x86_64                    10/15
==> default:
==> default:   Installing : 1:mc-4.8.7-11.el7.x86_64                                   11/15
==> default:
==> default:   Installing : nano-2.3.1-10.el7.x86_64                                   12/15
==> default:
==> default:   Installing : wget-1.14-13.el7.x86_64                                    13/15
==> default:
==> default:   Installing : net-tools-2.0-0.17.20131004git.el7.x86_64                  14/15
==> default:
==> default:   Installing : zip-3.0-11.el7.x86_64                                      15/15
==> default:
==> default:   Verifying  : 1:mc-4.8.7-11.el7.x86_64                                    1/15
==> default:
==> default:   Verifying  : 32:bind-utils-9.9.4-38.el7_3.2.x86_64                       2/15
==> default:
==> default:   Verifying  : libkadm5-1.14.1-27.el7_3.x86_64                             3/15
==> default:
==> default:   Verifying  : gcc-c++-4.8.5-11.el7.x86_64                                 4/15
==> default:
==> default:   Verifying  : 32:bind-libs-9.9.4-38.el7_3.2.x86_64                        5/15
==> default:
==> default:   Verifying  : krb5-workstation-1.14.1-27.el7_3.x86_64                     6/15
==> default:
==> default:   Verifying  : zip-3.0-11.el7.x86_64                                       7/15
==> default:
==> default:   Verifying  : net-tools-2.0-0.17.20131004git.el7.x86_64                   8/15
==> default:
==> default:   Verifying  : wget-1.14-13.el7.x86_64                                     9/15
==> default:
==> default:   Verifying  : gpm-libs-1.20.7-5.el7.x86_64                               10/15
==> default:
==> default:   Verifying  : 2:vim-enhanced-7.4.160-1.el7_3.1.x86_64                    11/15
==> default:
==> default:   Verifying  : nano-2.3.1-10.el7.x86_64                                   12/15
==> default:
==> default:   Verifying  : 2:vim-common-7.4.160-1.el7_3.1.x86_64                      13/15
==> default:
==> default:   Verifying  : libstdc++-devel-4.8.5-11.el7.x86_64                        14/15
==> default:
==> default:   Verifying  : 2:vim-filesystem-7.4.160-1.el7_3.1.x86_64                  15/15
==> default:
==> default:
==> default: Installed:
==> default:   bind-utils.x86_64 32:9.9.4-38.el7_3.2
==> default:   gcc-c++.x86_64 0:4.8.5-11.el7
==> default:   krb5-workstation.x86_64 0:1.14.1-27.el7_3
==> default:   mc.x86_64 1:4.8.7-11.el7
==> default:   nano.x86_64 0:2.3.1-10.el7
==> default:   net-tools.x86_64 0:2.0-0.17.20131004git.el7
==> default:   vim-enhanced.x86_64 2:7.4.160-1.el7_3.1
==> default:   wget.x86_64 0:1.14-13.el7
==> default:   zip.x86_64 0:3.0-11.el7
==> default:
==> default: Dependency Installed:
==> default:   bind-libs.x86_64 32:9.9.4-38.el7_3.2
==> default:   gpm-libs.x86_64 0:1.20.7-5.el7
==> default:   libkadm5.x86_64 0:1.14.1-27.el7_3
==> default:   libstdc++-devel.x86_64 0:4.8.5-11.el7
==> default:   vim-common.x86_64 2:7.4.160-1.el7_3.1
==> default:   vim-filesystem.x86_64 2:7.4.160-1.el7_3.1
==> default: Complete!
==> default: warning: /var/tmp/rpm-tmp.Dl4hU7: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
==> default: Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
==> default: Preparing...                          ########################################
==> default: Updating / installing...
==> default: epel-release-7-9
==> default: ###########
==> default: #############################
==> default: warning: /var/tmp/rpm-tmp.0JqV8y: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY
==> default: Retrieving https://centos7.iuscommunity.org/ius-release.rpm
==> default: Preparing...
==> default: ########################################
==> default: Updating / installing...
==> default: ius-release-1.0-15.ius.centos7
==> default: ######
==> default: #####
==> default: ######
==> default: #####
==> default: #####
==> default: ############
==> default: #
==> default: Loaded plugins: fastestmirror
==> default: Loading mirror speeds from cached hostfile
==> default:  * base: centos-mirror.rbc.ru
==> default:  * epel: fedora-mirror01.rbc.ru
==> default:  * extras: centos-mirror.rbc.ru
==> default:  * ius: mirror.amsiohosting.net
==> default:  * updates: centos-mirror.rbc.ru
==> default: Resolving Dependencies
==> default: --> Running transaction check
==> default: ---> Package git2u.x86_64 0:2.12.0-1.ius.centos7 will be installed
==> default: --> Processing Dependency: git2u-core = 2.12.0-1.ius.centos7 for package: git2u-2.12.0-1.ius.centos7.x86_64
==> default: --> Processing Dependency: git2u-core-doc = 2.12.0-1.ius.centos7 for package: git2u-2.12.0-1.ius.centos7.x86_64
==> default: --> Processing Dependency: git2u-perl-Git = 2.12.0-1.ius.centos7 for package: git2u-2.12.0-1.ius.centos7.x86_64
==> default: --> Processing Dependency: perl(Error) for package: git2u-2.12.0-1.ius.centos7.x86_64
==> default: --> Processing Dependency: perl(Git) for package: git2u-2.12.0-1.ius.centos7.x86_64
==> default: --> Processing Dependency: perl(Git::I18N) for package: git2u-2.12.0-1.ius.centos7.x86_64
==> default: --> Processing Dependency: perl(Term::ReadKey) for package: git2u-2.12.0-1.ius.centos7.x86_64
==> default: --> Running transaction check
==> default: ---> Package git2u-core.x86_64 0:2.12.0-1.ius.centos7 will be installed
==> default: --> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git2u-core-2.12.0-1.ius.centos7.x86_64
==> default: ---> Package git2u-core-doc.x86_64 0:2.12.0-1.ius.centos7 will be installed
==> default: ---> Package git2u-perl-Git.noarch 0:2.12.0-1.ius.centos7 will be installed
==> default: ---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
==> default: ---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
==> default: --> Running transaction check
==> default: ---> Package libgnome-keyring.x86_64 0:3.8.0-3.el7 will be installed
==> default: --> Finished Dependency Resolution
==> default:
==> default: Dependencies Resolved
==> default:
==> default: ================================================================================
==> default:  Package               Arch        Version                      Repository
==> default:                                                                            Size
==> default: ================================================================================
==> default: Installing:
==> default:  git2u                 x86_64      2.12.0-1.ius.centos7         ius       1.0 M
==> default: Installing for dependencies:
==> default:  git2u-core            x86_64      2.12.0-1.ius.centos7         ius       3.8 M
==> default:  git2u-core-doc        x86_64      2.12.0-1.ius.centos7         ius       2.3 M
==> default:  git2u-perl-Git        noarch      2.12.0-1.ius.centos7         ius        61 k
==> default:  libgnome-keyring      x86_64      3.8.0-3.el7                  base      109 k
==> default:  perl-Error            noarch      1:0.17020-2.el7              base       32 k
==> default:  perl-TermReadKey      x86_64      2.30-20.el7                  base       31 k
==> default:
==> default: Transaction Summary
==> default: ================================================================================
==> default: Install  1 Package (+6 Dependent packages)
==> default:
==> default: Total download size: 7.4 M
==> default: Installed size: 34 M
==> default: Downloading packages:
==> default: warning: /var/cache/yum/x86_64/7/ius/packages/git2u-perl-Git-2.12.0-1.ius.centos7.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY
==> default: Public key for git2u-perl-Git-2.12.0-1.ius.centos7.noarch.rpm is not installed
==> default: --------------------------------------------------------------------------------
==> default: Total                                              3.0 MB/s | 7.4 MB  00:02
==> default: Retrieving key from file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
==> default: Importing GPG key 0x9CD4953F:
==> default:  Userid     : "IUS Community Project <coredev@iuscommunity.org>"
==> default:  Fingerprint: 8b84 6e3a b3fe 6462 74e8 670f da22 1cdf 9cd4 953f
==> default:  Package    : ius-release-1.0-15.ius.centos7.noarch (installed)
==> default:  From       : /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
==> default: Running transaction check
==> default: Running transaction test
==> default: Transaction test succeeded
==> default: Running transaction
==> default: Warning: RPMDB altered outside of yum.
==> default:   Installing : 1:perl-Error-0.17020-2.el7.noarch                            1/7
==> default:
==> default:   Installing : libgnome-keyring-3.8.0-3.el7.x86_64                          2/7
==> default:
==> default:   Installing : git2u-core-2.12.0-1.ius.centos7.x86_64                       3/7
==> default:
==> default:   Installing : git2u-core-doc-2.12.0-1.ius.centos7.x86_64                   4/7
==> default:
==> default:   Installing : perl-TermReadKey-2.30-20.el7.x86_64                          5/7
==> default:
==> default:   Installing : git2u-perl-Git-2.12.0-1.ius.centos7.noarch                   6/7
==> default:
==> default:   Installing : git2u-2.12.0-1.ius.centos7.x86_64                            7/7
==> default:
==> default:   Verifying  : git2u-2.12.0-1.ius.centos7.x86_64                            1/7
==> default:
==> default:   Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                          2/7
==> default:
==> default:   Verifying  : 1:perl-Error-0.17020-2.el7.noarch                            3/7
==> default:
==> default:   Verifying  : git2u-core-2.12.0-1.ius.centos7.x86_64                       4/7
==> default:
==> default:   Verifying  : git2u-perl-Git-2.12.0-1.ius.centos7.noarch                   5/7
==> default:
==> default:   Verifying  : git2u-core-doc-2.12.0-1.ius.centos7.x86_64                   6/7
==> default:
==> default:   Verifying  : libgnome-keyring-3.8.0-3.el7.x86_64                          7/7
==> default:
==> default:
==> default: Installed:
==> default:   git2u.x86_64 0:2.12.0-1.ius.centos7
==> default:
==> default: Dependency Installed:
==> default:   git2u-core.x86_64 0:2.12.0-1.ius.centos7
==> default:   git2u-core-doc.x86_64 0:2.12.0-1.ius.centos7
==> default:   git2u-perl-Git.noarch 0:2.12.0-1.ius.centos7
==> default:   libgnome-keyring.x86_64 0:3.8.0-3.el7
==> default:   perl-Error.noarch 1:0.17020-2.el7
==> default:   perl-TermReadKey.x86_64 0:2.30-20.el7
==> default: Complete!

As you can see above, some of the first attempts to download packages fail and after a few minutes it all goes fine.

This is the output of ip addr show

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 52:54:00:1f:db:b7 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
       valid_lft 85719sec preferred_lft 85719sec
    inet6 fe80::5054:ff:fe1f:dbb7/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:f3:26:13 brd ff:ff:ff:ff:ff:ff
    inet 192.168.7.7/24 brd 192.168.7.255 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fef3:2613/64 scope link
       valid_lft forever preferred_lft forever

also I noticed that search localdomain appears after some time in /etc/resolv.conf maybe that makes any difference. And also does not seem that I can check with dig or traceroute since they are not installed by default and by the time they are installed the problem will most likely disappear. I believe it could be somehow related to dns or network services not starting properly, but I'm not very good at debugging things like that in centos.

dhampik commented 7 years ago

It's worth noting that there is no such issue with centos/6 vagrant box, so I had to switch to it.

lpancescu commented 7 years ago

Perhaps your local network doesn't work properly with IPv6. Could you manually add ipv6.disable=1 to the kernel command line, when you fist boot a new centos/7 box? You can add vm.gui = true to the Vagrantfile to get a console, and you should press e really fast to edit the kernel command line (our images only wait 1 second before booting).

It might also be an old, but unfixed, VirtualBox bug affecting Windows users with IPv6 - over wireless, if I understand correctly (I just skimmed the messages). You could try connecting with a network cable, if you're on wireless. Another idea would be to configure VirtualBox to provide a DNS proxy.

https://www.vagrantup.com/docs/virtualbox/configuration.html#gui-vs-headless https://www.virtualbox.org/ticket/5503 https://serverfault.com/questions/453185/vagrant-virtualbox-dns-10-0-2-3-not-working

dhampik commented 7 years ago

I tried to connect with a cable and set ipv6.disable=1. It didn't help. Also I have vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on'] and vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on'] as described in the referred serverfault question. I assume if it were issues in vagrant or virtualbox then it wouldn't work on centos/6 and on centos/7 v1610.01 but it does, so the regression was introduced in centos/7 v1611.01

lpancescu commented 7 years ago

Nothing changed from the perspective of the Vagrant images, and I can't reproduce it here on macOS (our automated tests would catch that on a CentOS 7 host, too - it might be Windows-specific, although we have reports that VMware works properly). But v1611.01 was the first release based on CentOS Linux 7.3.1611 (the previous ones were using packages from 7.2.1511). Perhaps the problem is upstream. Try asking in #centos on IRC, there are very knowledgeable people there who can help. Sorry, no idea what could be going on there.

https://seven.centos.org/2016/12/updated-centos-vagrant-images-available-v1611-01/

xrow commented 7 years ago

Hi,

I can confirm that we have the same errors with Windows 10 Enterprise, VB Version 5.1.14 r112924 (Qt5.6.2) and Vagrant 1.8.7.

lpancescu commented 7 years ago

Did you try using Google's public DNS servers instead of the local ones? You could follow these steps:

  1. Uninstall any Vagrant plugins you have
  2. Create a fresh Vagrant config with vagrant init centos/7 in a new directory
  3. Boot it, connect to it and edit /etc/sysconfig/network-scripts/ifcfg-eth0 to contain just these lines:
    DEVICE="eth0"
    BOOTPROTO="dhcp"
    ONBOOT="yes"
    PEERDNS="no"
    DNS1="8.8.8.8"
    DNS2="8.8.4.4"
  4. Shutdown the box with vagrant halt and repackage it with vagrant package --output dns_test.box.
  5. Import the new box with vagrant box add dns_test.box --name dns_test.
  6. Reinstall your Vagrant plugins, go back to your normal Vagrantfile and configure it to use dns_test instead of centos/7.

I'm curious if this solves the problem you're seeing. Unfortunately, I don't have any Windows machine to try it on, and I don't see any problems on macOS.

xrow commented 7 years ago

Hi,

I solved my problem by doing those steps:

Vagrant 1.9.3 install vagrant box update vagrant plugin expunge –reinstall vagrant up

noramtkane commented 7 years ago

I've also run into this. I believe it is windows specific if that helps. I have a development environment I wrote and it is used by devs on windows,linux and mac. Only ones that ever have this problem are using windows.

dhampik commented 7 years ago

Now I can say for sure, that the issue can be observed on Windows with centos/7 box specifically when vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on'] option is used in Vagrantfile. If NAT DNS resolver is not used, then it's all fine.

Same issue is not observed with centos/6. I didn't find a way to resolve it, but to downgrade to centos/6. Other way could be not to use natdnsresolver option, but I need it in my project.

lpancescu commented 7 years ago

@dhampik I just tried with the NAT DNS host resolver active, using your configuration line, and everything works fine on my Mac Mini (on OS X). Perhaps centos/7 is triggering a bug in VirtualBox for Windows. Could you ask the VirtualBox developers if they have any idea what might be causing this? Can you reproduce this bug with debian/jessie64 or debian/stretch64?

ics042 commented 6 years ago

I have had the same issue, must set natdnshostresolver1 to off in Vagrantfile to fix the issue

vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]

Environment: Windows 7 Professional VirtualBox 5.1.30 (also tested with 5.2.4) Vagrant 1.9.8 (also tested with 2.0.1)

Vagrant box: centos/7 v1710.01

randy-rebucas commented 2 years ago

Run this. vagrant plugin uninstall vagrant-vbguest then this vagrant plugin install vagrant-vbguest --plugin-version 0.21