The best thing you can do is to install a dhcp server. It wasn't really clear what environment you are deploying your VM's to. But one trick you can look into is building a generic vm image which reads static network setup from a floppy and use it to launch VM's with specific IP's by changing a the content of the floppy.
If you describe your scenario you can get some more specific advice. On Oct 28, 2016 11:21 PM, "Martin Cleaver" <[email protected]> wrote: Assuming CentOS 6.8, and no DHCP server, is there a shortcut to: Using Packer in a loop to create a set of machines each with a distinct IP address? It seems I either have to: - run a full bootstrap once with each IP address, resulting in a set of VMs or: - make a base image that has a well-known IP address, then use vmware-vmx to iterate from the base image to each in the set. Is there a better way? Thanks, Martin -- 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/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/ msgid/packer-tool/ef7f771a-7b1a-48af-814c-571e0d6e746d%40googlegroups.com <https://groups.google.com/d/msgid/packer-tool/ef7f771a-7b1a-48af-814c-571e0d6e746d%40googlegroups.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- 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/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt-MGThfCTYi-A7h_zaaMr%2BytSWtHf1siZGhbU9_Mecx5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
