The current cloud-init is tailored towards Ubuntu
Multipass is able to provide Ubuntu VMs that can be initialized with cloud-init to simulate cloud deployments locally. It is available for Linux, Windows and MacOS.
Additional resources:
multipass launch -n dusknode --cloud-init dusknode.yaml
This will create a VM with the latest Ubuntu LTS image and apply the dusknode.yml
cloud-init configuration.
This will create a user "dusk" along with some other configuation and the execution of the node-installer.sh
script. Ensure your SSH public key is added to the ssh_authorized_keys field in the YAML configuration before applying it.
multipass list
multipass shell dusknode
You can either use the Multipass GUI or use the CLI. Running sudo su dusk
in the respective VM, will log you in as the dusk user who has the node installed.
sudo snap restart multipass.multipassd