// LIMA 1.0.1 upgrade 후 FATA 에러 발생
// vm 실행시키려고 하니까 FATA[0000] networks.yaml field `paths.socketVMNet` ... 에러 뜸.
$ limactl start default
INFO[0000] Using the existing instance "default"
FATA[0000] networks.yaml field `paths.socketVMNet` error: file "/opt/homebrew/.../bin/socket_vmnet" is not owned by "root" ...
// limactl list 확인
// networks의 shared가 정의 안되어있다고 함. (~/.lima/_config/networks.yaml을 못 읽는 것 같았음.)
$ limactl list
WARN[0000] instance "default" has errors errors="[field `networks[0].lima` references network \"shared\" which is not defined in networks.yaml]"
NAME STATUS SSH VMTYPE ARCH CPUS MEMORY DISK DIR
default :0 0 0B 0B ~/.lima/orcl23ai
// /opt/homebrew/socket_vmnet/1.1.7/bin/socket_vmnet 와 그 상위의 모든 디렉토리가 root의 권한으로 되어있어야한다고 해서 socket_vmnet의 경로를 바꾸고 root 권한으로 만들어줌.
$ sudo mv /opt/homebrew/socket_vmnet/* /private/var/
$ sudo chown -R root /directory_where_you_want/socket_vmnet
// LIMA 0.22.0 에서 LIMA 1.0.1 로 업그레이드하면서 내부적으로 socket_vmnet 디렉토리와 명령어를 root로 확인하고 실행하게끔 만든 것 같다.
$ limactl start default
INFO[0000] Using the existing instance "default"
FATA[0000] sudoers file "/private/etc/sudoers.d/lima" is out of sync and must be regenerated (Hint: run `limactl sudoers >etc_sudoers.d_lima && sudo install -o root etc_sudoers.d_lima "/private/etc/sudoers.d/lima"`))
// FATA[0000] sudoers file "/private/etc/sudoers.d/lima" is out of sync and must be regenerated... 에러내용 바뀜.
// 아래와 같이 내용 변경하고 다시 시도하면 잘됨.
https://chess-drive.tistory.com/120
[OS/macOS] FATA[0000] sudoers file "/private/etc/sudoers.d/lima" is out of sync and must be regenerated...
// socket_vmnet 업그레이드(1.1.4 -> 1.1.7) 후 FATA 에러 뜸.// FATA[0000] sudoers file "/private/etc/sudoers.d/lima" is out of sync and must be regenerated (Hint: run `limactl sudoers >etc_sudoers.d_lima && sudo install -o root
chess-drive.tistory.com