Updated on 2022-09-16 GMT+08:00

Resetting the BMS Password


If you forget the password for logging in to a BMS or if you want to harden the password to improve security, you can reset the password on the console.

If you change the password of a running BMS on the console, the BMS will be automatically restarted during password resetting. To prevent data loss, it is recommended that you reset the password during off-peak hours to minimize the impact on your services.


  • The password resetting function depends on the CloudResetPwdAgent plug-in, which is installed for public images by default. If your BMS is created from a private image, check whether the plug-in has been installed by following the instructions in (Optional) Installing the One-Click Password Reset Plug-in.
  • Ensure that DHCP is enabled in the VPC to which the BMS belongs.
  • The BMS network connectivity is normal.
  • An EIP has been bound to the BMS.


  1. Log in to the management console.
  2. Under Computing, click Bare Metal Server.

    The BMS console is displayed.

  3. Locate the row that contains the target BMS, click More in the Operation column, and select Reset Password from the drop-down list.
  4. Set and confirm a new password as prompted.
    Figure 1 Resetting the password

    The new password must meet the complexity rules in Table 1.

    Table 1 Password requirements



    Example Value


    • Consists of 8 characters to 26 characters.
    • Must contain at least three of the following character types:
      • Uppercase letters
      • Lowercase letters
      • Digits
      • Special characters

        Windows: !@$%-_=+[]:./?

        Linux: !@%^-_=+[]{}:,./?

    • Cannot contain the username or the username spelled backwards.
    • Cannot contain more than two characters in the same sequence as they appear in the username. (This requirement applies only to Windows BMSs.)


  5. Click OK.

    It takes about 10 minutes for the system to reset the password. Do not repeatedly perform this operation. During the process, the BMS will be restarted automatically. After the BMS is restarted, use the new password to log in to the BMS to check whether the password is reset successfully.

Related Operations

You can reset the BMS password using an API. For details, see Resetting the BMS Password with a Few Clicks.

You can also change the login password in the BMS OS. After changing the password, you must restart the BMS on the management console to make the new password take effect. It is recommended that you change the password on the console.