Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Can't configure network interfaces #90

Open
Krafcu opened this issue Nov 17, 2016 · 4 comments
Open

Can't configure network interfaces #90

Krafcu opened this issue Nov 17, 2016 · 4 comments

Comments

@Krafcu
Copy link

Krafcu commented Nov 17, 2016

Hi,
just tried this solution for working with vagrant and docker. Did a clean install using pre-instalation scripts on osx and all went fine until last step of running the machine. I got this vagrant error:

==> boot2docker: Configuring and enabling network interfaces...
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.
Checking that everything is in place...
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 17:52:38 2016
 OS/Arch:      darwin/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Something went wrong. Please review console output for possible clues.
Vagrant 1.8.7
VirtualBox 5.1.8
@Krafcu
Copy link
Author

Krafcu commented Nov 17, 2016

Seems like there is problem with Vagrant 1.8.7
1.8.6 works fine on that matter.

@lmakarov
Copy link
Owner

@Krafcu, thanks for reporting this.

Per hashicorp/vagrant#6426 (comment) can you try replacing the following in the Vagrantfile and test is with both Vagrant 1.8.6 and 1.8.7?

Before

  config.vm.network "private_network", ip: box_ip, nic_type: "82540EM"
  # Addtional IP addresses (see vagrant.yml)
  $vconfig['ip']['additional'].each do |private_ip|
    config.vm.network "private_network", ip: private_ip, nic_type: "82540EM"
  end unless $vconfig['ip']['additional'].nil?

After

  config.vm.network "private_network", ip: box_ip, nic_type: "82540EM", type: "dhcp", auto_config: false
  # Addtional IP addresses (see vagrant.yml)
  $vconfig['ip']['additional'].each do |private_ip|
    config.vm.network "private_network", ip: private_ip, nic_type: "82540EM", type: "dhcp", auto_config: false
  end unless $vconfig['ip']['additional'].nil?

If that works, I will push a hotfix release.

@Krafcu
Copy link
Author

Krafcu commented Nov 18, 2016

@lmakarov Thanks for suggestion. It did indeed fix the problem with the vagrant box not comming up however now using DHCP setting it created box with IP 192.168.10.3 and not 192.168.10.10 defined in yml config. So now I would have to manually change the DOCKER_HOST variable export and im not sure this IP will not change after rerurnig the box. What do you think?

@lmakarov
Copy link
Owner

You can certainly do an export DOCKER_HOST=tcp://<IP>:2375, but realistically, a dynamic IP is not really what we want.
I'd recommend sticking with Vagrant 1.8.6 in this case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants