Lima: Linux VMs on the Mac
Summary
Julia Evans describes Lima as a straightforward way to an integrated Linux VM on macOS. limactl start default creates and starts the default machine. The default configuration described used Ubuntu 22.04.
Ideas
- A default configuration removes many decisions before the first start.
- Lima automatically downloads a suitable Linux image.
- The
limacommand opens a shell in the VM directly. - By default the macOS home directory appears read-only in the guest.
- Configurations allow separate machines for different projects.
Insights
- Good defaults often decide adoption more than maximum configurability.
- Read-only shares combine convenience with a limited blast radius.
- A shared development VM can be more pragmatic than perfect project isolation.
Facts
- Lima stands for “Linux on Mac”.
Recommendations
- Keep host directories read-only at first and only allow the project paths you need.
- Keep customised Lima configurations under version control together with development projects.
References
Links to the original source and the Web Archive open in a new tab.