https://github.com/pythoninthegrass/lima_templates
Custom lima templates for VMs
https://github.com/pythoninthegrass/lima_templates
docker lima lima-vm linux
Last synced: 7 months ago
JSON representation
Custom lima templates for VMs
- Host: GitHub
- URL: https://github.com/pythoninthegrass/lima_templates
- Owner: pythoninthegrass
- License: unlicense
- Created: 2024-07-15T19:57:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-15T21:00:35.000Z (over 1 year ago)
- Last Synced: 2025-02-21T21:49:54.902Z (11 months ago)
- Topics: docker, lima, lima-vm, linux
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lima_templates
## Requirements
* macOS / Linux
* `vz` and `virtiofs` require macOS 13+ or Linux
* Working options for macOS 12 and below are `qemu` and `9p`
* [lima](https://lima-vm.io/docs/installation/)
## Quickstart
```bash
# install (macOS)
brew install lima socket_vmnet
# install (linux)
version=$(curl -fsSL https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name)
curl -fsSL "https://github.com/lima-vm/lima/releases/download/${version}/lima-${version:1}-$(uname -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local
# copy the network configuration
cp _config/networks.yaml ~/.lima/_config/
# setup the sudoers file for launching socket_vmnet from lima
limactl sudoers > /tmp/etc_sudoers.d_lima
sudo install -o root /tmp/etc_sudoers.d_lima /etc/sudoers.d/lima
# create alias
echo "alias lc='limactl'" >> ~/.bashrc
# create a new instance
lc start ubuntu-2004.yml --tty=false
# stop the instance
lc stop ubuntu-2004
# start the instance
lc start ubuntu-2004
# remove the instance
lc rm ubuntu-2004
# list all instances
lc ls
# shell into the instance
lc shell ubuntu-2004
```