The demo-it
script here will do the following:
- download kernel and initrd from published MAAS images
- download the minimal squashfs image from cloud-images.ubuntu.com.
We use the minimal image just because it is smaller than the maas provided ephemeral image. We could use that just as well. - create cloud-init 'user-data' and 'meta-data'
- boot qemu with the provided kernel and initrd use the kernel command line to:
- provide it with a 'rooturl` to the squashfs image
- use overlayfs to give writable space
- provide cloud-init with a 'nocloud-net' datasource
Once you run, you can log in with 'ubuntu' and 'passw0rd'.
- The code as it is has a hard coded 'baseurl'. Better would be to use query the simplestream data at http://images.maas.io/ephemeral-v3/stable/streams/v1/ to get the latest versions.