Skip to content

Slow image pulling when using VZ VM type #648

@fungiboletus

Description

@fungiboletus

Description

Pulling images is very slow when I set the VM type to VZ.

On the docker hello world image, running it from a clean colima instances takes 3 seconds using the default parameters, and 17 seconds when --vm-type=vz is set. It looks like the time is spent initiating the connection because the download speed looks fine. Could be a slow DNS query, a slow TCP handshake, a slow TLS handshake, I don't know.

Version

Colima Version: 0.5.4
Lima Version: 0.15.0
Qemu Version: 7.2.0

Operating System

macOS M1 >= 13 (Ventura)

Output of colima status

INFO[0000] colima is running using macOS Virtualization.Framework 
INFO[0000] arch: aarch64                                
INFO[0000] runtime: docker                              
INFO[0000] mountType: virtiofs                          
INFO[0000] socket: unix:///Users/fungiboletus/.colima/default/docker.sock 

Reproduction Steps

  1. colima start --cpu 4 --memory 4
  2. time docker run -it --rm hello-world
  3. colima delete
  4. colima start --cpu 4 --memory 4 --vm-type=vz
  5. time docker run -it --rm hello-world
  6. colima delete

Expected behaviour

The duration of pulling and running the hello-world image should be similar.

Additional context

No response

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