5

I'm following below steps to create mesos -

https://dcos-e2e-cli.readthedocs.io/en/latest/dcos-vagrant-cli.html

when I run the command minidcos vagrant create ./dcos_generate_config.sh --agents 0 I get below error.

Error getting repository data for C7.6.1810-base, repository not found
==> dcos-e2e-918351cd-9d88-47c6-9b72-b2f5194302fc-master-0: Checking for guest additions in VM...
Error creating cluster.
Try "minidcos vagrant doctor" for troubleshooting help.

How to resolve that error?

user51
  • 8,843
  • 21
  • 79
  • 158
  • 1
    Have a look here: https://jira.mesosphere.com/browse/DCOS_OSS-4686 – Tim Harper Jan 16 '19 at 17:41
  • 1
    Thanks Tim - I updated the `cmd` in ` vi ~/.vagrant.d/gems/2.4.2/gems/vagrant-vbguest-0.17.1/lib/vagrant-vbguest/installers/centos.rb` and it works fine. I will accept the answer if you do the same. – user51 Jan 16 '19 at 19:56

3 Answers3

3

As suggested by Tim Harper in comment, I have updated the file ~/.vagrant.d/gems/2.4.2/gems/vagrant-vbguest-0.17.1/lib/vagrant-vbguest/installers/centos.rb.

In that file I have commented out:

# cmd = "yum install -y kernel-devel-`uname -r` --enablerepo=C#{rel}-base --enablerepo=C#{rel}-updates"

and added:

cmd = "yum install -y kernel-devel-`uname -r` --enablerepo=C*-base --enablerepo=C*-updates"

Then it worked.

Ivan Velichko
  • 6,348
  • 6
  • 44
  • 90
user51
  • 8,843
  • 21
  • 79
  • 158
3

There is now a new version of vagrant-vbguest which fixes the issue (0.17.2) - also, there is also a new version of minidcos which includes a doctor check that at least this version is installed.

Adam Dangoor
  • 326
  • 1
  • 8
  • `vagrant plugin update vagrant-vbguest` is what I ran, presently it updated my copy to 0.19.0. This helped me get past the problem as well. – Mike Atlas Sep 24 '19 at 19:36
0

There is now a new version of vagrant-vbguest which fixes the issue (0.17.2). There is also a new version of minidcos which includes a doctor check that at least this version is installed.

Adam Dangoor
  • 326
  • 1
  • 8