From 2877d37a03d9ddf72f751cb3f8344ede169975b0 Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Sun, 8 Dec 2013 20:58:43 -0600 Subject: [PATCH] add ONBOOT and NM_CONTROLLED to redhat/network_static Fixes private networking on Centos 6. It seems using Network Manager (NM_CONTROLLED) to change an interface while running is a bad idea. I'm not sure of any specifics though. This is the only way I could get it to work. --- templates/guests/redhat/network_static.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/guests/redhat/network_static.erb b/templates/guests/redhat/network_static.erb index f403a7068..c28dd74cb 100644 --- a/templates/guests/redhat/network_static.erb +++ b/templates/guests/redhat/network_static.erb @@ -1,6 +1,8 @@ #VAGRANT-BEGIN # The contents below are automatically generated by Vagrant. Do not modify. +NM_CONTROLLED=no BOOTPROTO=none +ONBOOT=yes IPADDR=<%= options[:ip] %> NETMASK=<%= options[:netmask] %> DEVICE=eth<%= options[:interface] %>