https://rancher.com/ logo
Title
m

millions-lizard-73354

01/05/2023, 7:51 AM
Hi. I am using rancher desktop on a mac M1. Getting the following error :
'time="2023-01-03T10:44:27+05:30" level=fatal msg="networks.yaml field `paths.vdeSwitch` error: dir \\"/opt\\" is not owned by \\"root\\" (uid: 0), but by uid 1107314057"\n',
  code: 1,
  command: [
    '/Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl>',
    'start',
    '--tty=false',
    '0'
  ]
}
Error Starting Kubernetes
Error: /Applications/Rancher <http://Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl|Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl> exited with code 1
Any help would be appreciated.
f

fast-garage-66093

01/05/2023, 5:09 PM
The issue is that
/opt
needs to be owned by
root
because the
vde_vmnet
code will be run as root, so the code must not be modifiable by a non-root user. You could try
sudo chmod root:wheel /opt
to change it, and then verify with:
$ ls -ld /opt
drwxr-xr-x  8 root  wheel  256 10 Dec 23:26 /opt