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

Vagrant 1.8.6: hangs at step "Configuring and enabling network interfaces..." if private_network is enabled #7950

Closed
amatas opened this issue Oct 31, 2016 · 5 comments

Comments

@amatas
Copy link

amatas commented Oct 31, 2016

Vagrant version

Vagrant 1.8.6

Host operating system

Archlinux

Guest operating system

Centos 7 + Docker installed and enabled
For example: https://atlas.hashicorp.com/williamyeh/boxes/centos7-docker

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "williamyeh/centos7-docker"
  config.vm.network "private_network", ip: "192.168.33.10"
end

Debug output

https://gist.github.com/amatas/10bbf7d691d5443e74f89af42f12ec93#file-vagrant_interface-log-L4248-L4249

Expected behavior

  • The interface enp0s3 should be configured as internal interface 10.0.2.15
  • The interface enp0s8 should be configured as private interface 192.168.33.10

Actual behavior

Vagrant is taking the interface docker0 as internal interface as the log shows, breaking the configuration of the next interface in the list enp0s3. As the internal interface is down, Vagrant is not able to contact with the VM causing the "hang".

Steps to reproduce

  1. vagrant init williamyeh/centos7-docker
  2. Use the above Vagrantfile
  3. vagrant up
  4. The provision hangs at "Configuring and enabling network interfaces..." step
@looppair
Copy link

looppair commented Nov 1, 2016

Seeing the same behaviour on a custom CentOS 7 box using VirtualBox & GuestAdditions 5.0.28, Vagrant 1.8.1 and vagrant-vbguest 0.13.0.

@chrisroberts
Copy link
Member

#7866 should have resolved this issue which is in the 1.8.7 release. Please let me know if it does not resolve your issue. Thanks!

@amatas
Copy link
Author

amatas commented Nov 7, 2016

The issue is fixed in 1.8.7 release using the same environment described above. Thanks.

@chrisroberts
Copy link
Member

👍 thanks for the update

@ghost
Copy link

ghost commented Apr 3, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants