Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VAGRANT_LOG=info vagrant up | portfowarding false
==> default: Configuring and enabling network interfaces...
INFO ssh: SSH is ready!
INFO ssh: Execute: (sudo=false)
INFO guest: Execute capability: configure_networks [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>, [{:type=>:static, :adapter_ip=>"192.168.193.1", :ip=>"192.168.193.22", :netmask=>"255.255.255.0", :auto_config=>true, :interface=>0}]] (redhat)
INFO ssh: SSH is ready!
INFO ssh: Execute: (sudo=false)
INFO guest: Execute capability: network_scripts_dir [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>] (redhat)
INFO ssh: SSH is ready!
INFO ssh: Execute: (sudo=false)
INFO guest: Execute capability: network_interfaces [#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>] (redhat)
INFO ssh: Execute: /sbin/ip -o -0 addr | grep -v LOOPBACK | awk '{print $2}' | sed 's/://' (sudo=true)
INFO ssh: Execute: cat /proc/net/dev | grep -E '^[a-z0-9 ]+:' | awk '{print $1}' | sed 's/://' (sudo=true)
INFO ssh: Execute: nmcli (sudo=false)
INFO ssh: Execute: nmcli d show eth0 (sudo=false)
INFO ssh: Execute: nmcli d show eth0 | grep unmanaged (sudo=false)
INFO ssh: Execute: nmcli d disconnect iface 'eth0'
mv -f '/tmp/vagrant-network-entry-eth0-1516895975-0' '/etc/sysconfig/network-scripts/ifcfg-eth0'
(test -f /etc/init.d/NetworkManager && /etc/init.d/NetworkManager restart) || ((systemctl | grep NetworkManager.service) && systemctl restart NetworkManager) (sudo=true)
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.