I just copied the default profile and added the user-data section.
When I start a new instance:
lxc launch ubuntu:lts mdb3 -p mariadb
Not only is mariadb-server not installed - I cannot even see the package as available until I do an apt-get update to refresh the repositories. Which I would’ve thought was covered by package_update: true in the profile…
Where did I go wrong here?
edit - On Ubuntu 18.04 lxd version 4.1 - installed from snap
Ok I ran through these steps and that seems to have solved the problem. Thanks!
Seems kinda odd though… I wonder if it was just because I missed the #cloud-config part? or I had some stuff left over from the default config that was conflicting. Maybe, I had a spacing issue or something too… in any event, thanks for the help.
Go into the containers and look in the files /var/log/cloud-init.log & /var/log/cloud-init-output.log but its probably because it didnt start with #cloud-config