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.
This commit is contained in:
Pavel Karoukin 2014-05-20 02:29:13 +02:00
parent 5a55b6967d
commit 6fc1dd7b8a
1 changed files with 1 additions and 1 deletions

View File

@ -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