I tried again the tutorial on LXD 3.0.0 and it worked. I got the /tmp/simos_was_here file.
Note that it takes some time to run that command because it first has to do a package upgrade.
To figure out what is going on, you can get a shell into the container as soon as you launch it, and then run
ps ax to see the processes. You will be able to see the package upgrade (
apt commands and so on) which takes a minute or two to complete.
You mention that
python2.7-minimal is not installed on the Ubuntu 18.04 container image.
That is correct; on Ubuntu 18.04, there is no Python 2 whatsoever in the official images and ISOs.
Ubuntu 18.04 is fully transitioned to Python 3.
Here is the output from a freshly launched 18.04 container. The package is there, but not installed.
root@cloudinit:/tmp# apt policy python2.7-minimal
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
To verify that the
cloud-init commands have made it to the container, check (in the container) the following:
root@cloudinit:~# cat /var/lib/cloud/seed/nocloud-net/user-data
- [touch, /tmp/simos_was_here]
By doing this, you verify that the container was created with the correct profile that has the