|
10 | 10 |
|
11 | 11 | Requires macOS 10.15 or later.
|
12 | 12 |
|
13 |
| -```console |
14 |
| -brew install vde |
| 13 | +### Step 1: Install vde-2 (`vde_switch`) |
15 | 14 |
|
16 |
| -make |
| 15 | +The version of `vde-2` must be [commit 50964c3f](https://github.com/virtualsquare/vde-2/tree/50964c3f) (2021-08-31) or later. |
| 16 | + |
| 17 | +The `--prefix` dir below does not necessarily need to be `/opt/vde`, however, it is highly recommended |
| 18 | +to set the prefix to a directory that can be only written by the root. |
| 19 | + |
| 20 | +Note that `/usr/local` is typically chowned for a non-root user on Homebrew environments, so |
| 21 | +`/usr/local` is *not* an appropriate prefix. |
17 | 22 |
|
| 23 | +```bash |
| 24 | +git clone https://github.com/virtualsquare/vde-2.git |
| 25 | +cd vde-2 |
| 26 | +autoreconf -fis |
| 27 | +./configure --prefix=/opt/vde |
| 28 | +make |
18 | 29 | sudo make install
|
19 | 30 | ```
|
20 | 31 |
|
| 32 | +### Step 2: Install `vde_vmnet` |
| 33 | +```bash |
| 34 | +git clone https://github.com/lima-vm/vde_vmnet |
| 35 | +make PREFIX=/opt/vde |
| 36 | +sudo make PREFIX=/opt/vde install |
| 37 | +``` |
| 38 | + |
21 | 39 | The following files will be installed:
|
22 |
| -- `/usr/local/bin/vde_vmnet` |
| 40 | +- `/opt/vde/bin/vde_vmnet` |
23 | 41 | - `/Library/LaunchDaemons/io.github.virtualsquare.vde-2.vde_switch.plist`
|
24 | 42 | - `/Library/LaunchDaemons/io.github.lima-vm.vde_vmnet.plist`
|
25 | 43 | - Configured to use `192.168.105.0/24`. Modifiy the file if it conflicts with your local network.
|
@@ -86,7 +104,7 @@ Note: make sure to run `vde_vmnet` with root (`sudo`). See [FAQs](#FAQs) for the
|
86 | 104 | ### PTP mode (Switchless mode)
|
87 | 105 |
|
88 | 106 | - Pros: doesn't require the `vde_switch` process to be running
|
89 |
| -- Cons: no support for multi-VM |
| 107 | +- Cons: Only single QEMU process can connect to the socket. Multiple `vde_vmnet` processes need to be launched for multiple QEMU processes. |
90 | 108 |
|
91 | 109 | To enable PTP mode, append `[]` to the socket path argument of `vde_vmnet`.
|
92 | 110 |
|
|
0 commit comments