Skip to content

Commit 50fa836

Browse files
committed
Change examples/vmnet.yaml to use a managed network
Signed-off-by: Jan Dubois <[email protected]>
1 parent 42fcd35 commit 50fa836

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ jobs:
134134
make PREFIX=/opt/vde
135135
sudo make PREFIX=/opt/vde install
136136
)
137+
(
138+
limactl sudoers | sudo tee /etc/sudoers.d/lima
139+
)
137140
- name: Prepare ssh
138141
run: |
139142
if [ -e ~/.ssh/id_rsa ]; then

examples/vmnet.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ ssh:
1414
# (TODO: assign localPort automatically)
1515
localPort: 60105
1616

17-
network:
17+
networks:
1818
# The instance can get routable IP addresses from the vmnet framework using
19-
# https://github.com/lima-vm/vde_vmnet. Both vde_switch and vde_vmnet
20-
# daemons must be running before the instance is started. The interface type
21-
# (host, shared, or bridged) is configured in vde_vmnet and not lima.
22-
vde:
23-
- vnl: "vde:///var/run/vde.ctl"
19+
# https://github.com/lima-vm/vde_vmnet. Available networks are defined in
20+
# $LIMA_HOME/_config/networks.yaml. Supported network types are "host",
21+
# "shared", or "bridged".
22+
- lima: shared

0 commit comments

Comments
 (0)