ezmomi
ezmomi copied to clipboard
add dhcp option
Currently, only static IPs are possible, so definitely need to add in the dhcp option, which should probably be default.
I don't want to create a new issue for this, so I add my comments here. I'm also looking for a DHCP option. When I played around with the pyVmomi clone samples, I could get a new cloned VM with DHCP, as my source Template has been configured with DHCP. Would like to have this option here as well. At the moment I have to come up with some side part solution for the Fixed IP assignment. But we have a DHCP pool for our VMs, and would like to use that. I already modified this one here to get me the IP from a VM once it has been cloned.
With the code from @jctanner I was able to get DHCP working. But at the moment only with one device. I will try to follow your advise, and make it like ips with several arguments.
Hi, I'm having the same need. Do you have plans to merge the dhcp functionality into your main repo?
I'd much rather use your repo than forking and having to rebase.
Thanks for any insight into your plan.
Hi ,any update on this , i want to create vms from different templates with dhcp option , any thoughts?