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/lima-vm/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,64 @@ 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
+ # url points to the vde_switch socket directory
129
+ # - url: "/var/run/vde.ctl"
130
+ # # MAC address of the instance; lima will pick one based on the instance name,
131
+ # # so DHCP assigned ip addresses should remain constant over instance restarts.
132
+ # macAddress: ""
133
+ # # Interface name, defaults to "vde0", "vde1", etc.
134
+ # name: ""
135
+
136
+ # Port forwarding rules. Forwarding between ports 22 and ssh.localPort cannot be overridden.
137
+ # Rules are checked sequentially until the first one matches.
138
+ # portForwards:
139
+ # - guestPort: 443
140
+ # hostIP: "0.0.0.0" # overrides the default value "127.0.0.1"; allows privileged port forwarding
141
+ # # default: hostPort: 443 (same as guestPort)
142
+ # # default: guestIP: "127.0.0.1" (also matches bind addresses "0.0.0.0", "::", and "::1")
143
+ # # default: proto: "tcp" (only valid value right now)
144
+ # - guestPortRange: [4000, 4999]
145
+ # hostIP: "0.0.0.0" # overrides the default value "127.0.0.1"
146
+ # # default: hostPortRange: [4000, 4999] (must specify same number of ports as guestPortRange)
147
+ # - guestPort: 80
148
+ # hostPort: 8080 # overrides the default value 80
149
+ # - guestIP: "127.0.0.2" # overrides the default value "127.0.0.1"
150
+ # hostIP: "127.0.0.2" # overrides the default value "127.0.0.1"
151
+ # # default: guestPortRange: [1024, 65535]
152
+ # # default: hostPortRange: [1024, 65535]
153
+ # - guestPort: 8888
154
+ # ignore: true (don't forward this port)
155
+ # # Lima internally appends this fallback rule at the end:
156
+ # - guestIP: "127.0.0.1"
157
+ # guestPortRange: [1024, 65535]
158
+ # hostIP: "127.0.0.1"
159
+ # hostPortRange: [1024, 65535]
160
+ # # Any port still not matched by a rule will not be forwarded (ignored)
161
+
162
+ # ===================================================================== #
163
+ # END OF TEMPLATE
164
+ # ===================================================================== #
165
+
0 commit comments