boxcutter / centos

Virtual machine templates for CentOS written in legacy JSON
Apache License 2.0
424 stars 199 forks source link

Apply a static IP address #49

Closed mrjcleaver closed 8 years ago

mrjcleaver commented 8 years ago

Hi, I want to apply a static IP address to a box derived from this one.

Is a good way to do this using custom-script.sh? I'm leery of changing ks.cfg bootproto to static because I believe packer needs the VM to send a DHCP request so they know where each other are.

I appreciate I could post-process the my vmware-iso with vmware-vmx to add the script... I was trying to avoid a multi-step process.

Thanks, Martin.

mrjcleaver commented 8 years ago

Okay, well, I implemented this as described.