Multipass

From AWVVO
Revision as of 15:10, 24 March 2025 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Multipass is a lightweight VM manager developed by Canonical that lets you easily run Ubuntu instances on macOS, Windows, and Linux, ideal for development and testing.

Help

multipass -?
Usage: multipass [options] <command>
Create, control and connect to Ubuntu instances.

This is a command line utility for multipass, a
service that manages Ubuntu instances.

Options:
  -?, -h, --help  Displays help on commandline options
  -v, --verbose   Increase logging verbosity. Repeat the 'v' in the short
                  option for more detail. Maximum verbosity is obtained with 4
                  (or more) v's, i.e. -vvvv.

Available commands:
  alias         Create an alias
  aliases       List available aliases
  authenticate  Authenticate client
  clone         Clone an instance
  delete        Delete instances and snapshots
  exec          Run a command on an instance
  find          Display available images to create instances from
  get           Get a configuration setting
  help          Display help about a command
  info          Display information about instances or snapshots
  launch        Create and start an Ubuntu instance
  list          List all available instances or snapshots
  mount         Mount a local directory in the instance
  networks      List available network interfaces
  prefer        Switch the current alias context
  purge         Purge all deleted instances permanently
  recover       Recover deleted instances
  restart       Restart instances
  restore       Restore an instance from a snapshot
  set           Set a configuration setting
  shell         Open a shell on an instance
  snapshot      Take a snapshot of an instance
  start         Start instances
  stop          Stop running instances
  suspend       Suspend running instances
  transfer      Transfer files between the host and instances
  umount        Unmount a directory from an instance
  unalias       Remove aliases
  version       Show version details

Example to launch Ubuntu 24.04 LTS with 1 CPU and 2GB memory:

Launch an instance

multipass launch 24.10 --name ubuntu24 --disk 10G --cpus 1 --memory 2G

Delete a instance

multipass stop ubuntu24
multipass delete ubuntu24
multipass purge

Open shell on instance

multipass shell ubuntu24