【vCenter再起動不要】有効期限切れのvCenterのrootパスワードを簡単に変更する

どうも、Tです。

以前、vCenterのrootパスワード有効期限が過ぎてしまった場合のリセット方法を記事にしました。

vCenter6.7のVMware Appliance Managementにrootでログインできなくなったのでパスワードリセットしてみる
どうも、Tです。 vCenterのVMware Appliance Management画面にrootでログインできなくなって...

vCenter6.7 U1以降は、以前より簡単にリセットする方法があったので、下記のKBを試してみます。

How to reset the lost or forgotten root password in vCenter Server Appliance 6.7 U1 and later

スポンサーリンク
アドセンス1

環境

  • VMware vCenter Server 7.0 Update 2d(18455184)

現象

下記のメッセージが表示されvCenterの管理画面にログインできません。

Exception in invoking authentication handler User password expired.

やりたいこと

下記のKBを参考に簡単にrootパスワードをリセットする。

How to reset the lost or forgotten root password in vCenter Server Appliance 6.7 U1 and later
vCenterへのSSH接続が必要です。SSHが有効ではない場合は、vCenterの管理画面にrootではなくAdministrator@vsphere.local でログインしSSH接続を有効にしてください。

rootパスワードリセット

vCenterへSSH接続します。

SSH接続を「Administrator@vspehre.local」ユーザーとパスワードで接続します。

SSH接続できました。

下記のコマンドでshellモードへ移行します。

Command> shell.set --enable true
Command> shell

下記のコマンドを用いてrootのパスワードを変更します。

sso-user@testvcsa [ ~ ]$ sudo -i
Password:<Administrator@vsphere.localのパスワード>
root@testvcsa [ ~ ]# passwd

パスワード変更後、exitでSSH接続を切断しておきます。

vCenterの管理画面から変更したパスワードでログインが行えるようになります。

参考

How to reset the lost or forgotten root password in vCenter Server Appliance 6.7 U1 and later

まとめ

vCenterの再起動が不要なのは非常にGoodですね。今まで知らなかったよ・・・・。

スポンサーリンク
アドセンス1
アドセンス1
ブログランキング・にほんブログ村へ

シェアする

フォローする