Starting a vz with Rosetta does not work on macOS13 (`the binary was built with __MAC_OS_X_VERSION_MAX_ALLOWED=130300; needs recompilation`)
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### Description
I think lima built on macOS13 has a bug.
## Expectation
It should start the VM with Rosetta enabled without any warning or error
## Current state
```
Unable to configure Rosetta: failed to create a new rosetta directory share caching option: unsupported build target macOS version for 14.0 (the binary was built with __MAC_OS_X_VERSION_MAX_ALLOWED=130300; needs recompilation)
```
I looked into [the code which emits the error](https://github.com/Code-Hex/vz/blob/9f75f8e547d2134dc87c29bfaddf99d32df8eeb2/shared_directory_arm64.go#L206).
Maybe the cause is that [vz is included when OS is 13 or newer](https://github.com/lima-vm/lima/blob/master/Makefile#L27), however [NewLinuxRosettaAbstractSocketCachingOptions](https://github.com/Code-Hex/vz/blob/9f75f8e547d2134dc87c29bfaddf99d32df8eeb2/shared_directory_arm64.go#L206) works only on macOS 14 and newer.
So, I think the above error occurs on macOS13.
Could anyone look into the problem and fix it?
Contributor guide
Assessment
This issue has not been assessed yet.