Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update macOS setup instructions #1693

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update macOS setup instructions #1693

wants to merge 1 commit into from

Conversation

nirs
Copy link
Member

@nirs nirs commented Dec 4, 2024

Add socket_vment instructions tailored for drenv, that can be copied and pasted in the shell for easy installation.

  • Recommend latest Lima version
  • Recommend installing socket_vmnet from binary package instead of source
  • Add copyable instructions for installing socket_vmnet binary package
  • Replace the note about brew with note about installing the launchd service. The docs already warn about brew.

Example run:

% VERSION="$(curl -fsSL https://api.github.com/repos/lima-vm/socket_vmnet/releases/latest | jq -r .tag_name)"
FILE="socket_vmnet-${VERSION:1}-$(uname -m).tar.gz"
SERVICE_ID="io.github.lima-vm.socket_vmnet"
curl -OSL "https://github.com/lima-vm/socket_vmnet/releases/download/${VERSION}/${FILE}"
sudo tar Cxzvf / "${FILE}" opt/socket_vmnet
sudo cp "/opt/socket_vmnet/share/doc/socket_vmnet/launchd/$SERVICE_ID.plist" "/Library/LaunchDaemons/$SERVICE_ID.plist"
sudo launchctl bootstrap system "/Library/LaunchDaemons/$SERVICE_ID.plist"
sudo launchctl enable system/$SERVICE_ID
sudo launchctl kickstart -kp system/$SERVICE_ID
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 20408  100 20408    0     0  40636      0 --:--:-- --:--:-- --:--:-- 40636
x ./opt/socket_vmnet/
x ./opt/socket_vmnet/bin/
x ./opt/socket_vmnet/bin/socket_vmnet
x ./opt/socket_vmnet/bin/socket_vmnet_client
x ./opt/socket_vmnet/share/
x ./opt/socket_vmnet/share/doc/
x ./opt/socket_vmnet/share/doc/socket_vmnet/
x ./opt/socket_vmnet/share/doc/socket_vmnet/LICENSE
x ./opt/socket_vmnet/share/doc/socket_vmnet/README.md
x ./opt/socket_vmnet/share/doc/socket_vmnet/etc_sudoers.d/
x ./opt/socket_vmnet/share/doc/socket_vmnet/etc_sudoers.d/README.md
x ./opt/socket_vmnet/share/doc/socket_vmnet/etc_sudoers.d/socket_vmnet
x ./opt/socket_vmnet/share/doc/socket_vmnet/launchd/
x ./opt/socket_vmnet/share/doc/socket_vmnet/launchd/io.github.lima-vm.socket_vmnet.bridged.en0.plist
x ./opt/socket_vmnet/share/doc/socket_vmnet/launchd/io.github.lima-vm.socket_vmnet.plist
service spawned with pid: 40137

@GowthamShanmugam
Copy link

I will test this change

Add socket_vment instructions tailored for drenv, that can be copied
and pasted in the shell for easy installation.

- Recommend latest Lima version
- Recommend installing socket_vmnet from binary package instead of source
- Add copyable instructions for installing socket_vmnet binary package
- Replace the note about brew with note about installing the launchd
  service. The docs already warn about brew.

Signed-off-by: Nir Soffer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants