Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't request specific IP for VMware Fusion on Mac OS BigSur and greater #1984

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions scripts/homestead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(/darwin2/)
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
Expand Down