Updated on 2024-09-25 GMT+08:00

Changing the VPC for a FlexusX Instance

Scenarios

You can move your FlexusX instance from the current VPC to another.

Constraints

  • Only running or stopped FlexusX instances support VPC change.
  • The VPC of a FlexusX instance can be changed only if the instance has one network interface.
  • If you have reinstalled or changed the OS of a FlexusX instance before changing the VPC, log in to the FlexusX instance and check whether the password or key pair configured during the reinstallation or change is successfully injected.
    • If the login is successful, the password or key pair is injected. Perform operations as required.
    • Otherwise, the system is injecting the password or key pair. During this period, do not perform any operations on the FlexusX instance.
  • During the VPC switchover, do not bind, unbind, or change the EIP. Otherwise, a message will be displayed indicating insufficient permissions, but you do not need to take any action.
  • If the network interface of a FlexusX instance has an IPv6 address, the VPC cannot be changed for the instance.

Notes

  • A VPC can be changed on a running FlexusX instance, but the instance network connection will be interrupted during the change process.

    If you intend to change the VPC for a running FlexusX instance when traffic is being routed to the network interface of the instance, the VPC change may fail. In this case, you are advised to try again later or stop the instance and try again.

  • After the VPC is changed, the subnet, private IP address, MAC address, and OS network interface name of the FlexusX instance will change accordingly.
  • After the VPC is changed, you need to reconfigure the source/destination check and the virtual IP address for the instance.
  • After the VPC is changed, you need to reconfigure network-related application software and services, such as ELB, VPN, NAT Gateway, and DNS.

Procedure

  1. Log in to the FlexusX console, in the upper left corner, click , and select a region and project.
  2. In the FlexusX instance list, click the name of the FlexusX instance that you want to change the VPC for.

    The details page of this instance is displayed.

  3. On the Network Interfaces tab, click Change VPC.

    Select an available VPC and subnet from the drop-down list, and set the private IP address and security group as needed.

    You can select multiple security groups. In this case, the rules of all the selected security groups are applied to the FlexusX instance.

    Using multiple security groups may impact the network performance of a FlexusX instance. You are advised to select no more than five security groups.

    Figure 1 Changing a VPC
  4. Click OK.