From 6fc1dd7b8ab1f9e9421a1de0db325fff0a653c3d Mon Sep 17 00:00:00 2001 From: Pavel Karoukin Date: Tue, 20 May 2014 02:29:13 +0200 Subject: [PATCH] For #3855 CoreOS vagrant's configuration code look for interface names starting with 'enp0', but in my case when deploying CoreOS image to libvirt environment interfaces had names 'ens4v1', 'ens5v2' This patch should fix it, but it might be part of a bigger issue and having these two patterns might not cover all possible configurations. --- plugins/guests/coreos/cap/configure_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/coreos/cap/configure_networks.rb b/plugins/guests/coreos/cap/configure_networks.rb index c9bf5e5ad..209bdcc49 100644 --- a/plugins/guests/coreos/cap/configure_networks.rb +++ b/plugins/guests/coreos/cap/configure_networks.rb @@ -15,7 +15,7 @@ module VagrantPlugins # Read network interface names interfaces = [] - comm.sudo("ifconfig | grep enp0 | cut -f1 -d:") do |_, result| + comm.sudo("ifconfig | grep 'enp0\\|ens' | cut -f1 -d:") do |_, result| interfaces = result.split("\n") end