Home
Join

7 Replies

  • This is the process I would follow to do what you are asking (We also have VMware HA in our environment).  No need to specifically disable HA.

    1. Disconnect each host from the HA cluster in vCenter.  The VMs will become "stuck" on the hosts they are currently running on, but they will not go down.
    2. Change vCenter's IP address as needed
    3. Log into each host's web interface and change the IP address as needed.  Just change the existing management IP; no need to create a new VMkernel adapter, etc.  You can also change the IP from the ESXi console if you prefer.
    4. In vCenter, connect each host to the HA cluster again.  Once joined to the cluster, the VMs can migrate between hosts again.  You can migrate one or two to a different host to confirm things are working as expected.
    Spice (1) flagReport
    1 found this helpful thumb_up thumb_down
  • Follow the plan described by JDDellGuy above. It is perfect. Depending on the total number of ESXi hosts you have, you may want to use PowerCLI to change the IP addresses quicker than clicking through the UI.

    https://www.vmwareblog.org/powercli-fast-easy-way-set-virtual-networks-vmware-esxi


    Spice (1) flagReport
    Was this post helpful? thumb_up thumb_down
  • Hi, thanks for reply.

    I have a simple cluster with 2 hosts and anoter standaone  host managed by same vcenter 

    Was this post helpful? thumb_up thumb_down
  • Andrea81 wrote:

    Hi, thanks for reply.

    I have a simple cluster with 2 hosts and anoter standaone  host managed by same vcenter 

    Ok.  The steps I mentioned above still apply.

    Was this post helpful? thumb_up thumb_down
  • ok, but i have a doubt. there is no official documentation from vmware and i see that someties someone speak about put host in maintenance mode, remove from cluster, change ip and the rejoin the host form cluster.

    in your experience is this true? the host are configurend with fqdn and I see no reason to remove from cluster. i think tha change ip on dns is enough.

    thanks

    Andrea

    Was this post helpful? thumb_up thumb_down
  • When a host is in maintenance mode, it cannot run VMs.  When you put a clustered host into maintenance mode, the action it takes is to move all it's VMs to another host in the cluster (assuming there are sufficient resources on other hosts to take those VMs.  I don't know what happens if those resources aren't available on other hosts).

    Since you need to re-IP both the hosts and vCenter, you cannot put the hosts into maintenance mode for this, unless you are okay with scheduling the downtime to shutdown all your VMs.  Also, because you have a standalone host, you don't have the option of putting it into maintenance mode unless you are okay with the VMs that are running on it being shut down first.  The host cannot be in maintenance mode and also be running VMs.  See reference below.
    https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-8F705E83-6788-42D4...

    Here is VMware's KB on how to change the management IP address.  But, the catch is that you also want to change your vCenter IP address, which is not part of the scenario that they describe in the KB.  Technically, it does say that you should disable HA on the cluster before proceeding, to prevent any potential failover events.  So I will stand corrected on that point from my original comment.

    https://kb.vmware.com/s/article/2084629

    If the new IP addresses that you want are on the same subnet as the current IPs, then I would just change the vCenter IP first.  I believe vCenter reaches out to the hosts, so no disconnect should happen since vCenter will just reach back out to the hosts again, once it's done applying the change to itself.  After that, disable HA and then run through the steps I listed above.  Or follow the steps in the article I just linked to above.

    However, if the new IP addresses that you want are on a new subnet, then I believe you will need to disable HA, remove the hosts from the cluster, re-IP vCenter, re-IP the hosts, and then re-add the hosts to vCenter.

    But no maintenance mode unless you want to shut down all your VMs.  Hosts that are in maintenance mode cannot run VMs.

    Was this post helpful? thumb_up thumb_down
  • Hi, 

    I know very well that in maintenance mode I have to move the VMs to another host, and that's what I want to avoid
    thinking about it I would begin to change the IP of the VCSA and then change the IP of the standalone host.
    thanks
    Andrea
    Was this post helpful? thumb_up thumb_down

Read these next...

  • No Network Access

    No Network Access

    Networking

    Hello,Suddenly, my Windows 2012R server has NO network access through either of its two nic cards; it is a DELL PE T430. It is configured to get IP info from DHCP, and that works ok; both NICs can get an IP just fine, but after I get the IP address,  I am...

  • Understanding VPNs

    Understanding VPNs

    Security

    Hello I'm trying to learn the concept of VPN's and there's some aspect of VPN's I'm not sure about. When I configure a remote access VPN on a Fortigate, I configure the following client range 192.168.3.10-192.168.3.40When the client connects and I do a ro...

  • Snap! Outlook crashes, getting phished, supermoon, CyberOne, DALL·E 2 + SpiceRex

    Snap! Outlook crashes, getting phished, supermoon, CyberOne, DALL·E 2 + SpiceRex

    Spiceworks Originals

    Your daily dose of tech news, in brief. We made it to Friday! Before we consider our weekend plans, let's look back in time. While not the storage we're accustomed to, back on August 12, 1877 (although there appears to be some debate on the actual ...

  • Spark! Pro series – 12th August 2022

    Spark! Pro series – 12th August 2022

    Spiceworks Originals

    I want my… I want my…. Spark!    Just a reminder, if you are reading the Spark!, Spice it up. We like it spicy here! Today in History: The IBM PC Introduced August 12, 1981 IBM introduces its ...

  • Repeated Attacks on my Firewall - What to Do ??

    Repeated Attacks on my Firewall - What to Do ??

    Security

    I've got a UTM Firewall and I'm constantly getting notifications that someone is trying to gain access through an SSL-VPN. The attacking IP address is almost always different, so blocking the IP every time is not a sustainable solution. They haven't got t...