Hi,
I’m trying to configure cloud-init on Vyos and used the cloud-init guide on VyOS page.
I’ve created the qcow image, created the 3 files following the examples only changing IP’s, created the seed.iso and deployed without a problem and everything worked and i was able to login with login/password vyos
The problem is when i try to do any changes in the user-data file i cannot login using vyos login/password.
For example add “set system name-server 1.1.1.1” or “set system login user vyos authentication encrypted-password password”. What I’ve tried is create another qcow image with “-e keep_user=true” but did not work
My user data is the same as the link example and only added name-server option
#cloud-config
vyos_config_commands:
- set system host-name ‘vyos-BRAS’
- set service ntp server 1.pool.ntp.org
- set service ntp server 2.pool.ntp.org
- delete interfaces ethernet eth0 address ‘dhcp’
- set interfaces ethernet eth0 address ‘198.51.100.2/30’
- set interfaces ethernet eth0 description ‘WAN’
- set interfaces ethernet eth1 address ‘10.0.0.1/24’
- set interfaces ethernet eth1 description ‘VLAN’
- set system name-server 1.1.1.1
- set protocols static route 0.0.0.0/0 next-hop ‘198.51.100.1’
After boot i can see only that the hostname changed
Using image vyos-1.5-rolling-202412031443-generic-amd64
Thanks