Difference between revisions of "Multipass launch"
Jump to navigation
Jump to search
↑ https://multipass.run/docs/launch-command
↑ https://github.com/canonical/multipass/issues/255
(10 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
== Commands == | == Commands == | ||
* <code>[[multipass launch --help]]</code> | * <code>[[multipass launch --help]]</code> | ||
− | * <code>[[multipass launch | + | * <code>[[multipass launch --name]] TEST 23.10 && [[multipass connect]] TEST</code> |
* <code>[[multipass launch lts]]</code> | * <code>[[multipass launch lts]]</code> | ||
* <code> multipass launch [[lts]] --name MYTEST</code> | * <code> multipass launch [[lts]] --name MYTEST</code> | ||
* <code>multipass launch [[jammy]]</code> or <code>[[multipass launch 22.04]]</code> | * <code>multipass launch [[jammy]]</code> or <code>[[multipass launch 22.04]]</code> | ||
− | * <code> multipass launch --[[cpus]] 2 -- | + | * <code> multipass launch --[[cpus]] 2 --memory 8G [[--disk]] 25G --name MYNEWVM && [[multipass connect]] MY_NEW_VM</code> |
− | * <code> multipass launch --[[cpus]] 2 -- | + | * <code> multipass launch --[[cpus]] 2 --memory 8G --disk 25G --name MYNEWVM</code> |
− | * <code> multipass launch --[[cpus]] 2 -- | + | * <code> multipass launch --[[cpus]] 2 --memory 8G --name MYNEWVM</code> |
− | * <code> multipass launch --[[cpus]] 2 --name | + | * <code> multipass launch --[[cpus]] 2 --name MYNEWVM</code> |
− | * <code> multipass launch --name | + | * <code> [[multipass launch --name]] MYNEWVM 22.10</code> |
* <code> multipass launch --name ubuntu-lts-custom --[[cloud-init]] cloud-config.yaml</code> | * <code> multipass launch --name ubuntu-lts-custom --[[cloud-init]] cloud-config.yaml</code> | ||
Line 33: | Line 33: | ||
* <code>[[multipass launch --help]]</code> | * <code>[[multipass launch --help]]</code> | ||
+ | |||
+ | * <code>[[multipass launch minikube]]</code> | ||
== Examples with errors == | == Examples with errors == | ||
Line 55: | Line 57: | ||
multipass launch [[21.10]] | multipass launch [[21.10]] | ||
launch failed: Operation canceled | launch failed: Operation canceled | ||
+ | |||
+ | multipass launch -n myfedora https://download.fedoraproject.org/pub/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64.raw.xz | ||
+ | launch failed: http and file based images are not supported | ||
== Related commands == | == Related commands == |
Latest revision as of 18:17, 30 May 2024
The multipass launch
[1] command without any argument will create and start a new instance based on the default image, using a random generated name, you can configure it using --name
option. As of August 2020 no renaming option is available[2].
Commands[edit]
multipass launch --help
multipass launch --name TEST 23.10 && multipass connect TEST
multipass launch lts
multipass launch lts --name MYTEST
multipass launch jammy
ormultipass launch 22.04
multipass launch --cpus 2 --memory 8G --disk 25G --name MYNEWVM && multipass connect MY_NEW_VM
multipass launch --cpus 2 --memory 8G --disk 25G --name MYNEWVM
multipass launch --cpus 2 --memory 8G --name MYNEWVM
multipass launch --cpus 2 --name MYNEWVM
multipass launch --name MYNEWVM 22.10
multipass launch --name ubuntu-lts-custom --cloud-init cloud-config.yaml
To find available images execute: multipass find
Examples[edit]
multipass launch impish Launched: my-open-kit
multipass launch 21.10 --name my_VM Retrieving image: 6% Verifying image: \ Starting / Waiting for initialization to complete - Launched: my_VM
It will create a 5GB Ubuntu machine with 1 CPU and 1 GB memory
Examples with errors[edit]
multipass launch lts launch failed: The following errors occurred: Instance stopped while starting
multipass launch
launch failed: CPU does not support KVM extensions.
multipass launch
launch failed: Downloaded image hash does not match
Solution: review /Library/Logs/Multipass/multipassd.log
Under macOS multipass or VMware VMs.
multipass launch launch failed: cannot connect to the multipass socket Please ensure multipassd is running and '/var/snap/multipass/common/multipass_socket' is accessible
multipass launch 21.10 launch failed: Operation canceled
multipass launch -n myfedora https://download.fedoraproject.org/pub/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64.raw.xz launch failed: http and file based images are not supported
Related commands[edit]
multipass find
multipass list
multipass connect
multipass start
multipass delete VM_NAME --purge
ormultipass purge
virtinst
:virt-install
virt-builder
lxc launch
apt update -y && apt upgrade -y
uvt-kvm create
See also[edit]
multipass launch
multipass
: [connect
|shell
|stop
|start
|restart
|delete
|launch | set | get
|info
|list
|find | tranfer | purge | suspend | version ]
multipass help
- Multipass,
MULTIPASS_STORAGE
,/Library/Logs/Multipass/multipassd.log
,/var/run/multipass_socket
, Multipass releases, multipassd
Advertising: