You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By passing `--vmnet-network-uuid=<UUID>` and `--vmnet-mode=host` to `socket_vmnet`, the internal DHCP will be disabled.
357
+
This is useful for situations where the users want to create a network with statically assigned IP addresses or where another VMs is running its own DHCP server.
358
+
This mode does not come with a launchd service.
359
+
354
360
## FAQs
355
361
356
362
### Why does `socket_vmnet` require root?
@@ -387,13 +393,20 @@ On the other hand, `socket_vmnet` does not require the entire QEMU process to ru
387
393
388
394
### How to use static IP addresses?
389
395
396
+
Two options:
397
+
398
+
#### By using a shorter DHCP range
390
399
When `--vmnet-gateway=IP` is set to "192.168.105.1", the whole subnet (192.168.105.2-192.168.105.254) is used as the DHCP range.
391
400
392
401
To use static IP addresses, limit the DHCP range with `--vmnet-dhcp-end=IP`.
393
402
394
403
For example, `--vmnet-gateway=192.168.105.1 --vmnet-dhcp-end=192.168.105.100` allows using `192.168.105.101-192.168.105.254`
395
404
as non-DHCP static addresses.
396
405
406
+
#### By setting up network UUID (only in vmnet.host mode)
407
+
408
+
When `--vmnet-mode=host` and `--vmnet-network-uuid` are set, the internal DHCP is disabled and you are free to use static IP addresses. You still need to set `--vmnet-gateway=IP` to avoid collision with other vmnet networks.
409
+
397
410
### How to reserve DHCP addresses?
398
411
399
412
- Decide a unique MAC address for the VM, e.g. `de:ad:be:ef:00:01`.
0 commit comments