File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Unlike `vde_vmnet`, `socket_vmnet` does not depend on VDE.
15
15
16
16
- [ Install] ( #install )
17
17
- [ From Homebrew] ( #from-homebrew )
18
+ - [ From MacPorts] ( #from-macports )
18
19
- [ From source] ( #from-source )
19
20
- [ Usage] ( #usage )
20
21
- [ QEMU] ( #qemu )
@@ -97,6 +98,52 @@ sudo ${HOMEBREW_PREFIX}/bin/brew services stop socket_vmnet
97
98
98
99
</details >
99
100
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
+
100
147
### From source
101
148
102
149
<details >
You can’t perform that action at this time.
0 commit comments