abiosoft / abiosoft/colima

fail to start kubernetes with error: error at 'updating config': error fetching kubeconfig on guest: cannot read file: /etc/rancher/k3s/k3s.yaml

オープン
#831 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
30.8k
フォーク
613
PR マージ指標
30日以内にマージされた PR はありません

説明

### Description

_No response_

### Version

Colima Version: 0.5.6
Lima Version: 0.17.2
Qemu Version: 8.1.1

### Operating System

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

### Output of `colima status`

➜ ~ colima status
INFO[0000] colima is running using QEMU
INFO[0000] arch: x86_64
INFO[0000] runtime: containerd
INFO[0000] mountType: sshfs
INFO[0000] kubernetes: enabled

### Reproduction Steps

1. colima nerdctl install
2. colima start --cpu 4 --memory 8 --kubernetes --network-address --verbose

### Expected behaviour

kubernetes run with no error

### Additional context

➜ ~ colima start --cpu 4 --memory 8 --kubernetes --network-address --verbose
INFO[0000] starting colima
INFO[0000] runtime: containerd+k3s
INFO[0000] preparing network ... context=vm
INFO[0001] starting ... context=vm
> Using the existing instance "colima"
> QEMU binary "/Users/aa/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/bin/qemu-system-x86_64" seems properly signed with the "com.apple.security.hypervisor" entitlement
> [hostagent] Replacing "http_proxy" value "http://127.0.0.1:7890" with "http://192.168.5.2:7890"
> [hostagent] Replacing "https_proxy" value "http://127.0.0.1:7890" with "http://192.168.5.2:7890"
> [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/aa/.lima/colima/serial*.log")
> SSH Local Port: 53781
> [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
> [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
> [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
> [hostagent] The essential requirement 1 of 5 is satisfied
> [hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh"
> [hostagent] The essential requirement 2 of 5 is satisfied
> [hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed"
> [hostagent] The essential requirement 3 of 5 is satisfied
> [hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf (/etc/fuse3.conf) to contain \"user_allow_other\""
> [hostagent] The essential requirement 4 of 5 is satisfied
> [hostagent] Waiting for the essential requirement 5 of 5: "the guest agent to be running"
> [hostagent] The essential requirement 5 of 5 is satisfied
> [hostagent] Mounting "/Users/aa" on "/Users/aa"
> [hostagent] Mounting "/tmp/colima" on "/tmp/colima"
> [hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished"
> [hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/aa/.lima/colima/ga.sock" (host)
> [hostagent] The final requirement 1 of 1 is satisfied
> READY. Run `limactl shell colima` to open the shell.
INFO[0042] provisioning ... context=containerd
INFO[0042] starting ... context=containerd
> * /var/log/containerd.log: creating file
> * Starting Container Daemon ... [ ok ]
> * Stopping Buildkit Daemon ... [ ok ]
> * Starting Buildkit Daemon ... [ ok ]
INFO[0047] provisioning ... context=kubernetes
INFO[0048] version changed to v1.27.3+k3s1, downloading and installing ... context=kubernetes
INFO[0060] loading oci images ... context=kubernetes
> unpacking docker.io/rancher/mirrored-metrics-server:v0.6.3 (sha256:f46cf066256b7d95f1d7e428f9014f27955be2fa67ee9793f0ae9199fd354fa3)...
> Loaded image: rancher/mirrored-metrics-server:v0.6.3
> unpacking docker.io/rancher/mirrored-pause:3.6 (sha256:79b611631c0d19e9a975fb0a8511e5153789b4c26610d1842e9f735c57cc8b13)...
> Loaded image: rancher/mirrored-pause:3.6
> unpacking docker.io/rancher/klipper-helm:v0.8.0-build20230510 (sha256:392dec3d96d165f0220fa4e9b893a5dac0f79c758a123b5adc575f8f3173d6a8)...
> Loaded image: rancher/klipper-helm:v0.8.0-build20230510
> unpacking docker.io/rancher/klipper-lb:v0.4.4 (sha256:1068256da90ae89e55b6b59cfd170f56285acfd8193abcaf0aeebce100fd1d6e)...
> Loaded image: rancher/klipper-lb:v0.4.4
> unpacking docker.io/rancher/local-path-provisioner:v0.0.24 (sha256:0c39d541b3696f919b8a59098766b5407ee2ccd956070fa4d1148437e0974c00)...
> Loaded image: rancher/local-path-provisioner:v0.0.24
> unpacking docker.io/rancher/mirrored-coredns-coredns:1.10.1 (sha256:b64ac4c9100dd8ba255f2a31c2ad165f062e2cf087af9b6ffc68910e90de55d8)...
> Loaded image: rancher/mirrored-coredns-coredns:1.10.1
> unpacking docker.io/rancher/mirrored-library-busybox:1.34.1 (sha256:0a05820b48c3ab48bbda39b9f07af050173456568573a5258d962737ad40c240)...
> Loaded image: rancher/mirrored-library-busybox:1.34.1
> unpacking docker.io/rancher/mirrored-library-traefik:2.9.10 (sha256:438af33ea3414da08b928c6a55f53dacb010e5d99f81632810abd27c900e9289)...
> Loaded image: rancher/mirrored-library-traefik:2.9.10
> [INFO] Skipping k3s download and verify
> [INFO] Skipping installation of SELinux RPM
> [INFO] Skipping /usr/local/bin/kubectl symlink to k3s, already exists
> [INFO] Skipping /usr/local/bin/crictl symlink to k3s, already exists
> [INFO] Skipping /usr/local/bin/ctr symlink to k3s, already exists
> [INFO] Creating killall script /usr/local/bin/k3s-killall.sh
> [INFO] Creating uninstall script /usr/local/bin/k3s-uninstall.sh
> [INFO] env: Creating environment file /etc/rancher/k3s/k3s.env
> [INFO] openrc: Creating service file /etc/init.d/k3s
INFO[0071] starting ... context=kubernetes
> * Caching service dependencies ... [ ok ]
> * Starting k3s ... [ ok ]
INFO[0071] updating config ... context=kubernetes
> Property "users.colima" unset.
> Property "contexts.colima" unset.
> Property "clusters.colima" unset.
FATA[0072] error starting kubernetes: error at 'updating config': error fetching kubeconfig on guest: cannot read file: /etc/rancher/k3s/k3s.yaml

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。