OS/macOS

[OS/macOS] WARN[0486] [hostagent] guest agent events closed unexpectedly error="rpc error: code = Unavailable desc = connection error: desc ...

bbugge 2024. 12. 24. 15:21

// LIMA 1.0.1 업그레이드 후 에러 떴던 것 같음.

// limactl create vm 후 limactl start 수행 중 에러 뜸.

// INFO[0486] [hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/your_lima_vm_directory/ga.sock" (host)

// WARN[0486] [hostagent] guest agent events closed unexpectedly  error="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial unix /your_lima_vm_directory/ga.sock: connect: no such file or directory\""

 

// /run 디렉토리가 없어서 lima-guestagent.sock을 생성 못 했고 /your_lima_vm_directory/ga.sock forwarding 하는데 실패해서 vm 생성을 못하고 있었음.

 

# permissions 0644. owned by root.
$ echo  "run     /directory_where_you_want" | sudo tee /etc/synthetic.conf

# 변경 적용
$ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t

# 확인
$ ls -al / | grep run
lrwxr-xr-x   1 root  test    12 Dec 24 13:39 run -> /directory_where_you_want