colima
colima copied to clipboard
Instance name "colima" too long: colima fails to start when symlink ~/.colima points to a very long UNIX path name
Description
~/.colima config is symlink to a dotfiles repository. This dotfiles repository full path is longer than UNIX_PATH_MAX characters. Due to this constraint, colima fails to start.
Version
No response
Operating System
- [x] macOS Intel <= 13 (Ventura)
- [ ] macOS Intel >= 14 (Sonoma)
- [ ] Apple Silicon <= 13 (Ventura)
- [ ] Apple Silicon >= 14 (Sonoma)
- [ ] Linux
Output of colima status
colima: 0.69 limactl: 0.22.0 qemu-img: 9.0.0
Reproduction Steps
- colima start -f
- colima stop
- colima destroy
- mv ~/.colima $HOME/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/
- ln -s $HOME/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/ ~/.colima
- colima start -f
INFO[0000] starting colima INFO[0000] runtime: docker INFO[0000] creating and starting ... context=vm Terminal is not available, proceeding without opening an editor instance name "colima" too long: "/Users/davidandreoletti/Documents/Developments/DOTFILES_WORKSPACE/dotfiles/.colima/_lima/colima/ssh.sock.1234567890123456" must be less than UNIX_PATH_MAX=104 characters, but is 121 FATA[0000] error starting vm: error at 'creating and starting': exit status 1
Expected behaviour
Successful colima start
Additional context
Workaround:
With a user defined LIMA_HOME set a to short path (eg: ~/.colima_lima), the issue is gone.