yc compute instance create
Create a virtual machine instance
Command Usage
Syntax:
yc compute instance create <INSTANCE-NAME> [Flags...] [Global Flags...]
Flags
|
Flag |
Description |
|
|
A name of the instance. |
|
|
Specifies a textual description of the instance. |
|
|
A list of label KEY=VALUE pairs to add. For example, to add two labels named 'foo' and 'bar', both with the value 'baz', use '--labels foo=baz,bar=baz'. |
|
|
The zone of the instance to create. |
|
|
Metadata to be made available to the guest operating system running on the instance. |
|
|
Options set the access mode to instance's metadata. Possible property names:
|
|
|
Same as --metadata except that the value for the entry will be read from a local file. |
|
|
Creates user 'yc-user' and adds SSH key from specified file to authorized keys using cloud-config. |
|
|
If true, one-to-one NAT public IP will be created for the default network interface. Cannot be passed together with --network-interface |
|
|
If set, one-to-one NAT public IP will be created for the default network interface with the specified value. Cannot be passed together with --network-interface |
|
|
Creates and attaches persistent disks to the instance. Possible property names:
|
|
|
Attaches persistent disks to the instances. The specified disks must already exist. Possible property names:
|
|
|
Creates a new disk and uses it as a boot disk of the instance. Possible property names:
|
|
|
Uses an already existing disk as a boot disk of the instance. Possible property names:
|
|
|
Attaches filesystems to the instances. The specified filesystems must already exist. Possible property names:
|
|
|
Attaches local disks to the instances. Possible property names:
|
|
|
Network settings for the instance. Possible property names:
|
|
|
Adds a network interface to the instance. Possible property names:
|
|
|
Serial port settings for the instance. Possible property names:
|
|
|
Specifies how much memory instance should have in GB. You can also use M and T suffixes to specify smaller or greater size respectively. |
|
|
Specifies how many CPU cores instance should have. |
|
|
If provided, specifies baseline performance for a core in percent. |
|
|
Specifies how many GPUs instance should have. |
|
|
Specifies platform for the instance. |
|
|
Creates instance with specified hostname. |
|
|
Creates preemptible instance. |
|
|
Behaviour on maintenance events. Values: 'restart', 'migrate' |
|
|
Time between notification via metadata service and maintenance. |
|
|
Placement group to create the instance in. |
|
|
Placement group to create the instance in. |
|
|
Specifies placement group partition for the instance. |
|
|
Host group to create the instance in. |
|
|
Host group to create the instance in. |
|
|
Host to create the instance in. |
|
|
GPU cluster to create the instance in. |
|
|
GPU cluster to create the instance in. |
|
|
Service account, which token can be obtained inside VM from metadata service. |
|
|
Service account, which token can be obtained inside VM from metadata service. |
|
|
Reserved instance pool to create the instance in. |
|
|
Reserved instance pool to create the instance in. |
|
|
The folder ID against which all image and image family references will be resolved. |
|
|
Display information about the operation in progress, without waiting for the operation to complete. |
Global Flags
|
Flag |
Description |
|
|
Set the custom configuration file. |
|
|
Debug logging. |
|
|
Debug gRPC logging. Very verbose, used for debugging connection problems. |
|
|
Disable printing user intended output to stderr. |
|
|
Enable gRPC retries. By default, retries are enabled with maximum 5 attempts. |
|
|
Set the ID of the cloud to use. |
|
|
Set the ID of the folder to use. |
|
|
Set the name of the folder to use (will be resolved to id). |
|
|
Set the Cloud API endpoint (host:port). |
|
|
Set the OAuth token to use. |
|
|
Set the ID of the service account to impersonate. |
|
|
Disable opening browser for authentication. |
|
|
Set the output format: text (default), yaml, json, json-rest. |
|
|
Query to select values from the response using jq syntax |
|
|
Display help for the command. |
- Создание виртуальной машины в группе выделенных хостов
- Создание виртуальной машины на выделенном хосте
- Создайте виртуальную машину в другой зоне доступности с дисками из снимков
- Создайте ВМ из подготовленного образа
- Создать виртуальную машину из публичного образа
- Добавить виртуальную машину в группу размещения
- Создать виртуальную машину в группе размещения
- Создать новую ВМ с привязкой к пулу
- Включение консоли при создании ВМ из публичного образа
- К создаваемой ВМ
- Утрачены учетные данные пользователя ВМ
- Создайте виртуальную машину в другой зоне доступности с дисками из снимков
- К создаваемой ВМ
- Создайте ВМ с настроенной политикой обслуживания
- Создать виртуальную машину из набора дисков
- Создать виртуальную машину с дисками из снимков
- Создайте ВМ из подготовленного образа
- Создайте виртуальную машину, работающую на оборудовании поколения Gen 2
- Создать виртуальную машину из публичного образа Linux
- Создать прерываемую ВМ
- Создание виртуальной машины с GPU
- Создание виртуальной машины с пользовательским скриптом конфигурации
- Создать виртуальную машину с метаданными из переменных окружения
- Создать ВМ с доступом к секрету Yandex Lockbox
- Настроить параметры сервиса метаданных ВМ