diff --git a/lib/vagrant/action/vm/network.rb b/lib/vagrant/action/vm/network.rb index 35375aa7f..aa9b74d29 100644 --- a/lib/vagrant/action/vm/network.rb +++ b/lib/vagrant/action/vm/network.rb @@ -65,6 +65,9 @@ module Vagrant adapter.enabled = true adapter.attachment_type = :host_only adapter.host_interface = network_name(network_options) + if network_options[:mac] + adapter.mac = network_options[:mac] + end adapter.save end end diff --git a/lib/vagrant/config/vm.rb b/lib/vagrant/config/vm.rb index 4631144fb..0c8c510c7 100644 --- a/lib/vagrant/config/vm.rb +++ b/lib/vagrant/config/vm.rb @@ -55,6 +55,7 @@ module Vagrant :ip => ip, :netmask => "255.255.255.0", :adapter => 1, + :mac = nil, :name => nil }.merge(options || {})