mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# multipass
|
|
|
|
> Manage Ubuntu virtual machines using native hypervisors.
|
|
> More information: <https://documentation.ubuntu.com/multipass/en/latest/reference/command-line-interface/>.
|
|
|
|
- List the aliases that can be used to launch an instance:
|
|
|
|
`multipass find`
|
|
|
|
- Launch a new instance, set its name and use a cloud-init configuration file:
|
|
|
|
`multipass launch {{[-n|--name]}} {{instance_name}} --cloud-init {{configuration_file}}`
|
|
|
|
- List all the created instances and some of their properties:
|
|
|
|
`multipass list`
|
|
|
|
- Start a specific instance by name:
|
|
|
|
`multipass start {{instance_name}}`
|
|
|
|
- Show the properties of an instance:
|
|
|
|
`multipass info {{instance_name}}`
|
|
|
|
- Open a shell prompt on a specific instance by name:
|
|
|
|
`multipass shell {{instance_name}}`
|
|
|
|
- Delete an instance by name:
|
|
|
|
`multipass delete {{instance_name}}`
|
|
|
|
- Mount a directory into a specific instance:
|
|
|
|
`multipass mount {{path/to/local_directory}} {{instance_name}}:{{path/to/target_directory}}`
|