Skip to content

Instantly share code, notes, and snippets.

@alexlopes
Last active August 14, 2024 18:00
Show Gist options
  • Save alexlopes/8f0a2e40342a99ad8b691bdd2ff0500b to your computer and use it in GitHub Desktop.
Save alexlopes/8f0a2e40342a99ad8b691bdd2ff0500b to your computer and use it in GitHub Desktop.
Multipass

https://github.com/canonical/multipass

Find available images

multipass find

Launch a fresh instance

multipass launch name

Check out the running instances

multipass list

Connect to a running instance

multipass shell dancing-chipmun

Run commands inside an instance from outside

multipass exec dancing-chipmunk -- cmd

Stop an instance to save resources

multipass stop dancing-chipmunk

Delete the instance

multipass delete dancing-chipmunk
multipass purge

Change resource usages

multipass stop handsome-ling
multipass set local.handsome-ling.cpus=2
multipass set local.handsome-ling.disk=10G
multipass set local.handsome-ling.memory=4G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment