Updated on 2025-08-04 GMT+08:00

Resetting the Password of a FlexusL Instance Online or Offline

Scenarios

You can reset a password for one or more FlexusL instances when:

  • You use FlexusL instances for the first time. FlexusL instances do not have initial passwords.
  • The password is lost or expires.

    Online password reset is not available in a few regions. Refer to the console display for specific availability.

Constraints

Table 1 Constraints on resetting a password

Item

Online Password Reset

Offline Password Reset

Service dependency

Cloud Operations Center (COC) needs to be enabled and authorized.

For IAM users, permissions for COC operations need to be granted. For details, see Configuring Custom Policies for FlexusL Self-Service O&M.

N/A

Plug-in dependency

The UniAgent plug-in provided by Application Operations Management (AOM) needs to be deployed on FlexusL instances for delivering and executing scripts.

If a UniAgent is not installed, being installed, or abnormal, you cannot reset the password online. Install a UniAgent as instructed.

A password reset plug-in is required.

Supported status

Running

  • Running
  • Stopped

Effective time

The new password will be applied immediately after the reset.

Depending on the statuses of FlexusL instances.

  • Running: The new password is applied after the instance is restarted.
    NOTE:
    • Auto restart may cause data loss. You are advised to stop the FlexusL instance first before resetting the password.
    • A FlexusL instance restart may cause a service interruption. You are advised to perform the operation during off-peak hours.
  • Stopped: The new password is applied after the instance is started.

Other

Passwords cannot be reset for FlexusL instances running Windows and Linux in the same batch.

N/A

Prerequisites

Ensure that the FlexusL instance network is normal and DHCP has been enabled for the VPC network used by the instance.

Procedure

You can reset the password online or offline.

  • Online password reset: This function depends on COC and the AOM UniAgent plug-in. The password change is applied immediately without restarting FlexusL instances.
  • Offline password reset: This function does not depend on COC and the AOM UniAgent plug-in. The password change is applied only after FlexusL instances are restarted or started.
  1. Log in to the FlexusL console.
  2. Reset the password for one or more FlexusL instances.
    • Resetting the password for logging in to a single FlexusL instance in any of the following ways:
      • Choose > Reset Password in the target resource card.
      • Click the target instance name. On the displayed page, choose > Reset Password.
      • Click the target instance name. In the navigation pane on the left, choose Cloud Servers, locate the target server, and click Reset Password.
        Figure 1 Resetting the password for an individual instance
    • Batch resetting passwords

      Enable Batch operations, select Select all or select the target instances, and choose More > Reset Password.

      Figure 2 Resetting passwords for multiple instances

      After the passwords are reset in a batch, the passwords for logging in to these instances are the same.

  3. Click the Online Password Reset tab.
  4. (Optional) On the Enable COC and Grant Permissions page, read and agree to the service statement, and click Enable and Authorize.

    This page is displayed if COC is not enabled and authorized.

  5. (Optional) If UniAgents are not installed or an exception occurs during the installation, log in to the FlexusL instances and install UniAgents on FlexusL instances as instructed.
    Figure 3 Message displayed
    1. Click Install UniAgent in the Operation column.
      Figure 4 Installing UniAgent (Linux OS used as an example)
    2. Select a UniAgent version. The latest version is recommended.
    3. Click the copy button in the upper right corner of the installation command area to copy the installation command.
    4. Click Log In to Cloud Server.
    5. Run the UniAgent installation command on the FlexusL instances.
      • For FlexusL instances running Windows, download the installation package and install UniAgents as instructed.
      • For FlexusL instances running Linux: paste and execute the installation command copied in step 5.c.
    6. Return to the Online Password Reset tab and click refresh the UniAgent status to check the UniAgent installation status.

      UniAgent installation and status synchronization take several minutes. After UniAgents are installed, you can perform the subsequent operations.

  6. Configure the required parameter settings.
    Figure 5 Resetting the password online
    Table 2 Parameters for resetting the password online

    Parameter

    Description

    New Password

    The new password.

    The new password must comply with the following rules:
    • Must contain 8 to 26 characters.
    • Must contain at least three of the following character types:
      • Uppercase letters
      • Lowercase letters
      • Digits
      • Special characters

        !@%-_=+[]:./^,{}? (only applied to Linux)

        !@%-_=+[]:./? (only applied to Windows)

    • Cannot contain the username or the username spelled backwards.
    • Cannot contain more than two consecutive characters in the username (only applied to Windows).
    • Cannot start with a slash (/) (only applied to Windows).

    Confirm Password

    Must be the same as the new password.

  7. Click OK.
  1. Log in to the FlexusL console.
  2. Reset the password for one or more FlexusL instances.
    • Resetting the password for logging in to a single FlexusL instance in any of the following ways:
      • Choose > Reset Password in the target resource card.
      • Click the target instance name. On the displayed page, choose > Reset Password.
      • Click the target instance name. In the navigation pane on the left, choose Cloud Servers, locate the target server, and click Reset Password.
        Figure 6 Resetting the password for an individual instance
    • Batch resetting passwords

      Enable Batch operations, select Select all or select the target instances, and choose More > Reset Password.

      Figure 7 Resetting passwords for multiple instances

      After the passwords are reset in a batch, the passwords for logging in to these instances are the same.

  3. Set and confirm a new password as instructed.

    If you reset the password for a running server, the password change is applied only after the next restart. Select Auto Restart.

    Figure 8 Resetting the password offline
    Table 3 Parameters for resetting the password online

    Parameter

    Description

    New Password

    The new password.

    The new password must comply with the following rules:
    • Must contain 8 to 26 characters.
    • Must contain at least three of the following character types:
      • Uppercase letters
      • Lowercase letters
      • Digits
      • Special characters

        !@%-_=+[]:./^,{}? (only applied to Linux)

        !@%-_=+[]:./? (only applied to Windows)

    • Cannot contain the username or the username spelled backwards.
    • Cannot contain more than two consecutive characters in the username (only applied to Windows).
    • Cannot start with a slash (/) (only applied to Windows).

    Confirm Password

    Must be the same as the new password.

  4. Click OK.

    The password change will be applied after the instance is restarted. Log in to the instance to verify the new password.

    • Do not reset the password repeatedly.
    • Restarting an instance usually takes dozens of seconds to several minutes, depending on the instance configuration.