Reset CLI Password Using Virtual Machine Manager
To reset the password for the cliadmin:
In the Virtual Machine Manager, right-click on the VM and select Shut Down to power off the VM.
Once the VM is powered off, right-click on the VM again and select Run. Double-click on the VM to open the console.
During the boot process, wait for a password Reset Key to be displayed in the CLI. This process might take a few minutes.
Copy the password Reset Key and keep it securely. The CLI reset password is printed on the virt-manager GUI. To see the password reset key from serial console, run
show journalcommand.You don't need to power on the VM if you have already saved the password Reset Key from a previous boot process.
Open the kvm-env.ini file which was created earlier and edit the following fields:
PasswordResetKey—Set the value of this property to the passkey or token that you copied during the VM reboot.
CLI_PASSWORD—Set the value of this property to your new desired password. Enter the password that meets the following requirements:
- The password should be at least 8 characters long and not more than 32 characters.
The password must include at least three of the following:
Numbers (0-9)
Uppercase letters (A-Z)
Lowercase letters (a-z)
Special characters (~!@#$%^&*()_-+={}[];:"'<,>.?/|)
Save the changes.
Delete the old ISO file and create one.
Run
mkisofs -o <name.iso> -J -R kvm-env.inicommand.Erase the passwords from kvm-env.ini file. Secure the ISO image file by setting the file permission to 600.