GithubHelp home page GithubHelp logo

Apple M1 testing about colima HOT 29 CLOSED

abiosoft avatar abiosoft commented on May 14, 2024
Apple M1 testing

from colima.

Comments (29)

rfay avatar rfay commented on May 14, 2024 3

I have extensively tested HEAD with docker runtime, with mac M1 (and also amd64). ddev now has colima integration support with both arm64 and amd64. It's looking great. I didn't even have a hiccup. Even have github actions full test suite running.

from colima.

abiosoft avatar abiosoft commented on May 14, 2024 2

It is fixed now.

Thanks.

from colima.

abiosoft avatar abiosoft commented on May 14, 2024 1

@spuder actually due to notable changes compared to v0.2.2, you should delete the vm and start afresh. i.e. colima delete before colima start.

from colima.

abiosoft avatar abiosoft commented on May 14, 2024 1

Hi, I recently upgraded to an M1 MacBook and when I try to start cross-architecture, it is using the default:

`jmiller@Joels-MacBook-Pro dashboard % colima start --verbose --arch x86-64
INFO[0000] starting colima
INFO[0000] creating and starting ... context=vm

@Joelman111 there is a mistake here colima start --verbose --arch x86-64, it should be x86_64

colima start --arch x86_64

from colima.

abiosoft avatar abiosoft commented on May 14, 2024 1

I think we're done. Thanks.

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

@vrslev thanks for offering to help

All that is needed is to ensure the behaviour is consistent on Intel and M1 macs.
You can start with the following scenarios.

Hint: You can use the --profile flag to avoid disruption of your current instance(s).

Install

Install the latest development version by either building from source or brew install --head colima.

Scenarios

  • Docker runtime

    colima start --runtime docker
    
  • Docker runtime with kubernetes

    colima start --runtime docker --with-kubernetes
    
  • Containerd runtime

    colima start --runtime containerd
    
  • Containerd runtime with kubernetes

    colima start --runtime containerd --with-kubernetes
    

Now that I think of it, I should probably make a script for this. That way, anyone can easily run the script and share the output.

from colima.

vrslev avatar vrslev commented on May 14, 2024

@abiosoft Hi again!

Installed with brew install --head colima

  • Docker runtime
colima start --profile test docker --verbose
INFO[0000] starting colima [profile=test]               
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima-test/serial.log\")"
> msg="SSH Local Port: 51403"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima-test\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima-test/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima-test/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima-test` to open the shell."
INFO[0020] provisioning ...                              context=docker
INFO[0020] restarting VM to complete setup ...           context=docker
INFO[0020] stopping ...                                  context=vm
> msg="Sending SIGINT to hostagent process 22927"
> msg="Waiting for the host agent and the qemu processes to shut down"
> msg="[hostagent] Received SIGINT, shutting down the host agent"
> msg="[hostagent] Shutting down the host agent"
> msg="[hostagent] Stopping forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima-test/docker.sock\" (host)"
> msg="[hostagent] Stopping forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima-test/ga.sock\" (host)"
> msg="[hostagent] Unmounting \"/Users/lev\""
> msg="[hostagent] Unmounting \"/tmp/colima-test\""
> msg="[hostagent] Shutting down QEMU with ACPI"
> msg="[hostagent] Sending QMP system_powerdown command"
> msg="[hostagent] QEMU has exited"
INFO[0026] starting ...                                  context=vm
> msg="Using the existing instance \"colima-test\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima-test/serial.log\")"
> msg="SSH Local Port: 51403"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima-test\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima-test/docker.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima-test` to open the shell."
> colima-test
> Successfully created context "colima-test"
> colima-test
> Current context is now "colima-test"
INFO[0046] starting ...                                  context=docker
>  * /var/log/docker.log: creating file
>  * /var/log/docker.log: correcting owner
>  * Starting Docker Daemon ... [ ok ]
> Loaded image: colima-binfmt:latest
> installing: s390x OK
> installing: ppc64le OK
> installing: 386 OK
> installing: mips64le OK
> installing: arm OK
> installing: riscv64 OK
> installing: mips64 OK
> installing: amd64 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: colima-binfmt:latest
> Deleted: sha256:81eef0d41f158dc31e07ffa7641f89450e41c7e1868021be4956fb082300cfed
> Deleted: sha256:7f2d1dfc76da6942d7bb7d80248571df960806b8af96336dcb5a10c270f3314b
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
INFO[0052] done                                         
  • Docker runtime with kubernetes
colima start --profile test docker --with-kubernetes --verbose

Before installing kubectl:

INFO[0000] using docker runtime                         
INFO[0000] starting colima [profile=test]               
FATA[0000] dependency check failed for kubernetes: kubectl not found, run 'brew install kubectl' to install 

After:

INFO[0000] using docker runtime                         
INFO[0000] starting colima [profile=test]               
INFO[0000] already running                               context=vm
INFO[0000] provisioning ...                              context=docker
> colima-test
> Current context is now "colima-test"
INFO[0001] starting ...                                  context=docker
>  * Starting Docker Daemon ... [ ok ]
> Loaded image: colima-binfmt:latest
> installing: mips64 qemu-mips64 already registered
> installing: mips64le qemu-mips64el already registered
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: colima-binfmt:latest
> Deleted: sha256:81eef0d41f158dc31e07ffa7641f89450e41c7e1868021be4956fb082300cfed
> Deleted: sha256:7f2d1dfc76da6942d7bb7d80248571df960806b8af96336dcb5a10c270f3314b
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
INFO[0007] downloading and installing ...                context=kubernetes
INFO[0029] loading docker images ...                     context=kubernetes
> Loaded image: rancher/mirrored-library-busybox:1.32.1
> Loaded image: rancher/mirrored-library-traefik:2.5.0
> Loaded image: rancher/mirrored-metrics-server:v0.5.0
> Loaded image: rancher/mirrored-pause:3.1
> Loaded image: rancher/klipper-helm:v0.6.6-build20211022
> Loaded image: rancher/klipper-lb:v0.3.4
> Loaded image: rancher/local-path-provisioner:v0.0.20
> Loaded image: rancher/mirrored-coredns-coredns:1.8.4
> [INFO]  Skipping k3s download and verify
> [INFO]  Skipping installation of SELinux RPM
> [INFO]  Creating /usr/local/bin/kubectl symlink to k3s
> [INFO]  Creating /usr/local/bin/crictl symlink to k3s
> [INFO]  Skipping /usr/local/bin/ctr symlink to k3s, command exists in PATH at /usr/bin/ctr
> [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[0032] starting ...                                  context=kubernetes
>  * Caching service dependencies ... [ ok ]
>  * Starting k3s ... [ ok ]
INFO[0038] updating config ...                           context=kubernetes
> Property "users.colima-test" unset.
> Property "contexts.colima-test" unset.
> Property "clusters.colima-test" unset.
INFO[0038] Switched to context "colima-test".            context=kubernetes
INFO[0038] done                                         
  • Containerd runtime
colima start --profile test docker --runtime containerd --verbose
INFO[0000] using docker runtime                         
INFO[0000] starting colima [profile=test]               
INFO[0000] already running                               context=vm
INFO[0000] provisioning ...                              context=docker
> colima-test
> Current context is now "colima-test"
INFO[0011] starting ...                                  context=docker
>  * Starting Docker Daemon ... [ ok ]
> Loaded image: colima-binfmt:latest
> installing: mips64le qemu-mips64el already registered
> installing: mips64 qemu-mips64 already registered
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: colima-binfmt:latest
> Deleted: sha256:81eef0d41f158dc31e07ffa7641f89450e41c7e1868021be4956fb082300cfed
> Deleted: sha256:7f2d1dfc76da6942d7bb7d80248571df960806b8af96336dcb5a10c270f3314b
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
INFO[0017] already running                               context=kubernetes
INFO[0017] done                                         

After that I ran colima delete --profile test because I noticed Kubernetes was running, and started again:

INFO[0000] starting colima [profile=test]               
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima-test/serial.log\")"
> msg="SSH Local Port: 51512"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima-test\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima-test/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima-test` to open the shell."
INFO[0020] starting ...                                  context=containerd
>  * /var/log/containerd.log: creating file
>  * Starting Container Daemon ... [ ok ]
> unpacking docker.io/library/colima-binfmt:latest (sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82)...done
> msg="kernel support for cgroup blkio weight missing, weight discarded"
> installing: mips64le OK
> installing: mips64 OK
> installing: amd64 OK
> installing: arm OK
> installing: s390x OK
> installing: ppc64le OK
> installing: riscv64 OK
> installing: 386 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: docker.io/library/colima-binfmt:latest@sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
> Deleted: sha256:61ce5602ae429b26f5c16426f8f8cb60299fcfeb2b02064d34c26d005448e0fb
INFO[0026] done                                         
  • Containerd runtime with kubernetes
colima start --profile test docker --runtime containerd --with-kubernetes --verbose

This command failed:

INFO[0000] using containerd runtime                     
INFO[0000] starting colima [profile=test]               
INFO[0000] already running                               context=vm
INFO[0000] starting ...                                  context=containerd
>  * WARNING: containerd has already been started
> unpacking docker.io/library/colima-binfmt:latest (sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82)...done
> msg="kernel support for cgroup blkio weight missing, weight discarded"
> installing: mips64le qemu-mips64el already registered
> installing: mips64 qemu-mips64 already registered
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: docker.io/library/colima-binfmt:latest@sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
> Deleted: sha256:61ce5602ae429b26f5c16426f8f8cb60299fcfeb2b02064d34c26d005448e0fb
INFO[0005] downloading and installing ...                context=kubernetes
INFO[0011] loading containerd images ...                 context=kubernetes
> unpacking docker.io/rancher/mirrored-library-busybox:1.32.1 (sha256:6b23544141396cd3a36fa1b3ed3ccade0d30068c1802bbae64eef1e3e5ab9d54)...done
> unpacking docker.io/rancher/mirrored-library-traefik:2.5.0 (sha256:8a718325f4c589a2e44688ae87f74dab4c64648431ab9457dee9aa96aad93354)...done
> unpacking docker.io/rancher/mirrored-metrics-server:v0.5.0 (sha256:1a89693d2093a62715e24714fcc88f980c144fe2a769531c62a487cd1dcd5b3c)...ctr: failed to resolve rootfs: content digest sha256:ee11f1e38ac66c96e91e9504296e77a57733101b02a678c901f5fe9d1d332354: not found
FATA[0013] error provisioning kubernetes: error at 'loading containerd images': exit status 1 

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

Thanks for this. So all cases seems to work fine except containerd runtime with kubernetes.

@vrslev Actually after each of the commands, you are supposed to colima delete to tear down before trying the next one.

I also noticed that you are making mistakes in the command. e.g. in the following, the docker is redundant and may lead to undesired behaviour.

colima start --profile test docker --with-kubernetes --verbose

It should simply be

colima start --profile test --with-kubernetes --verbose

If you would not mind, can you kindly go through the tests again?

Thanks.

from colima.

vrslev avatar vrslev commented on May 14, 2024

@abiosoft Oops! Sure I will :)

from colima.

vrslev avatar vrslev commented on May 14, 2024
  • Docker runtime
    colima start --runtime docker --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 54017"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0020] provisioning ...                              context=docker
INFO[0020] restarting VM to complete setup ...           context=docker
INFO[0020] stopping ...                                  context=vm
> msg="Sending SIGINT to hostagent process 43212"
> msg="Waiting for the host agent and the qemu processes to shut down"
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="[hostagent] Not forwarding TCP 0.0.0.0:22"
> msg="[hostagent] Not forwarding TCP [::]:22"
> msg="[hostagent] Received SIGINT, shutting down the host agent"
> msg="[hostagent] Shutting down the host agent"
> msg="[hostagent] Stopping forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Stopping forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] Unmounting \"/Users/lev\""
> msg="[hostagent] Unmounting \"/tmp/colima\""
> msg="[hostagent] Shutting down QEMU with ACPI"
> msg="[hostagent] Sending QMP system_powerdown command"
> msg="[hostagent] QEMU has exited"
INFO[0026] starting ...                                  context=vm
> msg="Using the existing instance \"colima\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 54017"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
> colima
> Successfully created context "colima"
> colima
> Current context is now "colima"
INFO[0046] starting ...                                  context=docker
>  * /var/log/docker.log: creating file
>  * /var/log/docker.log: correcting owner
>  * Starting Docker Daemon ... [ ok ]
> Loaded image: colima-binfmt:latest
> installing: s390x OK
> installing: riscv64 OK
> installing: mips64 OK
> installing: mips64le OK
> installing: amd64 OK
> installing: arm OK
> installing: ppc64le OK
> installing: 386 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: colima-binfmt:latest
> Deleted: sha256:81eef0d41f158dc31e07ffa7641f89450e41c7e1868021be4956fb082300cfed
> Deleted: sha256:7f2d1dfc76da6942d7bb7d80248571df960806b8af96336dcb5a10c270f3314b
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
INFO[0052] done  
  • Docker runtime with kubernetes
    colima start --runtime docker --with-kubernetes --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 54052"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0020] provisioning ...                              context=docker
INFO[0020] restarting VM to complete setup ...           context=docker
INFO[0020] stopping ...                                  context=vm
> msg="Sending SIGINT to hostagent process 43902"
> msg="Waiting for the host agent and the qemu processes to shut down"
> msg="[hostagent] Not forwarding TCP [::]:22"
> msg="[hostagent] Received SIGINT, shutting down the host agent"
> msg="[hostagent] Shutting down the host agent"
> msg="[hostagent] Stopping forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Stopping forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] Unmounting \"/Users/lev\""
> msg="[hostagent] Unmounting \"/tmp/colima\""
> msg="[hostagent] Shutting down QEMU with ACPI"
> msg="[hostagent] Sending QMP system_powerdown command"
> msg="[hostagent] QEMU has exited"
INFO[0026] starting ...                                  context=vm
> msg="Using the existing instance \"colima\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 54052"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
> colima
> Successfully created context "colima"
> colima
> Current context is now "colima"
INFO[0046] starting ...                                  context=docker
>  * /var/log/docker.log: creating file
>  * /var/log/docker.log: correcting owner
>  * Starting Docker Daemon ... [ ok ]
> Loaded image: colima-binfmt:latest
> installing: ppc64le OK
> installing: mips64le OK
> installing: mips64 OK
> installing: amd64 OK
> installing: arm OK
> installing: s390x OK
> installing: riscv64 OK
> installing: 386 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: colima-binfmt:latest
> Deleted: sha256:81eef0d41f158dc31e07ffa7641f89450e41c7e1868021be4956fb082300cfed
> Deleted: sha256:7f2d1dfc76da6942d7bb7d80248571df960806b8af96336dcb5a10c270f3314b
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
INFO[0052] downloading and installing ...                context=kubernetes
INFO[0057] loading docker images ...                     context=kubernetes
> Loaded image: rancher/mirrored-library-busybox:1.32.1
> Loaded image: rancher/mirrored-library-traefik:2.5.0
> Loaded image: rancher/mirrored-metrics-server:v0.5.0
> Loaded image: rancher/mirrored-pause:3.1
> Loaded image: rancher/klipper-helm:v0.6.6-build20211022
> Loaded image: rancher/klipper-lb:v0.3.4
> Loaded image: rancher/local-path-provisioner:v0.0.20
> Loaded image: rancher/mirrored-coredns-coredns:1.8.4
> [INFO]  Skipping k3s download and verify
> [INFO]  Skipping installation of SELinux RPM
> [INFO]  Creating /usr/local/bin/kubectl symlink to k3s
> [INFO]  Creating /usr/local/bin/crictl symlink to k3s
> [INFO]  Skipping /usr/local/bin/ctr symlink to k3s, command exists in PATH at /usr/bin/ctr
> [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[0060] starting ...                                  context=kubernetes
>  * Caching service dependencies ... [ ok ]
>  * Starting k3s ... [ ok ]
INFO[0065] updating config ...                           context=kubernetes
> Property "users.colima" unset.
> Property "contexts.colima" unset.
> Property "clusters.colima" unset.
INFO[0065] Switched to context "colima".                 context=kubernetes
INFO[0065] done                                         
  • Containerd runtime
    colima start --runtime containerd --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 54073"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0020] starting ...                                  context=containerd
>  * /var/log/containerd.log: creating file
>  * Starting Container Daemon ... [ ok ]
> unpacking docker.io/library/colima-binfmt:latest (sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82)...done
> msg="kernel support for cgroup blkio weight missing, weight discarded"
> installing: ppc64le OK
> installing: riscv64 OK
> installing: 386 OK
> installing: mips64le OK
> installing: arm OK
> installing: s390x OK
> installing: mips64 OK
> installing: amd64 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: docker.io/library/colima-binfmt:latest@sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
> Deleted: sha256:61ce5602ae429b26f5c16426f8f8cb60299fcfeb2b02064d34c26d005448e0fb
INFO[0026] done                                         
  • Containerd runtime with kubernetes
    colima start --runtime containerd --with-kubernetes --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 54079"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0020] starting ...                                  context=containerd
>  * /var/log/containerd.log: creating file
>  * Starting Container Daemon ... [ ok ]
> unpacking docker.io/library/colima-binfmt:latest (sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82)...done
> msg="kernel support for cgroup blkio weight missing, weight discarded"
> installing: ppc64le OK
> installing: 386 OK
> installing: mips64le OK
> installing: arm OK
> installing: s390x OK
> installing: riscv64 OK
> installing: mips64 OK
> installing: amd64 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: docker.io/library/colima-binfmt:latest@sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
> Deleted: sha256:61ce5602ae429b26f5c16426f8f8cb60299fcfeb2b02064d34c26d005448e0fb
INFO[0026] downloading and installing ...                context=kubernetes
INFO[0031] loading containerd images ...                 context=kubernetes
> unpacking docker.io/rancher/mirrored-library-busybox:1.32.1 (sha256:6b23544141396cd3a36fa1b3ed3ccade0d30068c1802bbae64eef1e3e5ab9d54)...done
> unpacking docker.io/rancher/mirrored-library-traefik:2.5.0 (sha256:8a718325f4c589a2e44688ae87f74dab4c64648431ab9457dee9aa96aad93354)...done
> unpacking docker.io/rancher/mirrored-metrics-server:v0.5.0 (sha256:1a89693d2093a62715e24714fcc88f980c144fe2a769531c62a487cd1dcd5b3c)...ctr: failed to resolve rootfs: content digest sha256:ee11f1e38ac66c96e91e9504296e77a57733101b02a678c901f5fe9d1d332354: not found
FATA[0033] error provisioning kubernetes: error at 'loading containerd images': exit status 1 

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

Thanks, same problem.

Basically, the error is happening whilst trying to manually load the oci images for kubernetes prior to the initial startup. This is mainly for better UX and to avoid rate-limiting on Docker Hub.

The error can be safely ignored and treated as a warning instead as the images would be pulled from Docker Hub eventually (if missing).

I will add the fix soon.

from colima.

vrslev avatar vrslev commented on May 14, 2024

Great! Do I need to test anything else?

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

Great! Do I need to test anything else?

Not really. It will be too much of back and forth :)

I will add a quick fix for this so you can test soonest. Then I will work on adding some end-to-end tests/script to make it easier for anyone to run it.

from colima.

vrslev avatar vrslev commented on May 14, 2024

Cool!

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

@vrslev can you build from source? If yes, you can test with the version on fix-m1-containerd-k3s branch.

It is advisable to remove the brew installed version brew uninstall colima not to conflict the two.

Steps

  • Install Go (if not installed)
    brew install golang
    
  • Install coreutils (only needed for generating binary sha)
    brew install coreutils
    
  • clone the repository to a directory
    git clone https://github.com/abiosoft/colima
    
  • checkout the fix-m1-containerd-k3s branch
    git checkout fix-m1-containerd-k3s
    
  • build and install
    make && sudo make install
    

from colima.

vrslev avatar vrslev commented on May 14, 2024

I built from source, here's output of colima start --runtime containerd --with-kubernetes --verbose:

INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 55560"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0020] starting ...                                  context=containerd
>  * /var/log/containerd.log: creating file
>  * Starting Container Daemon ... [ ok ]
> unpacking docker.io/library/colima-binfmt:latest (sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82)...done
> msg="kernel support for cgroup blkio weight missing, weight discarded"
> installing: s390x OK
> installing: riscv64 OK
> installing: mips64 OK
> installing: amd64 OK
> installing: arm OK
> installing: ppc64le OK
> installing: 386 OK
> installing: mips64le OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: docker.io/library/colima-binfmt:latest@sha256:c2a7def901ac6ed5f2271e3aecf6757ef707992934d86d4ceb54600674de8d82
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
> Deleted: sha256:61ce5602ae429b26f5c16426f8f8cb60299fcfeb2b02064d34c26d005448e0fb
INFO[0026] downloading and installing ...                context=kubernetes
INFO[0031] loading oci images ...                        context=kubernetes
> unpacking docker.io/rancher/mirrored-library-busybox:1.32.1 (sha256:6b23544141396cd3a36fa1b3ed3ccade0d30068c1802bbae64eef1e3e5ab9d54)...done
> unpacking docker.io/rancher/mirrored-library-traefik:2.5.0 (sha256:8a718325f4c589a2e44688ae87f74dab4c64648431ab9457dee9aa96aad93354)...done
> unpacking docker.io/rancher/mirrored-metrics-server:v0.5.0 (sha256:1a89693d2093a62715e24714fcc88f980c144fe2a769531c62a487cd1dcd5b3c)...ctr: failed to resolve rootfs: content digest sha256:ee11f1e38ac66c96e91e9504296e77a57733101b02a678c901f5fe9d1d332354: not found
WARN[0034] error loading oci images: exit status 1       context=kubernetes
WARN[0034] startup may delay a bit as images will be pulled from oci registry  context=kubernetes
> [INFO]  Skipping k3s download and verify
> [INFO]  Skipping installation of SELinux RPM
> [INFO]  Creating /usr/local/bin/kubectl symlink to k3s
> [INFO]  Creating /usr/local/bin/crictl symlink to k3s
> [INFO]  Skipping /usr/local/bin/ctr symlink to k3s, command exists in PATH at /usr/bin/ctr
> [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[0034] starting ...                                  context=kubernetes
>  * Caching service dependencies ... [ ok ]
>  * Starting k3s ... [ ok ]
INFO[0039] updating config ...                           context=kubernetes
> Property "users.colima" unset.
> Property "contexts.colima" unset.
> Property "clusters.colima" unset.
INFO[0039] Switched to context "colima".                 context=kubernetes
INFO[0039] done                       

Also:

> echo $?
0

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

Perfect, it's safe to say now that there is compatibility with M1 macs :)

Thanks.

from colima.

vrslev avatar vrslev commented on May 14, 2024

☺️

from colima.

vrslev avatar vrslev commented on May 14, 2024

Closing the issue?

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

Not yet. Until I find an alternate way to report compatibility with M1 devices before each release.

from colima.

vrslev avatar vrslev commented on May 14, 2024

OK.

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

@vrslev can you kindly try with x86_64 architecture.

  • for Docker

    colima start --arch x86_84
    
  • for Containerd

    colima start --runtime containerd --arch x86_64
    

There is no need to try cross-architecture for Kubernetes.

from colima.

vrslev avatar vrslev commented on May 14, 2024

Hi there!

  • for Docker
    colima start --arch x86_84 --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 49421"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0020] provisioning ...                              context=docker
INFO[0020] restarting VM to complete setup ...           context=docker
INFO[0020] stopping ...                                  context=vm
> msg="Sending SIGINT to hostagent process 23392"
> msg="Waiting for the host agent and the qemu processes to shut down"
> msg="[hostagent] Received SIGINT, shutting down the host agent"
> msg="[hostagent] Shutting down the host agent"
> msg="[hostagent] Stopping forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Stopping forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] Unmounting \"/Users/lev\""
> msg="[hostagent] Unmounting \"/tmp/colima\""
> msg="[hostagent] Shutting down QEMU with ACPI"
> msg="[hostagent] Sending QMP system_powerdown command"
> msg="[hostagent] QEMU has exited"
INFO[0026] starting ...                                  context=vm
> msg="Using the existing instance \"colima\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 49421"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
> colima
> Successfully created context "colima"
> colima
> Current context is now "colima"
INFO[0046] starting ...                                  context=docker
>  * /var/log/docker.log: creating file
>  * /var/log/docker.log: correcting owner
>  * Starting Docker Daemon ... [ ok ]
> Loaded image: colima-binfmt:latest
> installing: amd64 OK
> installing: arm OK
> installing: s390x OK
> installing: ppc64le OK
> installing: riscv64 OK
> installing: 386 OK
> installing: mips64le OK
> installing: mips64 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: colima-binfmt:latest
> Deleted: sha256:81eef0d41f158dc31e07ffa7641f89450e41c7e1868021be4956fb082300cfed
> Deleted: sha256:7f2d1dfc76da6942d7bb7d80248571df960806b8af96336dcb5a10c270f3314b
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
INFO[0052] done                                         
  • for Containerd
    colima start --runtime containerd --arch x86_64 --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-x86_64.iso\"" digest="sha512:41ab375082cee4a5327b76c7ef11c62730174481cfa1f572c8ec18241114fb461b880f1e70db92bc7d73caa42e70118ef02485fc4404b34ba1962f79d2de2743"
> 
> 124.26 MiB / 184.00 MiB (67.53%) ? p/s
> 184.00 MiB / 184.00 MiB (100.00%) 77.02 MiB/stime="2021-12-06T08:20:08+03:00" level=info msg="Downloaded image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-x86_64.iso\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 49428"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] Not forwarding TCP [::]:22"
> msg="[hostagent] Not forwarding TCP 0.0.0.0:22"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0098] starting ...                                  context=containerd
>  * /var/log/containerd.log: creating file
>  * Starting Container Daemon ... [ ok ]
> msg="cannot access containerd socket \"/run/containerd/containerd.sock\": no such file or directory"
WARN[0106] could not enable multi-arch images: exit status 1  context=containerd
> msg="cannot access containerd socket \"/run/containerd/containerd.sock\": no such file or directory"
WARN[0107] could not enable multi-arch images: exit status 1  context=containerd
> msg="cannot access containerd socket \"/run/containerd/containerd.sock\": no such file or directory"
WARN[0108] could not clear image cache for multi-arch images: exit status 1  context=containerd
INFO[0108] done                                         

from colima.

abiosoft avatar abiosoft commented on May 14, 2024

@vrslev I have push a fixed to fix/containerd-cross-architecture branch. Can you kindly give it a try and see if it fixes #75 (comment)?

Thanks.

from colima.

vrslev avatar vrslev commented on May 14, 2024
  • for Docker
    colima start --arch x86_84 --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:b32dfef85d84de341b7c41cb0ec212f0e9f89e12e030f0e6761b8cc5c22e00edd1fbcb343817794ae4d7cf5468e94201453864b71f4cf12d67455078ce9a77bb"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/df8d59a66becc83c2501be0ffd8475f521ea41a8e20efedf159dfd25dbcec350/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 53714"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0021] provisioning ...                              context=docker
INFO[0021] restarting VM to complete setup ...           context=docker
INFO[0021] stopping ...                                  context=vm
> msg="Sending SIGINT to hostagent process 29310"
> msg="Waiting for the host agent and the qemu processes to shut down"
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="[hostagent] Not forwarding TCP 0.0.0.0:22"
> msg="[hostagent] Not forwarding TCP [::]:22"
> msg="[hostagent] Received SIGINT, shutting down the host agent"
> msg="[hostagent] Shutting down the host agent"
> msg="[hostagent] Stopping forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Stopping forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] Unmounting \"/Users/lev\""
> msg="[hostagent] Unmounting \"/tmp/colima\""
> msg="[hostagent] Shutting down QEMU with ACPI"
> msg="[hostagent] Sending QMP system_powerdown command"
> msg="[hostagent] QEMU has exited"
INFO[0026] starting ...                                  context=vm
> msg="Using the existing instance \"colima\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 53714"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/lev/.colima/docker.sock\" (host)"
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
> colima
> Successfully created context "colima"
> colima
> Current context is now "colima"
INFO[0047] starting ...                                  context=docker
>  * /var/log/docker.log: creating file
>  * /var/log/docker.log: correcting owner
>  * Starting Docker Daemon ... [ ok ]
INFO[0052] waiting for startup to complete ...           context=docker
> Loaded image: colima-binfmt:latest
> installing: riscv64 OK
> installing: mips64le OK
> installing: mips64 OK
> installing: amd64 OK
> installing: arm OK
> installing: s390x OK
> installing: ppc64le OK
> installing: 386 OK
> {
>   "supported": [
>     "linux/arm64",
>     "linux/amd64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-arm",
>     "qemu-i386",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x",
>     "qemu-x86_64"
>   ]
> }
> Untagged: colima-binfmt:latest
> Deleted: sha256:81eef0d41f158dc31e07ffa7641f89450e41c7e1868021be4956fb082300cfed
> Deleted: sha256:7f2d1dfc76da6942d7bb7d80248571df960806b8af96336dcb5a10c270f3314b
> Deleted: sha256:5898d0f64ff4a58c648f9e56f7bbec35211490661a7faaf42f8896546b24eec5
INFO[0052] done
  • for Containerd
    colima start --runtime containerd --arch x86_64 --verbose
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
> msg="Terminal is not available, proceeding without opening an editor"
> msg="Attempting to download the image from \"https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.0-01/alpine-lima-clm-3.14.3-x86_64.iso\"" digest="sha512:41ab375082cee4a5327b76c7ef11c62730174481cfa1f572c8ec18241114fb461b880f1e70db92bc7d73caa42e70118ef02485fc4404b34ba1962f79d2de2743"
> msg="Using cache \"/Users/lev/Library/Caches/lima/download/by-url-sha256/a2895f8042b354e46e20ae0da2a1a018bccdad55530eae4a7923a85dc2449d6f/data\""
> msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/lev/.lima/colima/serial.log\")"
> msg="SSH Local Port: 53721"
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\""
> msg="[hostagent] The essential requirement 1 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\""
> msg="[hostagent] The essential requirement 2 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\""
> msg="[hostagent] The essential requirement 3 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf to contain \\\"user_allow_other\\\"\""
> msg="[hostagent] The essential requirement 4 of 5 is satisfied"
> msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\""
> msg="[hostagent] The essential requirement 5 of 5 is satisfied"
> msg="[hostagent] Mounting \"/Users/lev\""
> msg="[hostagent] Mounting \"/tmp/colima\""
> msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\""
> msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/lev/.lima/colima/ga.sock\" (host)"
> msg="[hostagent] Not forwarding TCP [::]:22"
> msg="[hostagent] Not forwarding TCP 0.0.0.0:22"
> msg="[hostagent] The final requirement 1 of 1 is satisfied"
> msg="READY. Run `limactl shell colima` to open the shell."
INFO[0089] starting ...                                  context=containerd
>  * /var/log/containerd.log: creating file
>  * Starting Container Daemon ... [ ok ]
INFO[0096] waiting for startup to complete ...           context=containerd
INFO[0102] waiting for startup to complete ...           context=containerd
INFO[0109] waiting for startup to complete ...           context=containerd
> unpacking docker.io/library/colima-binfmt:latest (sha256:53a90e90bdd56de171c406627edd921c3f37a66ccc3c05c68e7d0ee84e99c0e6)...done
> msg="kernel support for cgroup blkio weight missing, weight discarded"
> installing: ppc64le OK
> installing: riscv64 OK
> installing: mips64le OK
> installing: mips64 OK
> installing: arm OK
> installing: arm64 OK
> installing: s390x OK
> {
>   "supported": [
>     "linux/amd64",
>     "linux/arm64",
>     "linux/riscv64",
>     "linux/ppc64le",
>     "linux/s390x",
>     "linux/386",
>     "linux/arm/v7",
>     "linux/arm/v6"
>   ],
>   "emulators": [
>     "qemu-aarch64",
>     "qemu-arm",
>     "qemu-mips64",
>     "qemu-mips64el",
>     "qemu-ppc64le",
>     "qemu-riscv64",
>     "qemu-s390x"
>   ]
> }
> Untagged: docker.io/library/colima-binfmt:latest@sha256:53a90e90bdd56de171c406627edd921c3f37a66ccc3c05c68e7d0ee84e99c0e6
> Deleted: sha256:475f89f41dd72a717154faa4eb02d6cdd4d271a951b3160855246ef49cfe2aef
> Deleted: sha256:a6075483ea6c4d8f21bb22db30a755d7c4a967f31b4582cb83a5be98f8e7d0d4
INFO[0122] done

from colima.

spuder avatar spuder commented on May 14, 2024

I'm still seeing could not enable multi-arch images when installing on M1 mac mini

brew install --head colima
....
==> Installing colima --HEAD
==> go build -ldflags=-X github.com/abiosoft/colima/config.appVersion=HEAD-5090a0a -X github.com/abiosoft/colima/config.revision=5090a0aee5e6da0fa7adf23d577cc9edcda5630a ./cmd/colima
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Summary
🍺  /opt/homebrew/Cellar/colima/HEAD-5090a0a: 8 files, 6.3MB, built in 23 seconds
==> Running `brew cleanup colima`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/spencer.owen/Library/Caches/Homebrew/colima--0.2.2... (3MB)
==> Caveats
==> colima
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
spencer.owen@20212931-SOwen CAD-scripts % colima start
INFO[0000] using docker runtime                         
INFO[0000] starting colima                              
INFO[0000] starting ...                                  context=vm
INFO[0022] provisioning ...                              context=docker
INFO[0023] starting ...                                  context=docker
> open /usr/local/colima/binfmt.tar: no such file or directory
WARN[0024] could not enable multi-arch images: exit status 1  context=docker
> Unable to find image 'colima-binfmt:latest' locally
> docker: Error response from daemon: pull access denied for colima-binfmt, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
> See 'docker run --help'.
WARN[0026] could not enable multi-arch images: exit status 125  context=docker
INFO[0026] done        

from colima.

Joelman111 avatar Joelman111 commented on May 14, 2024

Hi, I recently upgraded to an M1 MacBook and when I try to start cross-architecture, it is using the default:

`jmiller@Joels-MacBook-Pro dashboard % colima start --verbose --arch x86-64
INFO[0000] starting colima
INFO[0000] creating and starting ... context=vm

msg="Terminal is not available, proceeding without opening an editor"
msg="Attempting to download the image from "https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.3.2/alpine-lima-clm-3.14.3-aarch64.iso\"" digest="sha512:1f93efbfb3093203446f605647438d04d239d3ee591c06b85e79f067180eff5d6b24b9133d147731a0a68d6d3b8d233eed844c99453e2f697e8df70f5b9cb1eb"
msg="Using cache "/Users/jmiller/Library/Caches/lima/download/by-url-sha256/3a75c93f466616135f3435210ad7e4083e511cae199cb9b585dca8fbf245dad0/data""
msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/jmiller/.lima/colima/serial.log")"
msg="SSH Local Port: 64700"
msg="[hostagent] Waiting for the essential requirement 1 of 5: "ssh""
msg="[hostagent] The essential requirement 1 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh""
msg="[hostagent] The essential requirement 2 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed""
msg="[hostagent] The essential requirement 3 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf to contain \"user_allow_other\"""
msg="[hostagent] The essential requirement 4 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 5 of 5: "the guest agent to be running""
msg="[hostagent] The essential requirement 5 of 5 is satisfied"
msg="[hostagent] Mounting "/Users/jmiller""
msg="[hostagent] Mounting "/tmp/colima""
msg="[hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished""
msg="[hostagent] Forwarding "/var/run/docker.sock" (guest) to "/Users/jmiller/.colima/docker.sock" (host)"
msg="[hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/jmiller/.lima/colima/ga.sock" (host)"
msg="[hostagent] The final requirement 1 of 1 is satisfied"
msg="READY. Run limactl shell colima to open the shell."
INFO[0022] provisioning ... context=docker
INFO[0022] restarting VM to complete setup ... context=docker
INFO[0022] stopping ... context=vm
msg="Sending SIGINT to hostagent process 65385"
msg="Waiting for the host agent and the qemu processes to shut down"
msg="[hostagent] Received SIGINT, shutting down the host agent"
msg="[hostagent] Shutting down the host agent"
msg="[hostagent] Stopping forwarding "/var/run/docker.sock" (guest) to "/Users/jmiller/.colima/docker.sock" (host)"
msg="[hostagent] Stopping forwarding "/run/lima-guestagent.sock" (guest) to "/Users/jmiller/.lima/colima/ga.sock" (host)"
msg="[hostagent] Unmounting "/Users/jmiller""
msg="[hostagent] Unmounting "/tmp/colima""
msg="[hostagent] Shutting down QEMU with ACPI"
msg="[hostagent] Sending QMP system_powerdown command"
msg="[hostagent] QEMU has exited"
INFO[0027] starting ... context=vm
msg="Using the existing instance "colima""
msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/jmiller/.lima/colima/serial.log")"
msg="SSH Local Port: 64700"
msg="[hostagent] Waiting for the essential requirement 1 of 5: "ssh""
msg="[hostagent] The essential requirement 1 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh""
msg="[hostagent] The essential requirement 2 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed""
msg="[hostagent] The essential requirement 3 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf to contain \"user_allow_other\"""
msg="[hostagent] The essential requirement 4 of 5 is satisfied"
msg="[hostagent] Waiting for the essential requirement 5 of 5: "the guest agent to be running""
msg="[hostagent] The essential requirement 5 of 5 is satisfied"
msg="[hostagent] Mounting "/Users/jmiller""
msg="[hostagent] Mounting "/tmp/colima""
msg="[hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished""
msg="[hostagent] Forwarding "/var/run/docker.sock" (guest) to "/Users/jmiller/.colima/docker.sock" (host)"
msg="[hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/jmiller/.lima/colima/ga.sock" (host)"
msg="[hostagent] The final requirement 1 of 1 is satisfied"
msg="READY. Run limactl shell colima to open the shell."
colima
Successfully created context "colima"
colima
Current context is now "colima"
INFO[0049] starting ... context=docker

  • /var/log/docker.log: creating file
  • /var/log/docker.log: correcting owner
  • Starting Docker Daemon ... [ ok ]
    INFO[0055] waiting for startup to complete ... context=docker
    INFO[0055] done
    jmiller@Joels-MacBook-Pro dashboard % colima list
    PROFILE STATUS ARCH CPUS MEMORY DISK
    default Running aarch64 2 2GiB 60GiB
    jmiller@Joels-MacBook-Pro dashboard %`

I'm new to colima so let me know if I did anything incorrectly.

from colima.

Joelman111 avatar Joelman111 commented on May 14, 2024

Hi, I recently upgraded to an M1 MacBook and when I try to start cross-architecture, it is using the default:
`jmiller@Joels-MacBook-Pro dashboard % colima start --verbose --arch x86-64
INFO[0000] starting colima
INFO[0000] creating and starting ... context=vm

@Joelman111 there is a mistake here colima start --verbose --arch x86-64, it should be x86_64

colima start --arch x86_64

omg I'm incredibly dumb- this fixed it. Thank you!

from colima.

vrslev avatar vrslev commented on May 14, 2024

@abiosoft Should I close the issue or we're not done yet? πŸ™‚

from colima.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.