方法一、重新安装esxi,不要覆盖datastore,这样比较简单。
方法二、如果非要恢复密码
1、用linux启动光盘,如rhel5的安装光盘或knoppix启动
2、到命令行下,运行mount /dev/sda5 /mnt/sda5
3. cp /mnt/sda5/stage.tgz /tmp/.
4. cd /tmp
tar xvfz stage.tgz
tar xvfz local.tgz
5. vi /tmp/etc/passwd
把类似root:x:143434343:12232:9:99999:7
这一行中的143434343给清除
6. rm -f stage.tgz local.tgz
tar czvf local.tgz etc
tar czvf stage.tgz local.tgz
cp local.tgz /mnt/sda5/.
7. 重启esxi即可重新设置root密码

本文提供了一种通过Linux启动光盘恢复ESXi服务器遗忘密码的方法,包括使用命令行操作清除密码并重新设置root账户密码。
1万+

被折叠的 条评论
为什么被折叠?



