Linux Tutorials

How To rename a Virtual Machine Instance in OpenStack

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.

Original content from computingforgeeks.com - post 37965

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 | fed.              | ACTIVE  | private=10.10.1.191               | Fedora-31 | m1.small  |
+--------------------------------------+-------------------+---------+-----------------------------------+-----------+-----------+

Set the new instance name:

openstack server set --name fed37  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 | fed37             | 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 website.

Keep reading

Install KVM and Virt-Manager on Arch Linux Virtualization Install KVM and Virt-Manager on Arch Linux Install KVM on Debian 13 / Debian 12: Complete Guide KVM Install KVM on Debian 13 / Debian 12: Complete Guide Install VirtIO Drivers on Windows 11 and Server 2025: ISO and MSI KVM Install VirtIO Drivers on Windows 11 and Server 2025: ISO and MSI How to Install KVM on Fedora 45 / 44 with virt-manager Fedora How to Install KVM on Fedora 45 / 44 with virt-manager Black Friday Mini PC Deals: Proxmox, Local AI and Home Assistant AI Black Friday Mini PC Deals: Proxmox, Local AI and Home Assistant Fix libvirt Firewall Backend Error on Arch Linux / Manjaro Virtualization Fix libvirt Firewall Backend Error on Arch Linux / Manjaro

Leave a Comment

Press ESC to close