inspiration: https://github.com/Abuelodelanada/charm-dev-utils/tree/main/cloud-init
Install Multipass on MAC OS:
brew install multipassRun make command to show help:
makeExpected output:
up Start VM
down Stop VM
ssh SSH to VM
destroy Destroy VM
help Show this help
Start virtual machine with Juju by running:
make upReconnecting later:
make sshDestroy the machine when finished:
make destroyMounting is configured to attach the current directory into VM inside home (e.g. ~/project if your directory is called project).
To be able to mount your project inside the VM on MacOS make sure to allow
System settings > Privacy > Full disk access for multipassd.
Feel free to integrate into your Juju charm project.
wget https://raw.githubusercontent.com/huntdatacenter/multipass-juju/main/juju.yaml
wget https://raw.githubusercontent.com/huntdatacenter/multipass-juju/main/Makefile