From df67d2b44f5f20a544806ca2d4184fe9243ddcf8 Mon Sep 17 00:00:00 2001 From: Matt Alexander Date: Sat, 7 Dec 2013 14:22:19 -0600 Subject: [PATCH 1/2] Run "ip link set [eth1] down" before running "netctl start [eth1]" in Arch guest network configuration --- plugins/guests/arch/cap/configure_networks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/guests/arch/cap/configure_networks.rb b/plugins/guests/arch/cap/configure_networks.rb index ada7ae7cb..7bbb071de 100644 --- a/plugins/guests/arch/cap/configure_networks.rb +++ b/plugins/guests/arch/cap/configure_networks.rb @@ -36,6 +36,7 @@ module VagrantPlugins # replacing the correct interface name within ruby seems more # complicted too (I'm far from being a ruby expert though). machine.communicate.sudo("sed -i \"s/eth#{network[:interface]}/`ip link | sed -n 's/.*:\\s\\(.*\\): <.*/\\1/p' | sed -n #{snth}p`/g\" /etc/netctl/eth#{network[:interface]}") + machine.communicate.sudo("ip link set eth#{network[:interface]} down") machine.communicate.sudo("netctl start eth#{network[:interface]}") end end From edeb5f0e9fbfc4315a41fc0d9985b4c949780392 Mon Sep 17 00:00:00 2001 From: Matt Alexander Date: Sat, 7 Dec 2013 14:59:40 -0600 Subject: [PATCH 2/2] Add the symlink back that disabled renaming of network interface names --- plugins/guests/arch/cap/configure_networks.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/guests/arch/cap/configure_networks.rb b/plugins/guests/arch/cap/configure_networks.rb index 7bbb071de..f9547da63 100644 --- a/plugins/guests/arch/cap/configure_networks.rb +++ b/plugins/guests/arch/cap/configure_networks.rb @@ -20,6 +20,7 @@ module VagrantPlugins temp.close machine.communicate.upload(temp.path, "/tmp/vagrant_network") + machine.communicate.sudo("ln -sf /dev/null /etc/udev/rules.d/80-net-name-slot.rules") machine.communicate.sudo("mv /tmp/vagrant_network /etc/netctl/eth#{network[:interface]}") # Only consider nth line of sed's output below. There's always an