From 74e71d5a61487253e865c966da8a639c9485c9fe Mon Sep 17 00:00:00 2001 From: Warren Volz Date: Fri, 16 Aug 2024 13:11:26 -0600 Subject: [PATCH 1/2] use only private_network for vmware_fusion --- scripts/homestead.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/homestead.rb b/scripts/homestead.rb index 1fd98ecaf..0eee446b9 100644 --- a/scripts/homestead.rb +++ b/scripts/homestead.rb @@ -24,10 +24,16 @@ def self.configure(config, settings) config.vm.hostname = settings['hostname'] ||= 'homestead' # Configure A Private Network IP - if settings['ip'] != 'autonetwork' - config.vm.network :private_network, ip: settings['ip'] ||= '192.168.56.56' + if ['vmware_desktop', 'vmware_fusion'].include? ENV['VAGRANT_DEFAULT_PROVIDER'] + if RUBY_PLATFORM.match(/darwin/) + config.vm.network :private_network + end else - config.vm.network :private_network, ip: '0.0.0.0', auto_network: true + if settings['ip'] != 'autonetwork' + config.vm.network :private_network, ip: settings['ip'] ||= '192.168.56.56' + else + config.vm.network :private_network, ip: '0.0.0.0', auto_network: true + end end # Configure Additional Networks From 7614ac99ed8e6d5eb1304821bb9babe5812dd4e3 Mon Sep 17 00:00:00 2001 From: Warren Volz Date: Fri, 16 Aug 2024 13:58:36 -0600 Subject: [PATCH 2/2] only apply vmware network changes for bigsur+sonoma --- scripts/homestead.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/homestead.rb b/scripts/homestead.rb index 0eee446b9..011db44e6 100644 --- a/scripts/homestead.rb +++ b/scripts/homestead.rb @@ -25,7 +25,7 @@ def self.configure(config, settings) # Configure A Private Network IP if ['vmware_desktop', 'vmware_fusion'].include? ENV['VAGRANT_DEFAULT_PROVIDER'] - if RUBY_PLATFORM.match(/darwin/) + if RUBY_PLATFORM.match(/darwin2/) config.vm.network :private_network end else