VMmanager Knowledge Base
en En
es Es

How do I change the IP address of the server with the platform?

Question

How to change the IP address on a VMmanager 6 server?

Ответ

Note the following:

  • this guide does not apply if the server is used as a cluster node;
  • changing the IP address will temporarily take the platform's web interface offline. Virtual machines (VMs) on cluster nodes will continue running, but you cannot manage them until the procedure completes.
Warning
Your SSH session will drop during the IP change. An incorrect subnet mask or gateway will make the server unreachable over the network. Before proceeding, ensure you have out‑of‑band access (IPMI or KVM console) in case of failure.

To change the IP address:

  1. Connect to the server with the platform via SSH using its current IP address. For more information about connecting via SSH, see Workstation setup.
  2. Stop VMmanager:

    sudo vm stop

    Wait for all containers and services to shut down completely.

  3. Replace the IP address in the network interface configuration. Choose the option that matches the network manager your server's OS uses. Run:
    systemctl is-active NetworkManager

    If the output is active, use option 1 (NetworkManager).

    Option 1 (NetworkManager) is recommended for AlmaLinux 9 and newer.

    If the output is inactive or unknown, use option 2 (ifcfg config files).

    Note
    The location of network config files may vary depending on your OS and its version.
    Expand option 1 (NetworkManager)
    Expand Option 2 (ifcfg config files)
  4. Update the VMmanager 6 config file:
    1. Open /opt/ispsystem/vm/config.json in an editor.
    2. Find the DomainName parameter. Depending on its value, do the following:
      • if the old IP address is specified, replace it with the new one;
      • if a domain name is specified, skip this step.
    3. Save the changes.
  5. If necessary, update the DNS record for the domain. If the platform was accessible via a domain name, that name must point to the new IP address. Contact the service where you manage your domain's DNS zone (hosting provider, domain registrar, or your own DNS server) and change the A record to the server's new IP address.

    Note
    After changing the record, it may take some time for the change to propagate through DNS caches.
  6. Start VMmanager:
    sudo vm start
    

Perform the following checks depending on your scenario:

  • new subnet. If the new IP address is from a different subnet:
    • verify that the default gateway is correctly set for the new network;
    • ensure that routes to the previous subnet do not conflict with the new settings.
  • DNS servers. Verify that the DNS server addresses in /etc/resolv.conf are up to date and reachable from the new network;
  • connectivity with nodes. If cluster nodes are unreachable after changing the platform's IP address, check network connectivity to them;
  • access to external resources. From the new IP address, verify access to external resources that the platform requires to function. For details, see the Server requirements.