abiosoft / abiosoft/colima

VM cannot get network address and start k8s after OS restart

Ouverte
#642 11 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
30.8k
Forks
613
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Description

Colima VM created on Mac M1 Ventura with enabled --kubernetes and --network-address options lose its network address (192.168.106.2) and cannot start k8s after the MacOS reboot. The VM deletion, then the Mac reboot, and the start of a new VM resolves the issue but only until a next Mac reboot

### Version

Colima Version: 0.5.2
Lima Version: 0.15.0
Qemu Version: I don't know

### Operating System

- [ ] macOS Intel <= 12 (Monterrey)
- [ ] macOS Intel >= 13 (Ventura)
- [ ] macOS M1 <= 12 (Monterrey)
- [X] macOS M1 >= 13 (Ventura)
- [ ] Linux

### Output of `colima status`

~$ colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] address:
INFO[0000] socket: unix:///Users/Rostislav_Dublin/.colima/default/docker.sock
INFO[0000] kubernetes: enabled

### Reproduction Steps

1. Create a VM with --kubernetes and --network-address enabled, deploy some k8s workloads, and feel happy...
2. Stop and start your VM if needed, and reconfigure the CPU and memory settings with no problems.
3. Shutdown and reboot your Mac
4. Make sure you cannot successfully get your Kubernetes back to life anymore:
- each time you call "colima start" it now takes too long...
- and during the VM startup you see (in a second terminal window) a blank value in the "colima list" command output ADDRESS column
image

- and after several minutes of waiting you see the final output message:
image

- and if you run "docker ps -a" you see all containers (including k8s) stopped:
image

5. Delete your Colima VM.
6. Reboot your Mac (reboot is mandatory!)
7. Start a new Colima VM
8. Now you have your k8s again... until a next Mac restart

### Expected behaviour

Your VM successfully overcomes OS restarts.

### Additional context

_No response_

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.