<div dir="ltr">I need to customize/configure the file /etc/network/interfaces (or 50-cloud-init.cfg) from Ubuntu and Debian cloud images. My environment uses IPv6 with stateless configuration so I have replace this:<br><br>--- generated by cloud-init ---<br>auto lo<br>iface lo inet loopback<br><br>auto ens3<br>iface ens3 inet dhcp<br>---<br><br>with this:<br><br>---<br>auto lo<br>iface lo inet loopback<br><br>auto ens3<br>iface ens3 inet dhcp<br>iface ens3 inet6 auto<br>  pre-up sleep 5<br>  dhcp 1<br>---<br><br>This configuration makes the instance generate theis IPv6s and get others configurations from DHCPv6. The 'sleep' is due a Ubuntu bug. <br><br>How can I do that? <br><br>I need to customize the image before upload to OpenStack? Is there any way to pass this configuration at boot time? Is there any way to force all instances to have this configuration?<br><br>I appreciate any help!<br><br>Thanks. <br><br clear="all"><div><div class="gmail_signature"><div dir="ltr">- JLC</div></div></div>
</div>