Closed jandubois closed 3 years ago
Could probably have just changed the owner of the symlink itself, but didn't test it yet.
Nope, this didn't work:
# chown -h root:staff vde_switch
# chmod -h 555 vde_switch
# ls -l vde_switch
lr-xr-xr-x 1 root staff 36 14 May 16:00 vde_switch -> ../Cellar/vde/2.3.2_1/bin/vde_switch
Only worked after
# cp ../Cellar/vde/2.3.2_1/bin/vde_switch .
# ls -l vde_switch
-r-xr-xr-x 1 root staff 94904 29 Jul 11:58 vde_switch
Thanks for reporting, but both CI (macOS 10.15) and my laptop (macOS 11.5) installs vde via brew…
FYI my host info
$ ls -l /usr/local/bin/vde_switch
lrwxr-xr-x 1 suda admin 36 11 24 2020 /usr/local/bin/vde_switch@ -> ../Cellar/vde/2.3.2_1/bin/vde_switch
$ ls -l /usr/local/Cellar/vde/2.3.2_1/bin/vde_switch
-r-xr-xr-x 1 suda staff 94904 11 24 2011 /usr/local/Cellar/vde/2.3.2_1/bin/vde_switch*
$ launchctl version
Darwin Bootstrapper Version 7.0.0: Thu Jun 17 18:37:42 PDT 2021; root:libxpc_executables-2038.120.1~154/launchd/RELEASE_X86_64
$ sw_vers
ProductName: macOS
ProductVersion: 11.5.1
BuildVersion: 20G80
The default launchd files of vde_vmnet
v0.3.0 works for me.
Closing this, as we don't want to use the brew formula installing into /usr/local/bin
anyways.
Or at least it didn't work for me.
I believe it is due to being installed as a symlink owned by my user instead of by root:
launchd refuses to load it:
It started working after I replaced the symlink with the file itself:
Could probably have just changed the owner of the symlink itself, but didn't test it yet.