diff --git a/plugins/providers/virtualbox/driver/base.rb b/plugins/providers/virtualbox/driver/base.rb index 165c0e15a..5dfb23aa5 100644 --- a/plugins/providers/virtualbox/driver/base.rb +++ b/plugins/providers/virtualbox/driver/base.rb @@ -327,6 +327,7 @@ module VagrantPlugins # by just reading stdout and don't expect the OS to just inject # garbage into it. old_dyld_lib_path = ENV.delete("DYLD_LIBRARY_PATH") + old_ld_lib_path = ENV.delete("LD_LIBRARY_PATH") Vagrant::Util::Busy.busy(int_callback) do Vagrant::Util::Subprocess.execute(@vboxmanage_path, *command, &block) @@ -335,6 +336,7 @@ module VagrantPlugins # Reset the library path if it was set before. See above comments # for more information on why this was unset in the first place. ENV["DYLD_LIBRARY_PATH"] = old_dyld_lib_path if old_dyld_lib_path + ENV["LD_LIBRARY_PATH"] = old_ld_lib_path if old_ld_lib_path end end end