For the record, below is the input to cloudinit.

Not that it matters, but for reference the underlying platform is Proxmox,so 
the below is merely a copy/paste from "qm cloudinit dump $vm_id network":

version: 1
config:
    - type: physical
      name: eth0
      mac_address: 'ff:ff:ff:ff:ff:ff'
      subnets:
      - type: static
        address: '192.0.2.60'
        netmask: '255.255.255.0'
        gateway: '192.0.2.62'
      - type: static6
        address: '2001:db8:aaa:bbb::ccc/64'
        gateway: '2001:db8:aaa:bbb::ddd
    - type: nameserver
      address:
      - '127.0.0.1'

Also for the record, my /etc/cloud/cloud.cfg:

disable_root: true
preserve_hostname: false
apt:
   preserve_sources_list: true
cloud_init_modules:
 - set_hostname
 - update_hostname
 - update_etc_hosts
cloud_config_modules:
 - runcmd
cloud_final_modules:
 - package-update-upgrade-install
 - write-files-deferred
 - power-state-change
system_info:
   distro: debian
   paths:
      cloud_dir: /var/lib/cloud/
      templates_dir: /etc/cloud/templates/
   package_mirrors:
     - arches: [default]
       failsafe:
         primary: https://deb.debian.org/debian
         security: https://deb.debian.org/debian-security
   ssh_svcname: ssh
   network:
      renderers:
       - networkd
      activators:
       - networkd

Reply via email to