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

setting static ip or define mac does not work on vagrant 2.2.0 and provider hyperv #10329

Open
vchrizz opened this issue Oct 24, 2018 · 0 comments

Comments

@vchrizz
Copy link

vchrizz commented Oct 24, 2018

Vagrant version

2.2.0

Host operating system

Windows Server 2012 R2 [Version 6.3.9600] (German)

Guest operating system

generic/debian9

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "generic/debian9"
  config.vm.network "public_network", bridge: "<hvhost_nic>", mac: "00155d0dabc7", ip: "192.168.1.2", type: "static", auto_config: false
end

Debug output

https://gist.github.com/vchrizz/d2711be3d206e69a68c5288ba5b6d7a1

Expected behavior

Expected the started VM to have the defined IP (or at least MAC to set DHCP-reservation).

Actual behavior

Settings regarding networking are mostly ignored or not used (thankfully at least defining the bridge interface works).
I tried some of the options alone as also combined in different order, nothing worked to set a static ip in any way, vm always is set to DHCP. Also when only setting MAC to a specific value, its a new one every "vagrant up", so this way I can not even set DHCP reservation.

Steps to reproduce

  1. vagrant init generic/debian9
  2. set in Vagrantfile: config.vm.network "public_network", bridge: "<hvhost_nic>", mac: "00155d0dabc7", ip: "192.168.1.2", type: "static", auto_config: false
  3. vagrant up

References

I found similar issues but none of them regarding provider hyperv...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants