How to manually reset the password of my instance

From EN Ikoula wiki
Revision as of 13:03, 30 June 2021 by Ccunha64415 (talk | contribs)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

Comment reset manuellement le mot de passe de mon instance en:How to manually reset the password of my instance

Introduction

Sometimes the password reset function may not work when the router vm zone's is overloaded.

It is possible to reset your root password manually via a LiveCD.

Here we will use SystemrescueCD.

Déroulé

The first step is to have your instance turned on.

Fichier:Click on attach.PNG

1) Click in "Attach ISO"

2) Pick the ISO "GNU/Linux LiveCD SystemRescue"

Then click in "OK"

Ensuite nous allons redémarrer l'instance pour démarrer sur le liveCD.

Fichier:Restart console iso.PNG

3) Click the "Restart" button.

4) Open the Cloudstack console to monitor the startup.

'Note: The password change will be done through the Cloudstack console.



Fichier:Sysrescue start.PNG

The LiveCD will then boot, make the live CD boot via the default boot options:

Note: If the liveCD does not boot, choose "Other 64-bit" at the "OS Type" of the instance.


5) Choose the first option by pressing enter.

Once the OS has loaded all the components, you will then have a :

Fichier:Cmdline sysrescue.PNG

Note: Mettre le clavier en français pour + de facilité via le bouton "Keyboard" en haut.


Ici il va falloir monter la partition contenant le système de votre instance dans un dossier.
Il faut identifier le groupe de volume et monter le volume logique.
Vous pouvez l'identifier dans le dossier /dev/ , ici notre groupe de volume est "debian9x64" et le volume logique qui nous intéresse est "root".
Nous allons monter celui ci dans /mnt/ :

mount /dev/debian9x64/root /mnt


Puis nous allons nous mettre dans le même "environnement que notre instance" via la commande:

chroot /mnt /bin/bash


Il suffit ensuite de changer le mot de passe root:

passwd root


Vous pouvez désormais éteindre votre instance,détacher l'ISO et redémarrer celle ci.
Catégorie:Cloudstack Catégorie:Cloud