先决条件:
Mac OS主机
Parallels Desktop
Windows虚拟机
当忘记虚拟机的开机登陆密码时,打开主机终端,
输入
prlctl list --all
得到
UUID STATUS IP_ADDR NAME
{98352ca3-6e3a-4689-89b8-437a4610efaa} stopped - Kali Linux
{5e348f30-1bbf-47a7-b9b9-62ea314e49d0} running - Windows 7
{3acc6484-01de-4976-a485-c61a322102d5} stopped - 副本隶属 Windows 7
忘记的是Windows 7开机密码,并且Windows 7用户名称若为haha
则输入
prlctl set 5e348f30-1bbf-47a7-b9b9-62ea314e49d0 --userpasswd haha:111
意味着将开机密码设置为111
随后终端显示
Only host administrator can change user password on the guest OS.
Confirm your administration credentials:
则输入你的主机账户。
如果主机名为aaa,密码为12345678
在输完主机账户密码后,得到
Username: bzm
Password:
Authentication tokens updated successfully.
Success. The operation was successfully completed.
The VM has been successfully configured.
至此,你的虚拟机账户haha的密码已经改为111