1
+ # ===================================================================== #
2
+ # BASIC CONFIGURATION
3
+ # ===================================================================== #
4
+
1
5
# Arch: "default", "x86_64", "aarch64".
2
6
# "default" corresponds to the host architecture.
3
7
arch : " default"
@@ -31,20 +35,6 @@ memory: "4GiB"
31
35
# Default: "100GiB"
32
36
disk : " 100GiB"
33
37
34
- network :
35
- # The instance can get routable IP addresses from the vmnet framework using
36
- # https://github.com/AkihiroSuda/vde_vmnet. Both vde_switch and vde_vmnet
37
- # daemons must be running before the instance is started. The interface type
38
- # (host, shared, or bridged) is configured in vde_vmnet and not lima.
39
- vde :
40
- # url points to the vde_switch socket directory
41
- # - url: "/var/run/vde.ctl"
42
- # # MAC address of the instance; lima will pick one based on the instance name,
43
- # # so DHCP assigned ip addresses should remain constant over instance restarts.
44
- # macAddress: ""
45
- # # Interface name, defaults to "vde0", "vde1", etc.
46
- # name: ""
47
-
48
38
# Expose host directories to the guest
49
39
# Default: none
50
40
mounts :
67
57
# Default: true
68
58
loadDotSSHPubKeys : true
69
59
70
- firmware :
71
- # Use legacy BIOS instead of UEFI.
72
- # Default: false
73
- legacyBIOS : false
74
-
75
- video :
76
- # QEMU display, e.g., "none", "cocoa", "sdl".
77
- # As of QEMU v5.2, enabling this is known to have negative impact
78
- # on performance on macOS hosts: https://gitlab.com/qemu-project/qemu/-/issues/334
79
- # Default: "none"
80
- display : " none"
60
+ # ===================================================================== #
61
+ # ADVANCED CONFIGURATION
62
+ # ===================================================================== #
81
63
82
64
containerd :
83
65
# Enable system-wide (aka rootful) containerd and its dependencies (BuildKit, Stargz Snapshotter)
@@ -87,32 +69,6 @@ containerd:
87
69
# Default: true
88
70
user : true
89
71
90
- # Port forwarding rules. Forwarding between ports 22 and ssh.localPort cannot be overridden.
91
- # Rules are checked sequentially until the first one matches.
92
- # portForwards:
93
- # - guestPort: 443
94
- # hostIP: "0.0.0.0" # overrides the default value "127.0.0.1"; allows privileged port forwarding
95
- # # default: hostPort: 443 (same as guestPort)
96
- # # default: guestIP: "127.0.0.1" (also matches bind addresses "0.0.0.0", "::", and "::1")
97
- # # default: proto: "tcp" (only valid value right now)
98
- # - guestPortRange: [4000, 4999]
99
- # hostIP: "0.0.0.0" # overrides the default value "127.0.0.1"
100
- # # default: hostPortRange: [4000, 4999] (must specify same number of ports as guestPortRange)
101
- # - guestPort: 80
102
- # hostPort: 8080 # overrides the default value 80
103
- # - guestIP: "127.0.0.2" # overrides the default value "127.0.0.1"
104
- # hostIP: "127.0.0.2" # overrides the default value "127.0.0.1"
105
- # # default: guestPortRange: [1024, 65535]
106
- # # default: hostPortRange: [1024, 65535]
107
- # - guestPort: 8888
108
- # ignore: true (don't forward this port)
109
- # # Lima internally appends this fallback rule at the end:
110
- # - guestIP: "127.0.0.1"
111
- # guestPortRange: [1024, 65535]
112
- # hostIP: "127.0.0.1"
113
- # hostPortRange: [1024, 65535]
114
- # # Any port still not matched by a rule will not be forwarded (ignored)
115
-
116
72
# Provisioning scripts need to be idempotent because they might be called
117
73
# multiple times, e.g. when the host VM is being restarted.
118
74
# provision:
@@ -146,3 +102,68 @@ containerd:
146
102
# hint: |
147
103
# vim was not installed in the guest. Make sure the package system is working correctly.
148
104
# Also see "/var/log/cloud-init-output.log" in the guest.
105
+
106
+ # ===================================================================== #
107
+ # FURTHER ADVANCED CONFIGURATION
108
+ # ===================================================================== #
109
+
110
+ firmware :
111
+ # Use legacy BIOS instead of UEFI.
112
+ # Default: false
113
+ legacyBIOS : false
114
+
115
+ video :
116
+ # QEMU display, e.g., "none", "cocoa", "sdl".
117
+ # As of QEMU v5.2, enabling this is known to have negative impact
118
+ # on performance on macOS hosts: https://gitlab.com/qemu-project/qemu/-/issues/334
119
+ # Default: "none"
120
+ display : " none"
121
+
122
+ network :
123
+ # The instance can get routable IP addresses from the vmnet framework using
124
+ # https://github.com/lima-vm/vde_vmnet. Both vde_switch and vde_vmnet
125
+ # daemons must be running before the instance is started. The interface type
126
+ # (host, shared, or bridged) is configured in vde_vmnet and not lima.
127
+ vde :
128
+ # vnl (virtual network locator) points to the vde_switch socket directory,
129
+ # optionally with vde:// prefix
130
+ # - vnl: "vde:///var/run/vde.ctl"
131
+ # # VDE Switch port number (not TCP/UDP port number). Set to 65535 for PTP mode.
132
+ # # Default: 0
133
+ # switchPort: 0
134
+ # # MAC address of the instance; lima will pick one based on the instance name,
135
+ # # so DHCP assigned ip addresses should remain constant over instance restarts.
136
+ # macAddress: ""
137
+ # # Interface name, defaults to "vde0", "vde1", etc.
138
+ # name: ""
139
+
140
+ # Port forwarding rules. Forwarding between ports 22 and ssh.localPort cannot be overridden.
141
+ # Rules are checked sequentially until the first one matches.
142
+ # portForwards:
143
+ # - guestPort: 443
144
+ # hostIP: "0.0.0.0" # overrides the default value "127.0.0.1"; allows privileged port forwarding
145
+ # # default: hostPort: 443 (same as guestPort)
146
+ # # default: guestIP: "127.0.0.1" (also matches bind addresses "0.0.0.0", "::", and "::1")
147
+ # # default: proto: "tcp" (only valid value right now)
148
+ # - guestPortRange: [4000, 4999]
149
+ # hostIP: "0.0.0.0" # overrides the default value "127.0.0.1"
150
+ # # default: hostPortRange: [4000, 4999] (must specify same number of ports as guestPortRange)
151
+ # - guestPort: 80
152
+ # hostPort: 8080 # overrides the default value 80
153
+ # - guestIP: "127.0.0.2" # overrides the default value "127.0.0.1"
154
+ # hostIP: "127.0.0.2" # overrides the default value "127.0.0.1"
155
+ # # default: guestPortRange: [1024, 65535]
156
+ # # default: hostPortRange: [1024, 65535]
157
+ # - guestPort: 8888
158
+ # ignore: true (don't forward this port)
159
+ # # Lima internally appends this fallback rule at the end:
160
+ # - guestIP: "127.0.0.1"
161
+ # guestPortRange: [1024, 65535]
162
+ # hostIP: "127.0.0.1"
163
+ # hostPortRange: [1024, 65535]
164
+ # # Any port still not matched by a rule will not be forwarded (ignored)
165
+
166
+ # ===================================================================== #
167
+ # END OF TEMPLATE
168
+ # ===================================================================== #
169
+
0 commit comments