目次
rw init=/bin/bash
# passwd
# umount / # reboot -f
Command> Command> com.vmware.appliance.version1.localaccounts.user.add --role 【権限】 --username 【USERNAME】 --password Enter password: Reenter password:
operator | オペレータ ユーザー ロールを持つローカル ユーザーは、アプライアンス構成を読み取ることができます。 |
admin | 管理者ユーザー ロールを持つローカル ユーザーは、アプライアンスを構成できます。 |
superAdmin | スーパー管理者ユーザー ロールを持つローカル ユーザーは、アプライアンスを構成したり、ローカル アカウントを管理したり、Bash シェルを使用したりできます。 |
vCSAのrootパスワードが分からなくなった場合の対処方法。
以下の手順でパスワードを再設定することができる。
init=/bin/bash
# passwd root
vCenter Server Appliance 5.5 root account locked out after password expiration (2069041)
vSphere Web Clientは初期状態では120分でタイムアウトする。
これを伸ばすには以下の手順で設定する。
/var/lib/vmware/vsphere-client
webclient.properties
【変更前】#session.timeout = 120 【変更後】session.timeout = [タイムアウト分]
# /etc/init.d/vsphere-client restart Stopping VMware vSphere Web Client... Stopped VMware vSphere Web Client. Starting VMware vSphere Web Client... Intializing registration provider... Getting SSL certificates for https://192.168.1.230:7444/lookupservice/sdk Service with name 'vsphere-client-vcenter-69f41541-ab78-46ab-849d-63b5956f0569' and ID 'local:6539c8c8-bd6c-4122-9f67-6fedbfc75f79' was updated. Return code is: Success Waiting for VMware vSphere Web Client...... running: PID:10998
vSphere 5.x以降、認証はSSOを中心とした仕組みが採用されたため、vSphere Clientからローカルユーザを作成する機能がなくなっている。
SSOを使用しない環境において「VSPHERE.LOCAL」もしくは「LOCALOS」ドメインのユーザを追加するには、vCSAのローカルユーザを手動で作成することとなる。
# useradd -g users [USER NAME]
# tail /etc/passwd
# passwd [USER NAME] <パスワードを設定>
vSphere Web Clientのログイン画面にて、ユーザ名を自動的に入力する方法。
/usr/lib/vmware-sso/vmware-sts/webapps/websso/WEB-INF/views
cp unpentry.jsp unpentry.jsp.ORG
vi unpentry.jsp
【変更前】<input id="username" class="margeTextInput" type="text"/> 【変更後】<input id="username" class="margeTextInput" type="text" value="administrator@vsphere.local" />
vCenter Server Aplliance 6 で自由を手に入れる(2) vShere Web Clientで自動ログイン