From 25086f1b576153f1f19fafa1ee3f8e0f448bdce5 Mon Sep 17 00:00:00 2001 From: Link Dupont Date: Sat, 3 Feb 2024 21:41:03 -0500 Subject: [PATCH] docs: Add MacPorts to installation instructions Signed-off-by: Link Dupont --- README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/README.md b/README.md index 5dcbdef..4cc6702 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Unlike `vde_vmnet`, `socket_vmnet` does not depend on VDE. - [Install](#install) - [From Homebrew](#from-homebrew) + - [From MacPorts](#from-macports) - [From source](#from-source) - [Usage](#usage) - [QEMU](#qemu) @@ -97,6 +98,52 @@ sudo ${HOMEBREW_PREFIX}/bin/brew services stop socket_vmnet +### From MacPorts + +```bash +sudo port install socket_vmnet +``` + +The binaries will be installed onto the following paths: +- `/opt/local/bin/socket_vmnet` +- `/opt/local/bin/socket_vmnet_client` + +Run the following command to start the daemon manually: +```bash +sudo /opt/local/bin/socket_vmnet --vmnet-gateway=192.168.105.1 /var/run/socket_vmnet +``` + +
+ +Launchd (optional, not needed for Lima) + +

+ +To install the launchd service: +```bash +sudo port load socket_vmnet +``` + +The launchd unit file will be installed as +`/Library/LaunchDaemons/org.macports.socket_vmnet.plist`. + +Default configuration: + +Config | Value +--------|------------------------------------------------ +Socket | `/var/run/socket_vmnet` +Stdout | `/var/log/socket_vmnet.log` +Gateway | 192.168.105.1 + +To uninstall the launchd service: +```bash +sudo port unload socket_vmnet +``` + +

+ +
+ ### From source