What Should I Do If a Private Image Cannot Be Used to Create a FlexusL Instance or Change the OS of an Instance Because the Password Reset Plug-in Is Not Installed on the Image or the Image's onekey_resetpasswd Tag Is Missing?
Symptom
When you use a private image to create a FlexusL instance or change the OS, the message "This image has no password reset plug-in installed or onekey_resetpasswd tagged." is displayed.
If your private image is not displayed in the private image list of the FlexusL instance, check whether the private image and the FlexusL instance are in the same region. Images are regional resources. FlexusL instances can only be created from private images that are in the same region with them.
Probable Causes
If a private image is created from a server on another cloud platform or downloaded from a third party, the private image may fail to be used to create a FlexusL instance or change the OS of an instance because the password reset plug-in is not installed on the image or the onekey_resetpasswd tag is missing. Perform the following steps to rectify the fault:
Step 1: Check Whether the Private Image Lacks the onekey_resetpasswd Tag
- Query and copy the ID of the private image on the IMS console.
- Locate the ListImages API in API Explorer. Enter the image ID to check whether the private image contains the onekey_resetpasswd tag.
- Set the following parameters:
- Region: Select the region where the private image is located.
- ID: Enter the private image ID.
Figure 1 Selecting a region
Figure 2 Entering the private image ID
- Click Debug to view the result.
If the __os_feature_list parameter is displayed in the response body and its value contains \"onekey_resetpasswd\": \"true\", the private image contains the onekey_resetpasswd tag. Otherwise, the onekey_resetpasswd tag is not contained, as shown in the following figure.
If the private image does not contain the onekey_resetpasswd tag, add the tag to the private image by referring to 3.
Figure 3 The private Image does not contain the onekey_resetpasswd tag
- Set the following parameters:
- Add the onekey_resetpasswd tag for the private image.
- Set the following parameters in the UpdateImage API:
- Region: Select the region where the private image is located.
- image_id: Enter the private image ID.
- Body: Click Edit Code and enter the following content:
[ { "op": "add", "path": "/__os_feature_list", "value": "{\"nic_hotplug\":\"true\", \"disk_hotplug\": \"true\", \"user_data\": \"true\", \"ssh_key\":\"true\", \"hostname_inject\": \"true\", \"onekey_resetpasswd\": \"true\"}" } ]
- Click Debug, and then view the result.
The __os_feature_list parameter is displayed in the response body and its value contains \"onekey_resetpasswd\": \"true\", which means the private image contains the onekey_resetpasswd tag.
- Set the following parameters in the UpdateImage API:
- Refresh the page for creating a FlexusL instance or changing the OS of an instance, and select the private image again.
Refresh the page of before you select the private image.
- If the private image can be selected, no further operation is required.
- If you still cannot select the private image, install the password plug-in by referring to Step 2: Check Whether the Password Reset Plug-in Is Installed in the Private Image.
Step 2: Check Whether the Password Reset Plug-in Is Installed in the Private Image
After using a private image to create a FlexusL instance or change the OS of an instance, set the password of the FlexusL instance on the console.
- If you can log in to the FlexusL instance using the new password, the password reset plug-in has been installed in the private image.
- If you cannot log in to the FlexusL instance using the new password, the password reset plug-in has not been installed in the private image. In this case, install the plug-in.
- If you know the initial password of the private image, install the password reset plug-in by referring to What Should I Do If the Password Cannot Be Reset After I Use a Private Linux Image to Create a FlexusL Instance or Change the OS of an Existing Instance and I Know the Initial Password of the Private Image?
- If you forget the initial password of the private image, install the password reset plug-in by referring to What Should I Do If the Password Cannot Be Reset After I Use a Private Linux Image to Create a FlexusL Instance or Change the OS of an Existing Instance and I Forgot the Initial Password of the Private Image?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot