cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.65k stars 102 forks source link

When turned on FileVault, tart run <name> --no-graphics can not run VM #831

Closed hologerry closed 1 month ago

hologerry commented 1 month ago

After I turned on FileVault, the --no-graphics does not working. When using tart run <name>, everything is fine, I can login and enter the desktop. When using tart <name> --no-graphics, the command produces no issues, while both ssh and vnc can not access VM.

image image
fkorotkov commented 1 month ago

Does you VM allow Remote Login? This setting should be enabled in Preferences inside the macOS guest.

hologerry commented 1 month ago

Yeah, I turned it on:

image
hologerry commented 1 month ago

When using tart run <name>, I can open ssh or vnc with the tart app window open.

hologerry commented 1 month ago
image
hologerry commented 1 month ago

I have figured this issue is caused by FileVault not SIP. I installed a new VM if the FileVault turned on, the --no-graphics not working.

hologerry commented 1 month ago

Could tart using the sudo fdesetup authrestart for FileVault decryption? https://www.reddit.com/r/macsysadmin/comments/ha8as7/remote_authenticated_filevault_restart/

fkorotkov commented 1 month ago

Seems some quirkiness of the macOS with enabled FileVault. Doesn't seem we can do anything on our side.