Change CVM IP Address
Change CVM IP Address
By default, the public interface (eth0) of a Controller VM is assigned to VLAN 0. To assign the
Controller VM to a different VLAN, change the VLAN ID of its public interface. After the change, you
can access the public interface from a device that is on the new VLAN.
Note: Perform the following procedure during a scheduled downtime. Before you begin, stop the
cluster. Once the process begins, hosts and CVMs partially lose network access to each other and
VM data or storage containers become unavailable until the process completes.
Note: To avoid losing connectivity to the Controller VM, do not change the VLAN ID when you are
logged on to the Controller VM through its public interface. To change the VLAN ID, log on to the
internal interface that has IP address 192.168.5.254.
Procedure
Perform the following steps to put the node into maintenance mode.
2. Determine the IP address of the node you want to put into maintenance mode.
Note the value of Hypervisor IP for the node you want to put in maintenance mode.
4. Verify if the host is in the maintenance mode. nutanix@cvm$ acli host.get host-ip
Replace host-ID with the ID of the host. This step prevents the CVM services from being
affected by any connectivity issues. Determine the ID of the host by running the following
command: nutanix@cvm$ ncli host list
Accept the host authenticity warning if prompted, and enter the Controller VM nutanix
password
Replace vlan_id with the ID of the VLAN to which you want to assign the Controller VM.
root@host# virsh dumpxml cvm_name Replace cvm_name with the CVM name or CVM ID to
view the VLAN tagging information.
8. Verify connectivity to the Controller VMs external IP address by performing a ping test from the
same subnet. For example, perform a ping from another Controller VM or directly from the host
itself.
10. Exit the AHV host and the Controller VM from the maintenance mode.
a. From any other CVM in the cluster, run the following command to exit the CVM
from the maintenance mode. nutanix@cvm$ ncli host edit id=host-ID enable-
maintenance-mode=false Replace host-ID with the ID of the host.
Note: The command fails if you run the command from the CVM that is in the
maintenance mode.
a. From any CVM in the cluster, run the following command to exit the AHV host
from the maintenance mode.
nutanix@cvm$ acli host.get host-ip In the output that is displayed, ensure that
node_state equals to kAcropolisNormal and schedulable equals to True.
============================================================================
Changing the Controller VM IP Addresses in your Nutanix Cluster (CLI Script) Before you begin
1) Guest VM downtime is necessary for this change, because the Nutanix cluster must be in a
stopped state. Therefore, plan the guest VM downtime accordingly
2) Verify if your cluster is using the network segmentation feature.
nutanix@cvm$ network_segment_status
3) The network segmentation feature enables the backplane network for CVMs in your cluster
(eth2 interface). The backplane network is always a non-routable subnet and/or VLAN that is
distinct from the one which is used by the external interfaces (eth0) of your CVMs and the
management network on your hypervisor.
Typically, you do not need to change the IP addresses of the backplane interface (eth2) if
you are updating the CVM or host IP addresses.
If you have enabled network segmentation on your cluster, check to make sure that the
VLAN and subnet in-use by the backplane network is still going to be valid once you move to
the new IP scheme. If not, and change the subnet or VLAN. See the Prism Web Console
Guide for your version of AOS to find instructions on disabling the network segmentation
feature (see the Disabling Network Segmentation topic) before you change the CVM and
host IP addresses. After you have updated the CVM and host IP addresses by following the
steps outlined later in this document, you can then proceed to re-enable network
segmentation. Follow the instructions in the Prism Web Console Guide, which describes how
to designate the new VLAN or subnet for the backplane network
4) If you have configured remote sites for data protection, either wait until any ongoing
replications are complete or abort them. After you successfully reconfigure the IP addresses,
update the reconfigured IP addresses at the remote sites before you resume the replications
5) Log on to a Controller VM in the cluster and check that all hosts are part of the metadata
store. nutanix@cvm$ ncli host ls | grep "Metadata store status" For every host in the
cluster, Metadata store enabled on the node is displayed.
Procedure to change ip
What to do next
• Run the following NCC checks to verify the health of the Zeus configuration. If any of these checks
report a failure or you encounter issues, contact Nutanix Support.
• If you have configured remote sites for data protection, you must update the new IP addresses on
both the sites by using the Prism Element web console.
• Configure the network settings on the cluster such as DNS, DHCP, NTP, SMTP, and so on.
• Power on the guest VMs and configure the network settings in the new network domain.
• After you verify that the cluster services are up and that there are no alerts informing that the
services are restarting, you can change the IPMI IP addresses at this stage, if necessary. For
instructions about how to change the IPMI addresses, see the Configuring the Remote Console IP
Address (Command Line) topic in the Acropolis Advanced Setup Guide.