Skip to content

Colima still crashing under network load #603

Closed

Description

@github-nicolas-stadler

Description

My lima VM crashes as soon as network activity gets a little high (such as a Sabnzbd download starting).

Version

Colima Version: 0.5.0 (also tried with HEAD)
Lima Version: 0.14.2
Qemu Version:

Operating System

  • macOS Intel <= 12 (Monterrey)
  • macOS Intel >= 13 (Ventura)
  • macOS M1 <= 12 (Monterrey)
  • macOS M1 >= 13 (Ventura)
  • Linux

Output of colima status

No output. The command hangs forever unless I run killall limactl

Reproduction Steps

  1. Start colima with the command provided
  2. Start a couple of downloads via Sabnzbd/Torrent
  3. VM hangs and docker stops responding until I manually kill limactl

Expected behaviour

VM should be able to sustain network activity under some load.

Additional context

My Colima command:

$HOMEBREW_BIN_PATH/colima start --activate \
  --arch aarch64 \
  --cpu 8 \
  --disk 494 \
  --dns 1.1.1.1 \
  --dns 1.0.0.1 \
  --memory 16 \
  --mount $DOWNLOADS_PATH:w \
  --mount $SERVER_PATH:w \
  --mount $SERVER_DATA_PATH:w \
  --mount-type virtiofs \
  --network-driver slirp \
  --runtime docker \
  --ssh-agent \
  --vm-type vz

I tried slirp and gvproxy for the network driver but it doesn't seem to make much of a difference.
Interesting to note, Docker Desktop for Mac had similar issues but they seem to have been fixed in version 4.16 (no more crashes for me since then): docker/for-mac#6530

Activity

  1. abiosoft commented on Feb 1, 2023

    @abiosoft
    Owner

    I believe this is specific to the vz driver and related to this issue lima-vm/lima#1200.

    I will try to set out some time to troubleshoot the network and probably find an alternative network for the vz driver.

  2. Curtisjk commented on Feb 21, 2023

    @Curtisjk

    I am facing the same issue when pulling large docker containers.

  3. AndreasA commented on Apr 12, 2023

    @AndreasA

    just had the same issue. doing a docker pull / composer install after using scp to retrieve files on a docker volume inside a container. Afterwards colima was nearly useless as starting the instace took forever due to #690 and also composer install never seemed to finish anymore afterwards.

    but as mentioned by @abiosoft it is probably a lima and not a colima issue.

  4. abiosoft commented on Apr 12, 2023

    @abiosoft
    Owner

    @AndreasA are you using VZ or QEMU?

  5. AndreasA commented on Apr 12, 2023

    @AndreasA

    @abiosoft I am using VZ. so I guess it is probably the lima issue?

  6. mig8447 commented on Apr 25, 2023

    @mig8447

    I'm having the exact same issue when using a qemu VM, it doesn't happen with all downloads, but the terminal hangs and I need to kill the ssh process related to the VM and restart colima

    Note that this happens only when running inside of a container, building seems to work fine and downloads could be anything from a package to a single file. I haven't been able to determine the exact cause of this. I attributed it to bind mounts and unpacking a file containing too many files (Using docker volumes seems to work fine) but I don't know anymore

  7. added this to the v0.6.0 milestone on Nov 12, 2023
  8. added a commit that references this issue on May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions