KhaosT / MacVM

macOS VM for Apple Silicon using Virtualization API
Apache License 2.0
1.33k stars 96 forks source link

Can not login by blank password #47

Open zenkarsha opened 1 year ago

zenkarsha commented 1 year ago

I'd reset my macvm password to empty pwd, after restart vm, it can not login by simply press enter button. But it can pass the recovery choose disk asking permission password dialog.

zenkarsha commented 1 year ago

Solved.

https://superuser.com/questions/1648047/how-to-set-up-user-account-from-terminal-in-m1-mac-big-sur

Open vm by recovery mode and open terminal, then check your folder, and use script like:

dscl -f "/Volumes/Macintosh HD/private/var/db/dslocal/nodes/Default" localonly -passwd /Local/Target/Users/myusername PASSWORD

it will need you to insert your old password (the blank password), if it didn't work, try again.