Vagrant.configure("2") do |config|
config.vm.define "host01" do |host| host.vm.box = "centos7" host.vm.box_url = "file://~/src/vagrant/centos7.json" host.vm.network "private_network", ip: "192.168.56.11" endendBringing machine 'host01' up with 'virtualbox' provider...==> host01: Importing base box 'centos7'...==> host01: Matching MAC address for NAT networking...==> host01: Checking if box 'centos7' is up to date...==> host01: Setting the name of the VM: Vagrant_host01_1481242515497_92317==> host01: Clearing any previously set network interfaces...==> host01: Preparing network interfaces based on configuration... host01: Adapter 1: nat host01: Adapter 2: hostonly==> host01: Forwarding ports... host01: 22 (guest) => 2222 (host) (adapter 1)==> host01: Booting VM...==> host01: Waiting for machine to boot. This may take a few minutes... host01: SSH address: 127.0.0.1:2222 host01: SSH username: vagrant host01: SSH auth method: private key host01: Warning: Remote connection disconnect. Retrying... host01: host01: Vagrant insecure key detected. Vagrant will automatically replace host01: this with a newly generated keypair for better security. host01: host01: Inserting generated public key within guest... host01: Removing insecure key from the guest if it's present... host01: Key inserted! Disconnecting and reconnecting using new SSH key...==> host01: Machine booted and ready!==> host01: Checking for guest additions in VM...==> host01: Configuring and enabling network interfaces...==> host01: Mounting shared folders... host01: /vagrant => /Users/matthewpounsett/Development/tld-infrastructure/Vagrant
$ vagrant ssh[vagrant@localhost ~]$ ip addr list1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 52:54:00:d8:71:80 brd ff:ff:ff:ff:ff:ff inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0 valid_lft 86396sec preferred_lft 86396sec inet6 fe80::5054:ff:fed8:7180/64 scope link valid_lft forever preferred_lft forever3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000 link/ether 08:00:27:60:7d:5c brd ff:ff:ff:ff:ff:ff[vagrant@localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1 #VAGRANT-BEGIN# The contents below are automatically generated by Vagrant. Do not modify.NM_CONTROLLED=noBOOTPROTO=noneONBOOT=yesIPADDR=192.168.56.11NETMASK=255.255.255.0DEVICE=eth1PEERDNS=no#VAGRANT-END[vagrant@localhost ~]$ logoutConnection to 127.0.0.1 closed.
Vagrant.configure("2") do |config|config.vm.define "host01" do |host|host.vm.box = "centos7"host.vm.box_url = "file://~/src/vagrant/centos7.json"host.vm.network "private_network", ip: "192.168.56.11"endend
INFO ssh: Execute: # Down the interface before munging the config file. This might
# fail if the interface is not actually set up yet so ignore
# errors.
/sbin/ifdown 'eth1'
# Move new config into place
mv -f '/tmp/vagrant-network-entry-eth1-1481401319-0' '/etc/sysconfig/network-scripts/ifcfg-eth1'
# attempt to force network manager to reload configurations
nmcli c reload || true
# Restart network (through NetworkManager if running)
if service NetworkManager status 2>&1 | grep -q running; then
service NetworkManager restart
else
service network restart
fi
(sudo=true)
DEBUG ssh: stderr: Redirecting to /bin/systemctl restart NetworkManager.service
So, seems being worked by this:
https://github.com/mitchellh/vagrant/issues/8096
Alvaro
Vagrant version?host os?
Can you share a gist to the output ofVAGRANT_LOG=debugvagrant up
config.vm.provision "shell", inline: "ifup eth1", run: "always"--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/29b48573-c01a-452e-98e9-b3848cbcb13b%40googlegroups.com.
no need for that.just add in the meantimeconfig.vm.provision "shell", inline: "ifup eth1", run: "always"
On Sat, Dec 10, 2016 at 10:27 PM, Matthew Pounsett <ma...@conundrum.com> wrote:
On Saturday, 10 December 2016 15:11:46 UTC-5, Alvaro Miranda Aguilera wrote:Vagrant version?host os?Hmm... Yeah, sorry. Not sure why I didn't paste those in to the original email.I'm using Vagrant 1.9.1 on MacOS 10.10.5Can you share a gist to the output ofVAGRANT_LOG=debugvagrant upabsolutely.It looks to me like the bug you noted in your other post... should be fixed in 1.9.2.I have been using a reboot at the end of my provisioning script as a workaround. That should be fine until the patch makes it out into the MacOS distribution.Thanks!
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/29b48573-c01a-452e-98e9-b3848cbcb13b%40googlegroups.com.
--Alvaro
I have just had this problem myself and found the latest version was messing it up for me. By changing from 1.9.1 to 1.8.6. This solved my problem.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/119f5af0-a81d-4657-9cad-616f65c2a269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.