Skip to content

how to fix "lima v1.0.1 need socket_vmnet owned by "root"" #2961

Answered by AkihiroSuda
Bevisy asked this question in Q&A
Discussion options

You must be logged in to vote
git clone https://github.com/lima-vm/socket_vmnet
cd socket_vmnet
# Change "v1.1.7" to the actual latest release in https://github.com/lima-vm/socket_vmnet/releases
git checkout v1.1.7
make
sudo make PREFIX=/opt/socket_vmnet install.bin

# Set up the sudoers file for launching socket_vmnet from Lima
limactl sudoers >etc_sudoers.d_lima
less etc_sudoers.d_lima  # verify that the file looks correct
sudo install -o root etc_sudoers.d_lima /etc/sudoers.d/lima
rm etc_sudoers.d_lima

vi ~/.lima/_config/networks.yaml  # set paths.socketVMNet to "/opt/socket_vmnet/bin/socket_vmnet"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AkihiroSuda
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested component/network/vmnet
3 participants
Converted from issue

This discussion was converted from issue #2960 on December 02, 2024 10:00.