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.
--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/ef7f771a-7b1a-48af-814c-571e0d6e746d%40googlegroups.com.
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/ef7f771a-7b1a-48af-814c-571e0d6e746d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I can build on the server directly but I need to store the built images and keep them in, say, Nexus. Smaller is better...
Anyhow, the floppy gave me an idea: how reasonable is it to have the machine built with static ip but such that if a floppy is present on boot that it copies over eth1-cfg with what's on disk and does a network restart?
This would allow for post-configuration of the image depending on what's in the floppy mount per VM.
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/14739218-f2ec-454e-a9c8-1947b048b530%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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.