Updating a VM
After you create a VM, you can edit its name, description, tags, platform, or metadata.
For information about editing a VM configuration, see Changing VM computing resources.
To update a VM:
- In the management console
, select the folder the VM belongs to. - Select Compute Cloud.
- Click the name of the desired VM.
- Click Edit VM.
- Edit the VM parameters. Rename the machine, for example, by editing the Name field.
- Click Save changes.
If you don't have the Nebius AI 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:
ncp compute instance update --help
-
Get a list of VMs:
ncp compute instance list
Result:
+----------------------+-----------------+---------------+---------+ | ID | NAME | ZONE ID | STATUS | +----------------------+-----------------+---------------+--------- | fhm0b28lgfp4tkoa3jl6 | first-instance | eu-north1-c | RUNNING | | fhm9gk85nj7gcoji2f8s | second-instance | eu-north1-c | RUNNING | +----------------------+-----------------+---------------+---------
-
Select the VM
ID
orNAME
(for example,first-instance
). -
Change the VM parameters. For example, rename it:
ncp compute instance update first-instance --new-name windows-vm
Note
Changing the VM name does not change the host name or the FQDN. For more information about generating FQDN names, see Host name and internal FQDN.
Examples
Viewing a list of configurable parameters
To view the list of configurable parameters, run the command:
ncp compute instance update --help
Changing the name
To update a VM name, perform the following steps:
If you don't have the Nebius AI 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.
-
Get a list of VMs:
ncp compute instance list
Result:
+----------------------+-----------------+---------------+---------+ | ID | NAME | ZONE ID | STATUS | +----------------------+-----------------+---------------+--------- | fhm0b28lgfp4tkoa3jl6 | first-instance | eu-north1-c | RUNNING | | fhm9gk85nj7gcoji2f8s | second-instance | eu-north1-c | RUNNING | +----------------------+-----------------+---------------+---------
-
Select the VM
ID
orNAME
(for example,first-instance
). -
Update the VM name:
ncp compute instance update first-instance --new-name first-vm
Alert
Do not update the VM name if the VM belongs to a Managed Service for Kubernetes cluster node group. The names of these VMs are generated automatically, and updating them will disrupt cluster operations.