From 4340bd2e935f48a2c4fce38fbc6416849f253853 Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Tue, 13 Oct 2015 12:00:25 +0200 Subject: [PATCH] Remove the default route hack This is not required as a multiple default routes seem not working as expected, hence removing the hack. The default route via eth0 should be just preserved as is. Signed-off-by: Bogdan Dobrelya --- Vagrantfile | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 9cfc7132..f7b888f8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -88,11 +88,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| v.name = "solar-dev" end - # FIXME(bogdando) a hack to preserve default vbox route via NAT interface - config.vm.provision "shell", privileged: true, - run: "always", - inline: "eval `route -n | awk '{ if ($8 ==\"eth0\" && $2 == \"10.0.2.2\") print \"ip ro replace default via 10.0.2.2 metric 1\"; }'`" - config.vm.provider :libvirt do |libvirt| libvirt.driver = 'kvm' libvirt.memory = MASTER_RAM @@ -144,11 +139,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vbguest.auto_update = false end - # FIXME(bogdando) a hack to preserve default vbox route via NAT interface - config.vm.provision "shell", privileged: true, - run: "always", - inline: "eval `route -n | awk '{ if ($8 ==\"eth0\" && $2 == \"10.0.2.2\") print \"ip ro replace default via 10.0.2.2 metric 1\"; }'`" - config.vm.provider :virtualbox do |v| boot_order(v, ['net', 'disk']) v.customize [