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

cannot set MAC address in network interface in vsphere provider #5992

Closed
godfryd opened this issue Apr 2, 2016 · 7 comments
Closed

cannot set MAC address in network interface in vsphere provider #5992

godfryd opened this issue Apr 2, 2016 · 7 comments

Comments

@godfryd
Copy link

godfryd commented Apr 2, 2016

Currently it is only possible to set MAC address when one is deploying VM to vsphere.
We are using static DHCP where we allocate IP address to MAC address.
So we would need to be able to configure MAC address only on network interface.
The system will get IP from DHCP when it is booted.
Could you add support for that?

@chrislovecnm
Copy link
Contributor

More info please

@godfryd
Copy link
Author

godfryd commented Apr 16, 2016

What info is needed? Terraform is not able to set MAC address of deployed vm.

@chrislovecnm
Copy link
Contributor

chrislovecnm commented Apr 16, 2016

At this point static macs are not supported. If you like you can submit a PR.

@godfryd every time I have used the plugin vSphere sets the mac address, not terraform. What is your exact use case? This is case that is not supported currently. Just want to make sure that you are manually setting mac addresses with terraform.

Here are the docs for vSphere:

http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.vsphere.networking.doc%2FGUID-1C9C9FA5-2D2D-48DA-9AD5-110171E8FD36.html

Here are the use cases:

  • Generated MAC addresses
    • Assigned by vCenter Server
    • Assigned by the ESXi host
  • Manually set MAC addresses
  • Generated for legacy virtual machines, but no longer used with ESXi.

@chrislovecnm
Copy link
Contributor

@godfryd major edit on the last post, as I did not read 'STATIC MACS' in your issue. My mistake. At this point terraform provider does not have the capability to set a mac address. If that is indeed your use case, please feel free to submit a PR. You may want to verify that the underlying API supports that first.

Again sorry that I did not read your issue as well as I could.

@godfryd
Copy link
Author

godfryd commented Apr 18, 2016

Yes, in our environment we are able to use only manually assigned MAC addresses. So we need terraform to control MAC addresses and preserve them when given virtual machine is being recreated. Otherwise we will be getting randomly generated MAC to the same VM.

@chrislovecnm
Copy link
Contributor

Please take a look at #6966 and see if this meets your needs.

@ghost
Copy link

ghost commented Apr 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants