devsecops / bootcamp

A open contribute bootcamp to develop DevSecOps skills...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lab 3 with vagrant up

diazands27 opened this issue · comments

Hi, when I perform vagrant up. I get an error with the repository.

MINGW64 ~/Desktop/dso_repos/bootcamp (master)
$ vagrant up
Bringing machine 'devsecops' up with 'virtualbox' provider...
==> devsecops: Importing base box 'centos/7'...
==> devsecops: Matching MAC address for NAT networking...
==> devsecops: Checking if box 'centos/7' version '1905.1' is up to date...
==> devsecops: Setting the name of the VM: bootcamp_devsecops_1564434099266_87107
==> devsecops: Clearing any previously set network interfaces...
==> devsecops: Preparing network interfaces based on configuration...
devsecops: Adapter 1: nat
==> devsecops: Forwarding ports...
devsecops: 3000 (guest) => 3000 (host) (adapter 1)
devsecops: 22 (guest) => 2222 (host) (adapter 1)
==> devsecops: Booting VM...
==> devsecops: Waiting for machine to boot. This may take a few minutes...
devsecops: SSH address: 127.0.0.1:2222
devsecops: SSH username: vagrant
devsecops: SSH auth method: private key
devsecops:
devsecops: Vagrant insecure key detected. Vagrant will automatically replace
devsecops: this with a newly generated keypair for better security.
devsecops:
devsecops: Inserting generated public key within guest...
devsecops: Removing insecure key from the guest if it's present...
devsecops: Key inserted! Disconnecting and reconnecting using new SSH key...
==> devsecops: Machine booted and ready!
[devsecops] No Virtualbox Guest Additions installation found.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

One of the configured repositories failed (Unknown),
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=<repoid> ...

 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 <repoid>
    or
        subscription-manager repos --disable=<repoid>

 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=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: extras/7/x86_64
==> devsecops: Checking for guest additions in VM...
devsecops: No guest additions were detected on the base box for this VM! Guest
devsecops: additions are required for forwarded ports, shared folders, host only
devsecops: networking, and more. If SSH fails on this machine, please install
devsecops: the guest additions and repackage the box to continue.
devsecops:
devsecops: This is not an error message; everything may continue to work properly,
devsecops: 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 centos-release

Stdout from the command:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

Stderr from the command:

One of the configured repositories failed (Unknown),
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=<repoid> ...

 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 <repoid>
    or
        subscription-manager repos --disable=<repoid>

 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=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: extras/7/x86_64

I had a problem with the connection