2
2
# BASIC CONFIGURATION
3
3
# ===================================================================== #
4
4
5
- # Default values are specified by `null` instead of the builtin default value,
6
- # so they can be overridden by the default.yaml mechanism documented at the
7
- # end of this file.
5
+ # Default values in this YAML file are specified by `null` instead of Lima's "builtin default" values,
6
+ # so they can be overridden by the $LIMA_HOME/_config/default.yaml mechanism documented at the end of this file.
8
7
9
8
# Arch: "default", "x86_64", "aarch64".
10
- # Default : "default" (corresponds to the host architecture)
9
+ # 🟢 Builtin default : "default" (corresponds to the host architecture)
11
10
arch : null
12
11
13
- # An image must support systemd and cloud-init .
14
- # Ubuntu and Fedora are known to work.
15
- # Default: none (must be specified)
12
+ # OpenStack-compatible disk image .
13
+ # 🟢 Builtin default: null (must be specified)
14
+ # 🔵 This file: Ubuntu 21.10 Impish Indri images
16
15
images :
17
16
# Try to use a local image first.
18
17
- location : " ~/Downloads/impish-server-cloudimg-amd64.img"
@@ -28,55 +27,58 @@ images:
28
27
arch : " aarch64"
29
28
30
29
# CPUs: if you see performance issues, try limiting cpus to 1.
31
- # Default : 4
30
+ # 🟢 Builtin default : 4
32
31
cpus : null
33
32
34
33
# Memory size
35
- # Default : "4GiB"
34
+ # 🟢 Builtin default : "4GiB"
36
35
memory : null
37
36
38
37
# Disk size
39
- # Default : "100GiB"
38
+ # 🟢 Builtin default : "100GiB"
40
39
disk : null
41
40
42
41
# Expose host directories to the guest, the mount point might be accessible from all UIDs in the guest
43
- # Default: null
42
+ # 🟢 Builtin default: null (Mount nothing)
43
+ # 🔵 This file: Mount the home as read-only, /tmp/lima as writable
44
44
mounts :
45
45
- location : " ~"
46
46
# CAUTION: `writable` SHOULD be false for the home directory.
47
47
# Setting `writable` to true is possible, but untested and dangerous.
48
- # Default : false
48
+ # 🟢 Builtin default : false
49
49
writable : null
50
50
sshfs :
51
51
# Enabling the SSHFS cache will increase performance of the mounted filesystem, at
52
52
# the cost of potentially not reflecting changes made on the host in a timely manner.
53
53
# Warning: It looks like PHP filesystem access does not work correctly when
54
54
# the cache is disabled.
55
- # Default : true
55
+ # 🟢 Builtin default : true
56
56
cache : null
57
57
# SSHFS has an optional flag called 'follow_symlinks'. This allows mounts
58
58
# to be properly resolved in the guest os and allow for access to the
59
59
# contents of the symlink. As a result, symlinked files & folders on the Host
60
60
# system will look and feel like regular files directories in the Guest OS.
61
- # Default : false
61
+ # 🟢 Builtin default : false
62
62
followSymlinks : null
63
63
- location : " /tmp/lima"
64
+ # 🟢 Builtin default: false
65
+ # 🔵 This file: true (only for "/tmp/lima")
64
66
writable : true
65
- sshfs :
66
- followSymlinks : null
67
67
68
68
ssh :
69
69
# A localhost port of the host. Forwarded to port 22 of the guest.
70
- # Default: 0 (automatically assigned to a free port)
70
+ # 🟢 Builtin default: 0 (automatically assigned to a free port)
71
+ # NOTE: when the instance name is "default", the builtin default value is set to
72
+ # 60022 for backward compatibility.
71
73
localPort : 0
72
74
# Load ~/.ssh/*.pub in addition to $LIMA_HOME/_config/user.pub .
73
75
# This option is useful when you want to use other SSH-based
74
76
# applications such as rsync with the Lima instance.
75
77
# If you have an insecure key under ~/.ssh, do not use this option.
76
- # Default : true
78
+ # 🟢 Builtin default : true
77
79
loadDotSSHPubKeys : null
78
80
# Forward ssh agent into the instance.
79
- # Default : false
81
+ # 🟢 Builtin default : false
80
82
forwardAgent : null
81
83
82
84
# ===================================================================== #
85
87
86
88
containerd :
87
89
# Enable system-wide (aka rootful) containerd and its dependencies (BuildKit, Stargz Snapshotter)
88
- # Default : false
90
+ # 🟢 Builtin default : false
89
91
system : null
90
92
# Enable user-scoped (aka rootless) containerd and its dependencies
91
- # Default : true
93
+ # 🟢 Builtin default : true
92
94
user : null
93
95
# # Override containerd archive
94
- # # Default : hard-coded URL with hard-coded digest (see the output of `limactl info | jq .defaultTemplate.containerd.archives`)
96
+ # # 🟢 Builtin default : hard-coded URL with hard-coded digest (see the output of `limactl info | jq .defaultTemplate.containerd.archives`)
95
97
# archives:
96
98
# - location: "~/Downloads/nerdctl-full-X.Y.Z-linux-amd64.tar.gz"
97
99
# arch: "x86_64"
98
100
# digest: "sha256:..."
99
101
100
102
# Provisioning scripts need to be idempotent because they might be called
101
103
# multiple times, e.g. when the host VM is being restarted.
104
+ # 🟢 Builtin default: null
102
105
# provision:
103
106
# # `system` is executed with the root privilege
104
107
# - mode: system
@@ -116,6 +119,8 @@ containerd:
116
119
# set number
117
120
# EOF
118
121
122
+ # Probe scripts to check readiness.
123
+ # 🟢 Builtin default: null
119
124
# probes:
120
125
# # Only `readiness` probes are supported right now.
121
126
# - mode: readiness
@@ -139,25 +144,26 @@ containerd:
139
144
# You can see what options are available for host emulation with: `qemu-system-$(arch) -cpu help`.
140
145
# Setting of instructions is supported like this: "qemu64,+ssse3".
141
146
cpuType :
142
- # Default : "cortex-a72" (or "host" when running on arm64 )
147
+ # 🟢 Builtin default : "cortex-a72" (or "host" when running on aarch64 host )
143
148
aarch64 : null
144
- # Default : "qemu64" (or "host" when running on amd64 )
149
+ # 🟢 Builtin default : "qemu64" (or "host" when running on x86_64 host )
145
150
x86_64 : null
146
151
147
152
firmware :
148
- # Use legacy BIOS instead of UEFI.
149
- # Default : false
153
+ # Use legacy BIOS instead of UEFI. Ignored for aarch64.
154
+ # 🟢 Builtin default : false
150
155
legacyBIOS : null
151
156
152
157
video :
153
158
# QEMU display, e.g., "none", "cocoa", "sdl", "gtk".
154
- # As of QEMU v5 .2, enabling this is known to have negative impact
159
+ # As of QEMU v6 .2, enabling this is known to have negative impact
155
160
# on performance on macOS hosts: https://gitlab.com/qemu-project/qemu/-/issues/334
156
- # Default : "none"
161
+ # 🟢 Builtin default : "none"
157
162
display : null
158
163
159
164
# The instance can get routable IP addresses from the vmnet framework using
160
165
# https://github.com/lima-vm/vde_vmnet.
166
+ # 🟢 Builtin default: null
161
167
networks :
162
168
# Lima can manage daemons for networks defined in $LIMA_HOME/_config/networks.yaml
163
169
# automatically. Both vde_switch and vde_vmnet binaries must be installed into
@@ -177,7 +183,7 @@ networks:
177
183
# optionally with vde:// prefix
178
184
# - vnl: "vde:///var/run/vde.ctl"
179
185
# # VDE Switch port number (not TCP/UDP port number). Set to 65535 for PTP mode.
180
- # # Default : 0
186
+ # # Builtin default : 0
181
187
# switchPort: 0
182
188
# # MAC address of the instance; lima will pick one based on the instance name,
183
189
# # so DHCP assigned ip addresses should remain constant over instance restarts.
@@ -234,6 +240,7 @@ networks:
234
240
# The same template variables as for listing instances can be used, for example {{.Dir}}.
235
241
# You can view the complete list of variables using `limactl list --list-fields` command.
236
242
# It also includes {{.HostOS}} and {{.HostArch}} vars, for the runtime GOOS and GOARCH.
243
+ # 🟢 Builtin default: null
237
244
# message: |
238
245
# This will be shown to the user.
239
246
@@ -242,6 +249,7 @@ networks:
242
249
# to /etc/environment.
243
250
# If you set any of "ftp_proxy", "http_proxy", "https_proxy", or "no_proxy", then
244
251
# Lima will automatically set an uppercase variant to the same value as well.
252
+ # 🟢 Builtin default: null
245
253
# env:
246
254
# KEY: value
247
255
@@ -250,7 +258,7 @@ networks:
250
258
# replace the strings "localhost" and "127.0.0.1" with the host gateway address from inside
251
259
# the VM, so it stays routable. Use of the process environment can be disabled by setting
252
260
# propagateProxyEnv to false.
253
- # Default : true
261
+ # 🟢 Builtn default : true
254
262
propagateProxyEnv : null
255
263
256
264
# The host agent implements a DNS server that looks up host names on the host
@@ -260,13 +268,14 @@ propagateProxyEnv: null
260
268
# can only work when using a vmnet network interface and the host has working
261
269
# IPv6 configured as well.
262
270
hostResolver :
263
- # Default : true
271
+ # 🟢 Builtin default : true
264
272
enabled : null
265
- # Default : false
273
+ # 🟢 Builtin default : false
266
274
ipv6 : null
267
275
# Static names can be defined here as an alternative to adding them to the hosts /etc/hosts.
268
276
# Values can be either other hostnames, or IP addresses. The host.lima.internal name is
269
277
# predefined to specify the gateway address to the host.
278
+ # 🟢 Builtin default: null
270
279
hosts :
271
280
# guest.name: 127.1.1.1
272
281
# host.name: host.lima.internal
@@ -278,6 +287,7 @@ hostResolver:
278
287
# that has an IPv4 address, to the list. In case this still doesn't work (e.g. VPN
279
288
# setups), the servers can be specified here explicitly. If nameservers are specified
280
289
# here, then the configuration from network preferences will be ignored.
290
+ # 🟢 Builtin default: null
281
291
# dns:
282
292
# - 1.1.1.1
283
293
# - 1.0.0.1
0 commit comments