KhaosT / MacVM

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

Can not login by blank password #47

Open zenkarsha opened 11 months ago

zenkarsha commented 11 months 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 11 months 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.