Nutanix CE – decrease CVM memory

if you have followed our lab in here , you will see that each CVM by default will take 16 GB of memory.
we do normally have limited resources in lab environment , so in this post we will reduce the CVM memory from 16 GB to 8 GB.
we will use virsh command in this post , to find out more about this post, Please checkout this post.
via ssh connect to one of nutanix hosts, remember that each host has one CVM on top of it , so we need to connect to host and not CVM !
once we are connected to the host we need to find out the CVM states and its name so:
virsh list --all

we have the CVM name and it is in running state,we will shutdown the CVM first
virsh shutdown NTNX-b8888dfb-A-CVM

now that our CVM is down, we will decrease the memory as below:
virsh setmem NTNX-b8888dfb-A-CVM 8G –config
virsh setmaxmem NTNX-b8888dfb-A-CVM -config

our job is done , we will start the CVM and confirm that our configuration is been applied to our CMV via dominfo:
virsh start NTNX-b8888dfb-A-CVM
virsh dominfo NTNX-b8888dfb-A-CVM

you can apply the same to other nodes,if you have multiple nodes,but remember that you will need to shutdown one CVM at the time but if you like to do all of the at the same time , you can stop the cluster , (cluster stop) and once you are done,start the cluster. (cluster start).

Leave a comment