From 55a90445cdfc290d4a1f68c66835c0249ca59cdd Mon Sep 17 00:00:00 2001 From: Masahiro Ono Date: Sun, 21 Dec 2014 16:25:11 +0900 Subject: [PATCH] Fix new-style Network Device Naming on CentOS7+VMwarefusion --- plugins/guests/fedora/cap/configure_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/fedora/cap/configure_networks.rb b/plugins/guests/fedora/cap/configure_networks.rb index 549a99dff..2f67099cd 100644 --- a/plugins/guests/fedora/cap/configure_networks.rb +++ b/plugins/guests/fedora/cap/configure_networks.rb @@ -26,7 +26,7 @@ module VagrantPlugins end interface_names = networks.map do |network| - "eth#{network[:interface]}" + "#{interface_names[network[:interface]]}" end else machine.communicate.sudo("/usr/sbin/biosdevname -d | grep Kernel | cut -f2 -d: | sed -e 's/ //;'") do |_, result|