Two error when i vagrant up

One is

[infrastructure] No Virtualbox Guest Additions installation found.

I have already installed vagrant guest box still the error

Second error is

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

yum install -y kernel-devel-uname -r --enablerepo=C7.6.1810-base --enablerepo=C7.6.1810-updates

Stdout from the command:

Loaded plugins: fastestmirror

Stderr from the command:

Error getting repository data for C7.6.1810-base, repository not found

Can you help me Please ?

Thanks

@ mohammed_22880

It appears that your infrastructure box isn’t correctly set up – these use a lot of resources, so that happens.

Exit the Vagrant VM to your system command line, and run the commands

vagrant destroy infrastructure
vagrant up infrastructure

You should see a line in the provisioning display that says

Loaded plugins: fastestmirror
Determining fastest mirrors

And the provisioning should complete pretty well from there. Post back here with any new errors. Good luck.

Still Have an error

[infrastructure] No Virtualbox Guest Additions installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

@ mohammed_22880

Hmmm… strange. It’s not loading from the internet, but loading from a cache. Did the destroy work correctly? If it did, you should have the following messages:

==> infrastructure: Forcing shutdown of VM...
==> infrastructure: Destroying VM and associated drives...

and not have any cached stuff left. What native OS and version are you using?

Well, it appears they’re still not there. :thinking:

Go back to your system command line and run

vagrant plugin list

which should return

vagrant-vbguest (0.15.2, global)

(on my system). Update this post when you have an answer.

And – BTW – it’s late here (GMT -08:00) so I’ll try to answer this first thing in the morning which is about 12 hours from now. Sorry for the delay but… :sleeping:

1 Like

Thanks Have a nice dream :grinning:

This is my output

misyaath@misyaath:~/m310-vagrant-env$ vagrant destroy infrastructure
infrastructure: Are you sure you want to destroy the 'infrastructure' VM? [y/N] y
==> infrastructure: Forcing shutdown of VM...
==> infrastructure: Destroying VM and associated drives...
misyaath@misyaath:~/m310-vagrant-env$ vagrant up infrastructure
Bringing machine 'infrastructure' up with 'virtualbox' provider...
==> infrastructure: Importing base box 'centos/7'...
==> infrastructure: Matching MAC address for NAT networking...
==> infrastructure: Checking if box 'centos/7' is up to date...
==> infrastructure: A newer version of the box 'centos/7' for provider 'virtualbox' is
==> infrastructure: available! You currently have version '1809.01'. The latest is version
==> infrastructure: '1811.02'. Run `vagrant box update` to update.
==> infrastructure: Setting the name of the VM: m310-vagrant-env_infrastructure_1547444089418_89097
==> 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: 
infrastructure: Vagrant insecure key detected. Vagrant will automatically replace
infrastructure: this with a newly generated keypair for better security.
infrastructure: 
infrastructure: Inserting generated public key within guest...
infrastructure: Removing insecure key from the guest if it's present...
infrastructure: Key inserted! Disconnecting and reconnecting using new SSH key...
==> infrastructure: Machine booted and ready!
[infrastructure] No Virtualbox Guest Additions installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package centos-release.x86_64 0:7-5.1804.4.el7.centos will be updated
---> Package centos-release.x86_64 0:7-6.1810.2.el7.centos will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch         Version                     Repository  Size
================================================================================
Updating:
 centos-release       x86_64       7-6.1810.2.el7.centos       base        26 k

Transaction Summary
================================================================================
Upgrade  1 Package

Total download size: 26 k
Downloading packages:
No Presto metadata available for base
Public key for centos-release-7-6.1810.2.el7.centos.x86_64.rpm is not installed
warning: /var/cache/yum/x86_64/7/base/packages/centos-release-7-6.1810.2.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
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-5.1804.4.el7.centos.x86_64 (@koji-override-1)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : centos-release-7-6.1810.2.el7.centos.x86_64                  1/2 
  Cleanup    : centos-release-7-5.1804.4.el7.centos.x86_64                  2/2 
  Verifying  : centos-release-7-6.1810.2.el7.centos.x86_64                  1/2 
  Verifying  : centos-release-7-5.1804.4.el7.centos.x86_64                  2/2 

Updated:
  centos-release.x86_64 0:7-6.1810.2.el7.centos                                 

Complete!
Loaded plugins: fastestmirror


Error getting repository data for C7.6.1810-base, repository not found
==> 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 install
infrastructure: the guest additions and repackage the box to continue.
infrastructure: 
infrastructure: This is not an error message; everything may continue to work 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-`uname -r` --enablerepo=C7.6.1810-base --enablerepo=C7.6.1810-updates

Stdout from the command:

Loaded plugins: fastestmirror


Stderr from the command:



Error getting repository data for C7.6.1810-base, repository not found

misyaath@misyaath:~/m310-vagrant-env$ vagrant plugin list
vagrant-vbguest (0.17.1)
misyaath@misyaath:~/m310-vagrant-env$

I have the exactly same problem too.

Finally, I solved it by following steps

  1. I destroy the infrastructure VM.
  2. remove the centos box
  3. vagrant up again, let the vagrant download an new box of centos
  4. using the virtualbox to login the infrastructure VM. Then run the yum update.
    Then the vagrant will do the rest.