colima icon indicating copy to clipboard operation
colima copied to clipboard

run on linux?

Open mrsauravsahu opened this issue 2 years ago • 6 comments

Love this project. Setting up a k8s cluster locally is so easy with colima.

Can this be used on Linux somehow?

mrsauravsahu avatar May 03 '22 13:05 mrsauravsahu

@mrsauravsahu yeah, it is supported on Linux as well, you can follow the instructions for installing the binary.

abiosoft avatar May 03 '22 13:05 abiosoft

Oh, I was trying with brew and getting some errors. Let me try it out with binary.

mrsauravsahu avatar May 03 '22 14:05 mrsauravsahu

After fixing some issues with kvm, getting issues with gzip

 colima start --with-kubernetes -r docker --mount /home/mrsauravsahu:w -m 8 -d 70
INFO[0000] starting colima                              
INFO[0000] creating and starting ...                     context=vm
INFO[0023] provisioning ...                              context=docker
INFO[0023] restarting VM to complete setup ...           context=docker
INFO[0023] stopping ...                                  context=vm
INFO[0031] starting ...                                  context=vm
INFO[0057] starting ...                                  context=docker
INFO[0062] waiting for startup to complete ...           context=docker
INFO[0062] downloading and installing ...                context=kubernetes
> gzip: invalid magic
FATA[0062] error provisioning kubernetes: error at 'downloading and installing': exit status 1 

mrsauravsahu avatar May 08 '22 20:05 mrsauravsahu

@mrsauravsahu can you delete the cache directly at ~/.cache/colima ? It seems there are some failed downloads.

Also, what version are you running? colima version

abiosoft avatar May 08 '22 20:05 abiosoft

Odd, same issue after clearing cache too.

❯ rm -rf ~/.cache/colima         


❯ colima start --with-kubernetes -r docker --mount /home/mrsauravsahu:w -m 8 -d 70
INFO[0000] starting colima                              
INFO[0000] already running                               context=vm
INFO[0000] provisioning ...                              context=docker
INFO[0001] starting ...                                  context=docker
INFO[0006] waiting for startup to complete ...           context=docker
INFO[0006] downloading and installing ...                context=kubernetes
> gzip: invalid magic
FATA[0600] error provisioning kubernetes: error at 'downloading and installing': exit status 1 


❯ colima version                                                                  
colima version v0.3.4
git commit: 5a4a70481ca8d1e794677f22524e3c1b79a9b4ae

runtime: docker
arch: x86_64

mrsauravsahu avatar May 09 '22 10:05 mrsauravsahu

You might need to wait for me to work on a proper fix. Basically the k3s assets are not downloading properly in your case, and that's why the gzip extraction of the downloaded archive is failing.

The proper fix is to validate the shasum before attempting to extract the files.

I assume only Kubernetes is failing, docker should be working fine.

abiosoft avatar May 09 '22 10:05 abiosoft