Skip to content

Commit b6f7467

Browse files
committed
default.yaml: refactor
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 6759b52 commit b6f7467

File tree

1 file changed

+68
-51
lines changed

1 file changed

+68
-51
lines changed

pkg/limayaml/default.yaml

Lines changed: 68 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# ===================================================================== #
2+
# BASIC CONFIGURATION
3+
# ===================================================================== #
4+
15
# Arch: "default", "x86_64", "aarch64".
26
# "default" corresponds to the host architecture.
37
arch: "default"
@@ -31,20 +35,6 @@ memory: "4GiB"
3135
# Default: "100GiB"
3236
disk: "100GiB"
3337

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-
4838
# Expose host directories to the guest
4939
# Default: none
5040
mounts:
@@ -67,17 +57,9 @@ ssh:
6757
# Default: true
6858
loadDotSSHPubKeys: true
6959

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+
# ===================================================================== #
8163

8264
containerd:
8365
# Enable system-wide (aka rootful) containerd and its dependencies (BuildKit, Stargz Snapshotter)
@@ -87,32 +69,6 @@ containerd:
8769
# Default: true
8870
user: true
8971

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-
11672
# Provisioning scripts need to be idempotent because they might be called
11773
# multiple times, e.g. when the host VM is being restarted.
11874
# provision:
@@ -146,3 +102,64 @@ containerd:
146102
# hint: |
147103
# vim was not installed in the guest. Make sure the package system is working correctly.
148104
# 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

Comments
 (0)