Skip to content

Commit d1e946c

Browse files
authored
Merge pull request #3259 from AkihiroSuda/docs
docs/config/network: follow-up
2 parents f75e39c + c10c9a5 commit d1e946c

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

website/content/en/docs/config/network/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ connect_to_vm_via{"Connect to the VM via"} -- "localhost" --> default["Default"]
1313
vm -- "qemu" --> shared["socket_vmnet (shared)"]
1414
connect_from -- "Other VMs" --> userV2["user-v2"]
1515
connect_from -- "Other hosts" --> bridged["socket_vmnet (bridged)"]
16-
```
16+
```

website/content/en/docs/config/network/user-v2.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
---
2-
title: Lima user-v2 network
2+
title: user-v2 network
33
weight: 32
44
---
55

6-
## Lima user-v2 network
7-
86
| ⚡ Requirement | Lima >= 0.16.0 |
97
|-------------------|----------------|
108

@@ -44,4 +42,4 @@ An instance's IP address is resolvable from another instance as `lima-<NAME>.int
4442

4543
_Note_
4644

47-
- Enabling this network will disable the [default user-mode network](#user-mode-network--1921685024-)
45+
- Enabling this network will disable the [default user-mode network]({{< ref "/docs/config/network/user" >}})

website/content/en/docs/config/network/user.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@ weight: 30
44

55
---
66

7-
## Default user-mode network (192.168.5.0/24)
8-
97
By default Lima only enables the user-mode networking aka "slirp".
108

11-
### Guest IP (192.168.5.15)
9+
The subnet is hard-coded to `192.168.5.0/24`.
10+
Use [`user-v2`]]({{< ref "/docs/config/network/user-v2" >}}) network to customize the subnet.
11+
12+
## Guest IP (192.168.5.15)
1213

1314
The guest IP address is set to `192.168.5.15`.
1415

1516
This IP address is not accessible from the host by design.
1617

17-
Use VMNet (see below) to allow accessing the guest IP from the host and other guests.
18+
Use [VMNet]]({{< ref "/docs/config/network/vmnet" >}}) to allow accessing the guest IP from the host and other guests.
1819

19-
### Host IP (192.168.5.2)
20+
## Host IP (192.168.5.2)
2021

2122
The loopback addresses of the host is `192.168.5.2` and is accessible from the guest as `host.lima.internal`.
2223

23-
### DNS (192.168.5.3)
24+
## DNS (192.168.5.3)
2425

2526
If `hostResolver.enabled` in `lima.yaml` is true, then the hostagent is going to run a DNS server over tcp and udp - each on a separate randomly selected free port. This server does a local lookup using the native host resolver, so it will deal correctly with VPN configurations and split-DNS setups, as well as mDNS, local `/etc/hosts` etc. For this the hostagent has to be compiled with `CGO_ENABLED=1` as default Go resolver is [broken](https://github.com/golang/go/issues/12524).
2627

website/content/en/docs/config/network/vmnet.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ weight: 33
44

55
---
66

7-
## VMNet networks
7+
| ⚡ Requirement | macOS |
8+
|-------------------|-------|
89

910
VMNet assigns a "real" IP address that is reachable from the host.
1011

1112
The configuration steps are different for each network type:
1213
- [vzNAT](#vzNAT)
1314
- [socket_vmnet](#socket_vmnet)
1415

15-
### vzNAT
16+
## vzNAT
1617

1718
| ⚡ Requirement | Lima >= 0.14, macOS >= 13.0 |
1819
|-------------------|-----------------------------|
1920

20-
For [VZ](../vmtype/#vz) instances, the "vzNAT" network can be configured as follows:
21+
For [VZ]({{< ref "/docs/config/vmtype#vz" >}}) instances, the "vzNAT" network can be configured as follows:
2122
{{< tabpane text=true >}}
2223
{{% tab header="CLI" %}}
2324
```bash
@@ -36,8 +37,8 @@ The range of the IP address is not specifiable.
3637
3738
The "vzNAT" network does not need the `socket_vmnet` binary and the `sudoers` file.
3839

39-
### socket_vmnet
40-
#### Managed (192.168.105.0/24)
40+
## socket_vmnet
41+
### Managed (192.168.105.0/24)
4142

4243
[`socket_vmnet`](https://github.com/lima-vm/socket_vmnet) can be used for adding another guest IP that is accessible from the host and other guests,
4344
without depending on vz.
@@ -168,7 +169,7 @@ sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/libexec/bootpd
168169
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblock /usr/libexec/bootpd
169170
```
170171

171-
#### Unmanaged
172+
### Unmanaged
172173
Lima can also connect to "unmanaged" networks addressed by "socket". This
173174
means that the daemons will not be controlled by Lima, but must be started
174175
before the instance. The interface type (host, shared, or bridged) is
@@ -177,4 +178,4 @@ configured in `socket_vmnet` and not in lima.
177178
```yaml
178179
networks:
179180
- socket: "/var/run/socket_vmnet"
180-
```
181+
```

0 commit comments

Comments
 (0)