Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot configure network in Vagrantfile #2

Closed
duro opened this issue Aug 20, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@duro
Copy link

commented Aug 20, 2015

Here is my Vagrantfile:

# Vagrantfile for the proxy VM

Vagrant.configure("2") do |config|

  config.vm.define "zg-docker-host", primary: true do |dhost|

    dhost.vm.box = "ailispaw/docker-root"

    dhost.vm.network :private_network, ip: "192.168.100.200"

    dhost.vm.provider "virtualbox" do |v|
      v.name = "zg-docker-host"
      v.memory = 2048
    end

    dhost.vm.network "forwarded_port", guest: 8080, host: 8080
    dhost.vm.network "forwarded_port", guest: 3000, host: 3000
    dhost.vm.network "forwarded_port", guest: 3232, host: 3232
    dhost.vm.network "forwarded_port", guest: 8888, host: 8888
    dhost.vm.network "forwarded_port", guest: 8003, host: 8003

  end

end

When I vagrant up I get the following error:

Vagrant attempted to execute the capability 'configure_networks'
on the detect guest OS 'linux', but the guest doesn't
support that capability. This capability is required for your
configuration of Vagrant. Please either reconfigure Vagrant to
avoid this capability or fix the issue by creating the capability.
@ailispaw

This comment has been minimized.

Copy link
Owner

commented Aug 20, 2015

Hi @duro,
Is this at the very first time?
If so, the next vagrant up will be fine.

In the case of downloading and loading a Vagrant box at the same time on vagrant up,
Vagrant can not load a patch code for vagrant core in the box.

Just vagrant up again, or

$ vagrant box add ailispaw/docker-root
$ vagrant init -m ailispaw/docker-root
$ vi Vagrantfile
$ vagrant up

Please see also https://atlas.hashicorp.com/ailispaw/boxes/docker-root .

@ailispaw

This comment has been minimized.

Copy link
Owner

commented Aug 20, 2015

@ailispaw

This comment has been minimized.

Copy link
Owner

commented Aug 20, 2015

I should create a Vagrant plugin for this issue.
On vagrant up Vagrant checks the guest capabilities before downloading a box, if a box doesn't exist in the local machine.
But if a box exists, Vagrant can load a box and check the guest capabilities.
If a plugin exists, Vagrant loads a plugin first and then do the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.