(Optional) Installing the One-Click Password Reset Plug-in

To enable one-click password reset for BMSs created using images, you are advised to install the password reset plug-in Cloud-reset-pwd Agent.

To uninstall the plug-in, see Uninstall the Password Reset Plugin from a Linux VM.

The one-click password reset plug-in does not support Kunpeng servers.

Prerequisites

A Linux VM must have larger than 600 MB remaining space and data can be written to its root directory.

Procedure

  1. Download password reset plug-in CloudResetPwdAgent.zip.

    There is no special requirement for the directory where you store the plug-in package.

    wget http://cn-south-1-cloud-reset-pwd.obs.cn-south-1.myhuaweicloud.com/linux/64/reset_pwd_agent/CloudResetPwdAgent.zip

  2. Run the following command to decompress CloudResetPwdAgent.zip:

    There is no special requirement for the directory where you decompress the plug-in package.

    unzip -o -d Directory where the plug-in is decompressed CloudResetPwdAgent.zip

    For example, if the plug-in is decompressed in the /home/linux/test directory, run the following command:

    unzip -o -d /home/linux/test CloudResetPwdAgent.zip

  3. Install CloudResetPwdAgent and CloudResetPwdUpdateAgent.
    1. Run the following command to enter CloudResetPwdUpdateAgent.Linux:

      cd /home/linux/test/CloudResetPwdAgent/CloudResetPwdAgent/CloudResetPwdUpdateAgent.Linux

    2. Run the following command to add execute permissions of the setup.sh file:

      chmod +x setup.sh

    3. Run the following command to install the plug-in:

      sudo sh setup.sh

    4. Run the following command to check whether the plug-in is installed successfully:

      service cloudResetPwdUpdateAgent status

      If the status of CoudResetPwdUpdateAgent is running, the plug-in is installed successfully. Otherwise, the plug-in installation fails.

      If the plug-in installation fails, check the installation environment and install the plug-in again.

Uninstall the Password Reset Plugin from a Linux VM

Log in to the VM and run the following commands:

  1. sudo bash /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script remove
  2. sudo bash /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script remove
  3. sudo rm -rf /CloudrResetPwdAgent
  4. sudo rm -rf /CloudResetPwdUpdateAgent