How to Change CVM Memory in Nutanix CE Platform

In last post of this series, I covered installation of Nutanix CE single-node cluster. In this post i will walk through steps of reducing CVM memory.

By default when you deploy Nutanix CE, CVM is configured with 16 GB RAM. You can verify this by logging into Prism and navigating to Home > VM view.

cvm-mem-1.PNG

Or you can SSH to AHV host and type command : virsh dominfo

Now suppose you allocated 20 GB RAM to the VM where Nutanix CE is installed, CVM will consume 16 GB out of it, leaving only 4 GB for the AHV host. But we can reduce CVM memory to 12G or 8G for lab purpose.

Follow below steps to change CVM memory.

1: Connect to CVM via ssh and stop cluster by executing command: cluster stop

cvm-mem-4.PNG

Wait for clean shutdown of cluster

cvm-mem-5.PNG

2: Once cluster is stopped on CVM, connect to AHV host via SSH and run command: virsh list –all to fetch CVM name

cvm-mem-2

Additionally you can run command : virsh dominfo to see details of CVM

cvm-mem-3

3: Stop CVM by typing command: virsh shutdown <cvm name>

cvm-mem-6.PNG

4: Reduce CVM memory by typing below commands:

  • virsh setmem  12G –config
  • virsh setmaxmem  12G –config

cvm-mem-7.PNG

Verify that new memory settings have applied.

cvm-mem-8

5: Start CVM by typing: virsh start <cvm name>

cvm-mem-9.PNG

6: Start cluster on CVM

Wait for couple of minutes for CVM to boot up and then connect back via SSH and start the cluster by typing command: cluster start

Once cluster is started, verify that you can login to Prism.

I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing :)

Leave a Reply