Enabling a software-accelerated network
You can enable a software-accelerated network when creating or updating a VM.
Warning
This feature is only available upon agreement with your account manager.
To enable a software-accelerated network on an existing VM:
- In the management console
, select the folder the VM belongs to. - Select Compute Cloud.
- In the line with the appropriate VM, click
and select Stop. - In the window that opens, click Stop.
- Wait for the VM status to change to
Stopped
, click , and select Edit. - Under Computing resources, select Software network acceleration.
- Click Save changes.
- Click Start in the top-right corner.
- In the window that opens, click Start.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the CLI command for updating VM parameters:
yc compute instance update --help
-
Get a list of VMs in the default folder:
yc compute instance list
Result:
+----------------------+-----------------+---------------+---------+----------------------+ | ID | NAME | ZONE ID | STATUS | DESCRIPTION | +----------------------+-----------------+---------------+---------+----------------------+ | fhm0b28lgfp4******** | first-instance | ru-central1-a | RUNNING | my first vm via CLI | | fhm9gk85nj7g******** | second-instance | ru-central1-a | RUNNING | my second vm via CLI | +----------------------+-----------------+---------------+---------+----------------------+
-
Select the
ID
orNAME
of the relevant VM and stop it. For example, to stop a VM namedfirst-instance
, run this command:yc compute instance stop first-instance
-
Enable a software-accelerated network:
-
Run this command:
yc compute instance update first-instance \ --network-settings type=software-accelerated
Where
--network-settings
is the flag that switches the network type.Result:
id: fhm0b28lgfp4******** folder_id: b1gbnv36zqf5******** created_at: "2023-05-24T09:28:11Z" name: first-instance zone_id: ru-central1-a platform_id: standard-v3 resources: memory: "2147483648" cores: "2" core_fraction: "100" status: STOPPED ... network_settings: type: SOFTWARE_ACCELERATED placement_policy: {}
-
Run the VM:
yc compute instance start first-instance
-
To disable a software accelerated network, stop the VM and run the command:
yc compute instance update first-instance \
--network-settings type=standard