Difference between revisions of "Lxc launch"
Jump to navigation
Jump to search
(Created page with " lxc launch ubuntu:18.04 c1 This client hasn't been configured to use a remote LXD server yet. As your platform can't run native Linux instances, you must connect to a remot...") Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | lxc launch ubuntu:18.04 c1 | + | {{lowercase}} |
+ | [[lxc]] launch ubuntu:18.04 c1 | ||
This client hasn't been configured to use a remote LXD server yet. | This client hasn't been configured to use a remote LXD server yet. | ||
As your platform can't run native Linux instances, you must connect to a remote LXD server. | As your platform can't run native Linux instances, you must connect to a remote LXD server. | ||
+ | |||
+ | If you already added a remote server, make it the default with "[[lxc remote]] switch NAME". | ||
+ | To easily setup a local [[LXD server]] in a virtual machine, consider using: https://multipass.run | ||
+ | |||
+ | |||
+ | lxc launch ubuntu:18.04 c1 | ||
+ | Creating c1 | ||
+ | Starting c1 | ||
+ | |||
+ | |||
+ | <pre> | ||
+ | lxc launch | ||
+ | Description: | ||
+ | Create and start instances from images | ||
+ | |||
+ | Usage: | ||
+ | lxc launch [<remote>:]<image> [<remote>:][<name>] [flags] | ||
+ | |||
+ | Examples: | ||
+ | lxc launch ubuntu:18.04 u1 | ||
+ | |||
+ | lxc launch ubuntu:18.04 u1 < config.yaml | ||
+ | Create and start the instance with configuration from config.yaml | ||
+ | |||
+ | Flags: | ||
+ | -c, --config Config key/value to apply to the new instance | ||
+ | --console string[="console"] Immediately attach to the console | ||
+ | --empty Create an empty instance | ||
+ | -e, --ephemeral Ephemeral instance | ||
+ | -n, --network Network name | ||
+ | --no-profiles Create the instance with no profiles applied | ||
+ | -p, --profile Profile to apply to the new instance | ||
+ | -s, --storage Storage pool name | ||
+ | --target Cluster member name | ||
+ | -t, --type Instance type | ||
+ | --vm Create a virtual machine | ||
− | + | Global Flags: | |
− | + | --debug Show all debug messages | |
+ | --force-local Force using the local unix socket | ||
+ | -h, --help Print help | ||
+ | --project string Override the source project | ||
+ | -q, --quiet Don't show progress information | ||
+ | -v, --verbose Show all information messages | ||
+ | --version Print version number | ||
+ | </pre> | ||
+ | == Related commands == | ||
+ | * <code>[[multipass launch]]</code> | ||
+ | * <code>[[snap info]]</code> | ||
+ | * <code>[[docker start]]</code> | ||
== See also == | == See also == | ||
* {{lxc}} | * {{lxc}} | ||
+ | |||
+ | |||
+ | [[Category:LXC]] |
Latest revision as of 06:04, 18 October 2021
lxc launch ubuntu:18.04 c1 This client hasn't been configured to use a remote LXD server yet. As your platform can't run native Linux instances, you must connect to a remote LXD server. If you already added a remote server, make it the default with "lxc remote switch NAME". To easily setup a local LXD server in a virtual machine, consider using: https://multipass.run
lxc launch ubuntu:18.04 c1 Creating c1 Starting c1
lxc launch Description: Create and start instances from images Usage: lxc launch [<remote>:]<image> [<remote>:][<name>] [flags] Examples: lxc launch ubuntu:18.04 u1 lxc launch ubuntu:18.04 u1 < config.yaml Create and start the instance with configuration from config.yaml Flags: -c, --config Config key/value to apply to the new instance --console string[="console"] Immediately attach to the console --empty Create an empty instance -e, --ephemeral Ephemeral instance -n, --network Network name --no-profiles Create the instance with no profiles applied -p, --profile Profile to apply to the new instance -s, --storage Storage pool name --target Cluster member name -t, --type Instance type --vm Create a virtual machine Global Flags: --debug Show all debug messages --force-local Force using the local unix socket -h, --help Print help --project string Override the source project -q, --quiet Don't show progress information -v, --verbose Show all information messages --version Print version number
Related commands[edit]
See also[edit]
Advertising: