Skip to content

Commit 25086f1

Browse files
committed
docs: Add MacPorts to installation instructions
Signed-off-by: Link Dupont <[email protected]>
1 parent 012f732 commit 25086f1

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Unlike `vde_vmnet`, `socket_vmnet` does not depend on VDE.
1515

1616
- [Install](#install)
1717
- [From Homebrew](#from-homebrew)
18+
- [From MacPorts](#from-macports)
1819
- [From source](#from-source)
1920
- [Usage](#usage)
2021
- [QEMU](#qemu)
@@ -97,6 +98,52 @@ sudo ${HOMEBREW_PREFIX}/bin/brew services stop socket_vmnet
9798

9899
</details>
99100

101+
### From MacPorts
102+
103+
```bash
104+
sudo port install socket_vmnet
105+
```
106+
107+
The binaries will be installed onto the following paths:
108+
- `/opt/local/bin/socket_vmnet`
109+
- `/opt/local/bin/socket_vmnet_client`
110+
111+
Run the following command to start the daemon manually:
112+
```bash
113+
sudo /opt/local/bin/socket_vmnet --vmnet-gateway=192.168.105.1 /var/run/socket_vmnet
114+
```
115+
116+
<details>
117+
118+
<summary>Launchd (optional, not needed for Lima)</summary>
119+
120+
<p>
121+
122+
To install the launchd service:
123+
```bash
124+
sudo port load socket_vmnet
125+
```
126+
127+
The launchd unit file will be installed as
128+
`/Library/LaunchDaemons/org.macports.socket_vmnet.plist`.
129+
130+
Default configuration:
131+
132+
Config | Value
133+
--------|------------------------------------------------
134+
Socket | `/var/run/socket_vmnet`
135+
Stdout | `/var/log/socket_vmnet.log`
136+
Gateway | 192.168.105.1
137+
138+
To uninstall the launchd service:
139+
```bash
140+
sudo port unload socket_vmnet
141+
```
142+
143+
</p>
144+
145+
</details>
146+
100147
### From source
101148

102149
<details>

0 commit comments

Comments
 (0)