Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.18 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.18 KB

Cloud Init Usage

The current cloud-init is tailored towards Ubuntu

Testing cloud-init locally for free

1. Install Multipass

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:

2. Run

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.

3. Use

Check out existing VMs

multipass list

Open shell of dusknode VM

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.

Restart multipass on linux

sudo snap restart multipass.multipassd