今天重新安装VCSA,安装多次一直卡在80%的画面不动,显示正在安装RPM包,同时log日志显示“Failed to authenticate with the guest operating system using the supplied ”,登录控制台查看VCSA服务器进度发现root密码没有被设置,手工修改密码也是失败。经过网上查看资料,发现VCSA的安装盘是有过期日的,因为盘内老的root密码已经过期,所以root账户过期后,安装程序在执行过程中将无法按照用户的预设值去修改原系统默认的root密码。
鉴于此情况,所以尝试了在80%界面去修改root密码,VCSA修改root密码可在系统启动时完成(可参看如下指引),修改完root密码并重启生效后,VCSA的安装界面便可以开始往后面继续执行了,直到完成VCSA安装时的第二部分配置。
如下是VCSA的root密码修改方法:
To reset the lost forgotten root password in vCenter Server Appliance 6.5:
- Take a snapshot or backup of the vCenter Server Appliance 6.5 before proceeding. Do not skip this step.
- Reboot the vCenter Server Appliance 6.5.
- After the OS starts, press key “e” to enter the GNU GRUB Edit Menu.
- Locate the line that begins with the word Linux.
- Append these entries to the end of the line:
rw init=/bin/bash
The line should look like the following screenshot:
- Press F10 to continue booting.
- Run the mount -o remount,rw / command.
- In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
passwd
- Unmount the filesystem by running this command:
umount /
- Reboot the vCenter Server Appliance 6.5 by running this command:
reboot -f
- Confirm that you can access the vCenter Server Appliance 6.5 using the new root password.
- Remove the snapshot taken in Step 1 if applicable.