But it isn’t being executed - python2.7-minimal is not installed and no /tmp/simos_was_here file exists on either test3 or test6. I created test3 with the launch command. test6 was created through init and start.
Python2.7-minimal is a package available on Bionic. As I understand it, the profile I have setup up should cause cloud-init to install the package when the container is inited.
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.
Ok - it’s definitely the image. I switched to ubuntu:18.04 and the python2.7-minimal is being installed.
Is there are any current documentation which lists the image servers available and what their differences are? How does images: differ from ubuntu: and how do I discover available image servers.
Thx for the help - got me asking the right questions.
You can see all the images on each remote with lxc image list ubuntu: and lxc image list images:. Not sure where can you find information about the images besides of what is in the description field.