File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,47 @@ sudo tar Cxzvf / "${FILE}" opt/socket_vmnet
61
61
62
62
This downloads and installs the latest release from < https://github.com/lima-vm/socket_vmnet/releases > .
63
63
64
+ <details >
65
+
66
+ <summary >Launchd (optional, not needed for Lima)</summary >
67
+
68
+ <p >
69
+
70
+ To install the launchd service:
71
+
72
+ ``` bash
73
+ SERVICE_ID=io.github.lima-vm.socket_vmnet
74
+ sudo cp " /opt/socket_vmnet/share/doc/socket_vmnet/launchd/$SERVICE_ID .plist" " /Library/LaunchDaemons/$SERVICE_ID .plist"
75
+ sudo launchctl bootstrap system " /Library/LaunchDaemons/$SERVICE_ID .plist"
76
+ sudo launchctl enable system/$SERVICE_ID
77
+ sudo launchctl kickstart -kp system/$SERVICE_ID
78
+ ```
79
+
80
+ The launchd unit file will be installed as ` /Library/LaunchDaemons/io.github.lima-vm.socket_vmnet.plist ` .
81
+
82
+ Default configuration:
83
+
84
+ | Config | Value |
85
+ | ------- | ------------------------------ |
86
+ | Socket | ` /var/run/socket_vmnet ` |
87
+ | Stdout | ` /var/log/socket_vmnet/stdout ` |
88
+ | Stderr | ` /var/log/socket_vmnet/stderr ` |
89
+ | Gateway | 192.168.105.1 |
90
+
91
+ To uninstall the launchd service:
92
+
93
+ ``` bash
94
+ SERVICE_ID=io.github.lima-vm.socket_vmnet
95
+ sudo launchctl bootout system " /Library/LaunchDaemons/$SERVICE_ID .plist" || true
96
+ sudo rm -f " /Library/LaunchDaemons/$SERVICE_ID .plist"
97
+ ```
98
+
99
+ </p >
100
+
101
+ </details >
102
+
64
103
### From source
104
+
65
105
``` bash
66
106
sudo make install.bin
67
107
```
You can’t perform that action at this time.
0 commit comments