You should provide more details about the environment where you deploy the router and how you want to use Cloud-init (populate it with config, in other words).
cat user-data
#cloud-config
vyos_config_commands:
- set system host-name 'vyos-prod-ashburn'
- set system ntp server 1.pool.ntp.org
- set system ntp server 2.pool.ntp.org
- set interfaces ethernet eth1 address '192.0.2.247/24'
- set interfaces ethernet eth0 'dhcp'
Try adding the option::
-e keep_user=true
Keep default vyos user with password vyos in configuration when building an image with Cloud-init (default: false)
The log you provided was cleaned up before you got it - it does not contain parts that really matter. Most likely, because this was not the first boot of the system.
You should deploy VyOS in the way you want, boot for the first time, then recover access via the boot menu, boot again and grab the log file.
hmm i mean i found my mistake, but i don´t understand.
in user-data i filled up my test commands
edit user-data and filled in with following configs.
cloud-config
vyos_config_commands:
- set system host-name 'vyos-prod-ashburn'
- set system ntp server 1.pool.ntp1.org
- set system ntp server 2.pool.ntp1.org
meta-data is empty only created with touch meta-data
i have created a seed.iso
with this command mkisofs -joliet -rock -volid "cidata" -output seed.iso meta-data user-data
after this the vyos breaks.
Boot up the vyos without seed.iso it works as espected with the commands that will be used with the ansible-script but i need more commands.