# Launch an instance (by default you get the current Ubuntu LTS)
multipass launch --name ubuntu-lts
# Run commands in that instance, try running bash (logout or ctrl-d to quit)
multipass exec ubuntu-lts -- lsb_release -a
*****************************************************************************
# Pass a cloud-init metadata file to an instance on launch see using cloud-init with multipass for more details
multipass launch -n ubuntu-lts-custom --cloud-init cloud-config.yaml
*****************************************************************************
# See your instances
multipass list
# Stop and start instances
multipass stop ubuntu-lts ubuntu-lts-custom
multipass start ubuntu-lts
# Clean up what you don’t need
multipass delete ubuntu-lts-custom
multipass purge
# Find alternate images to launch with multipass
multipass find
# Get help
multipass help
multipass help <command>
# attention !!!
Now don’t forget you still have ubuntu-lts running :)
how to use multipass for ubuntu
最新推荐文章于 2025-06-16 07:16:16 发布