inspiration: https://github.com/Abuelodelanada/charm-dev-utils/tree/main/cloud-init
Install Multipass on MAC OS:
brew install multipass
Run make command to show help:
make
Expected 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 up
Reconnecting later:
make ssh
Destroy the machine when finished:
make destroy
Mounting 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