You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

How can I rename an VM, instance or server in OpenStack?. Once you create an instance in OpenStack, you can modify its name in running state. This is true if the service running in the VM is changed, and the name needs to be updated to reflect the same.

Modifying an Instance/VM name in OpenStack can be done from the CLI or Horizon dashboard.

Change / Rename Instance in OpenStack CLI

Get the current instance name:

$ openstack server list
+--------------------------------------+-------------------+---------+-----------------------------------+-----------+-----------+
| ID                                   | Name              | Status  | Networks                          | Image     | Flavor    |
+--------------------------------------+-------------------+---------+-----------------------------------+-----------+-----------+
| d3ae9771-3a95-466d-a1ef-656ee2bb8456 | fed30             | ACTIVE  | private=10.10.1.191               | Fedora-31 | m1.small  |
+--------------------------------------+-------------------+---------+-----------------------------------+-----------+-----------+

Set the new instance name:

$ openstack server set --name fed31  d3ae9771-3a95-466d-a1ef-656ee2bb8456

Confirm that the new name is set:

$ openstack server list
+--------------------------------------+-------------------+---------+-----------------------------------+-----------+-----------+
| ID                                   | Name              | Status  | Networks                          | Image     | Flavor    |
+--------------------------------------+-------------------+---------+-----------------------------------+-----------+-----------+
| d3ae9771-3a95-466d-a1ef-656ee2bb8456 | fed31             | ACTIVE  | private=10.10.1.191               | Fedora-31 | m1.small  |
+--------------------------------------+-------------------+---------+-----------------------------------+-----------+-----------+

Change / Rename Instance in OpenStack Dashboard

Login to Horizon Dashboard

openstack create projects users roles 01

Then navigate to Project > Compute > Instances. Then select the instance to be renamed.

change openstack instance name 01

Under Actions, select “EDIT INSTANCE”

change openstack instance name 02

Set new name and click save.

change openstack instance name 03

You have successfully changed an instance/VM/Server name in OpenStack. Check other OpenStack articles available in our blog.

How To Create OpenStack Instance With a Fixed / Static IP Address

How To Create OpenStack projects, users and roles

How To Migrate OpenStack Instance from one Compute Host to Another

How To Resize OpenStack Instance / Virtual Machine

How To Configure OpenStack Instances / VMs to Autostart after Nova compute reboot

As an appreciation for the content we put out,
we would be thrilled if you support us!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here