Difference between revisions of "Multipass launch"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
The <code>[[multipass]] launch</code><ref>https://multipass.run/docs/launch-command</ref> 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 <code>--name</code> option. As of August 2020 no [[renaming]] option is available<ref>https://github.com/canonical/multipass/issues/255</ref>.
 
The <code>[[multipass]] launch</code><ref>https://multipass.run/docs/launch-command</ref> 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 <code>--name</code> option. As of August 2020 no [[renaming]] option is available<ref>https://github.com/canonical/multipass/issues/255</ref>.
 +
* https://multipass.run/docs/launch-command
  
* https://multipass.run/docs/launch-command
+
== Commands ==
 
* <code>[[multipass launch --help]]</code>
 
* <code>[[multipass launch --help]]</code>
 
multipass launch --name ubuntu-vm
 
launch failed: failed to download from 'http://cloud- images.ubuntu.com/releases/server/releases/bionic/release-20200129.1/ubuntu-18.04-server-cloudimg-amd64.img': Network timeout
 
 
 
* <code>multipass launch [[lts]]</code>
 
* <code>multipass launch [[lts]]</code>
 
* <code> multipass launch [[lts]] --name TEST</code>
 
* <code> multipass launch [[lts]] --name TEST</code>

Revision as of 17:02, 28 May 2022

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

  • multipass launch --name ubuntu-lts-custom --cloud-init cloud-config.yaml

To find available images execute: multipass find

Examples

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

multipass launch lts
launch failed: The following errors occurred:
Instance stopped while starting
multipass launch
launch failed: CPU does not support KVM extensions.
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

Related commands

See also

  • https://multipass.run/docs/launch-command
  • https://github.com/canonical/multipass/issues/255
  • Advertising: