Hello.

Where you will be building this?

Virtualbox and VMWare (desktop) use DHCP from the virtual network.

For VMWare ESXi, you can use kickstart + floppy to load the kickstart.

Then, since this VM will be used only for build my suggestion will be:

- Use fix IP for build, always the same ip, so kickstart is easier.
- Use scripts in packer to assign a fixed IP to the vm.

If the instructions are too high level and you need something more
grounded, let me know

Put your repo in github and I can send a PR

Alvaro.

On Fri, Oct 28, 2016 at 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.
>



-- 
Alvaro

-- 
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/CAHqq0eyaKLuqfdhVS7SP0NXZVN8caxfeak0g%3Dc87HHQ31OKg8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to