Setting up mac address (hyperv provisioner)

56 views
Skip to first unread message

Mindaugas Gelumbauskas

unread,
Dec 13, 2015, 5:46:27 PM12/13/15
to Vagrant
Hello,

Is it possible to setup a mac address if I'm using hyperv instead of virtualbox?
I've tried the following:
 
config.vm.network "private_network", ip: "192.168.1.50", :mac => "AABBCCDDEEFF"

and

  config.vm.provider "hyperv" do |hv|
    hv
.mac = "AABBCCDDEEFF" #made this up
 
end


but it's still generating it's own random mac address.

Please help.

Alvaro Miranda Aguilera

unread,
Dec 13, 2015, 7:39:12 PM12/13/15
to vagra...@googlegroups.com
Hello,

The only options seems to be:

http://docs.vagrantup.com/v2/hyperv/configuration.html

What's the problem you got ?
Is the fixed IP working? is the private_network working at all?

Not all the providers implement everything present in other providers.

Alvaro.
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/3ee86b0d-6a23-4eeb-a852-48f56d9a3614%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages