Nutanix AHV : Rename the default storage container in CLI

When deploying a new cluster, the default storage container name is automatically generated and is not particularly aesthetically pleasing.
To rename it, there is only one solution: go through the Command Line Interface.
WARNING
Do not attempt to rename the SelfServiceContainer and NutanixManagementShare containers.
To carry out this operation, connect to a CVM in your cluster and list all the existing containers on the cluster:
nutanix@CVM: ncli container list
All the containers and their associated details will then be displayed. Find the container you want to rename in the list and type the following command:
nutanix@CVM: ncli container edit name=CURRENT_NAME new-name=NEW_NAME
Replace “CURRENT_NAME” with the name automatically generated by the system when creating the container, and NEW_NAME with the name you wish to assign to this container, leaving no spaces or special characters other than – and _
Then check that your container has been correctly renamed with the command:
nutanix@CVM: ncli container list

Sur Prism Element, vous verrez également apparaitre le nouveau nom que vous avez attribué à votre container de stockage :

0 comments