Skip to content

Cannot pull image from WSL machine when CRC is started #4651

Open
@odockal

Description

General information

After Installation of CRC and starting it with OpenShift preset, I am no longer able to pull image on WSL machine. Windows 10 Pro, x64, HyperV and VMP (virtual machine platform) enabled.

Operating System

Windows

Hypervisor

Hyper-V

Did you run crc setup before crc start?

yes

Running on

Laptop

Steps to reproduce

  1. Install CRC, restat PC
  2. Setup CRC with defaults
  3. Start CRC (again using default), pass pull secret
  4. Start Podman (5.4.0) WSL Machine
  5. try pulling httpd image
    Assert: Image is pulled without errors
    Actual: Error: copying system image from manifest list: writing blob: storing blob to file "/var/tmp/container_images_storage1878999430/2": happened during read: local error: tls: bad record MAC

CRC version

crc version
CRC version: 2.47.0+457b65
OpenShift version: 4.17.14
MicroShift version: 4.17.14

CRC status

crc status
CRC VM:          Running
OpenShift:       Running (v4.17.14)
Disk Usage:      23.62GB of 32.68GB (Inside the CRC VM)
Cache Usage:     64.15GB
Cache Directory: C:\Users\Ondrej\.crc\cache

CRC config

crc config view
- consent-telemetry                     : no

Host Operating System

systeminfo

Host Name:                 DESKTOP-BDDQV3I
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19045 N/A Build 19045
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          Ondrej
Registered Organization:
Product ID:                00330-80000-00000-AA049
Original Install Date:     2/10/2023, 10:15:11 AM
System Boot Time:          2/27/2025, 6:27:20 PM
System Manufacturer:       LENOVO
System Model:              20LAS3NJ0U
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 142 Stepping 10 GenuineIntel ~1910 Mhz
BIOS Version:              LENOVO N27ET29W (1.15 ), 8/8/2018
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             cs;Czech
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague
Total Physical Memory:     32,383 MB
Available Physical Memory: 15,510 MB
Virtual Memory: Max Size:  37,247 MB
Virtual Memory: Available: 19,754 MB
Virtual Memory: In Use:    17,493 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\DESKTOP-BDDQV3I
Hotfix(s):                 31 Hotfix(s) Installed.
                           [01]: KB5050576
                           [02]: KB5028853
                           [03]: KB5011048
                           [04]: KB5011052
                           [05]: KB5012170
                           [06]: KB5015684
                           [07]: KB5020683
                           [08]: KB5051974
                           [09]: KB5014032
                           [10]: KB5016705
                           [11]: KB5023794
                           [12]: KB5025315
                           [13]: KB5026879
                           [14]: KB5028318
                           [15]: KB5028380
                           [16]: KB5029709
                           [17]: KB5031539
                           [18]: KB5032392
                           [19]: KB5032907
                           [20]: KB5034224
                           [21]: KB5036447
                           [22]: KB5037018
                           [23]: KB5037240
                           [24]: KB5037995
                           [25]: KB5039336
                           [26]: KB5041579
                           [27]: KB5043935
                           [28]: KB5043130
                           [29]: KB5046823
                           [30]: KB5050388
                           [31]: KB5050111
Network Card(s):           4 NIC(s) Installed.
                           [01]: Intel(R) Ethernet Connection (4) I219-LM
                                 Connection Name: Ethernet
                                 Status:          Media disconnected
                           [02]: Intel(R) Dual Band Wireless-AC 8265
                                 Connection Name: Wi-Fi
                                 DHCP Enabled:    Yes
                                 DHCP Server:     192.168.50.1
                                 IP address(es)
                                 [01]: 192.168.50.136
                                 [02]: fe80::8b80:6dfd:d1d0:dbd3
                           [03]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (Default Switch)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 172.26.160.1
                                 [02]: fe80::6357:be28:74d1:32fa
                           [04]: Hyper-V Virtual Ethernet Adapter
                                 Connection Name: vEthernet (WSL)
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 172.23.48.1
                                 [02]: fe80::bbe4:615e:2506:decc
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Expected behavior

see steps to reproduce.

Actual behavior

See steps to reproduce.

CRC Logs

> crc setup
INFO Using bundle path C:\Users\Ondrej\.crc\cache\crc_hyperv_4.17.14_amd64.crcbundle
INFO Checking minimum RAM requirements
...
INFO Checking SSH port availability
Your system is correctly setup for using CRC. Use 'crc start' to start the instance

> crc start -p .\Downloads\pull-secret --log-level=debug
DEBU CRC version: 2.47.0+457b65
DEBU OpenShift version: 4.17.14
DEBU MicroShift version: 4.17.14
DEBU Running 'crc start'
DEBU Total memory of system is 33955885056 bytes
...

Log in as user:
  Username: developer
  Password: developer

Use the 'oc' command line interface:
  PS> & crc oc-env | Invoke-Expression
  PS> oc login -u developer https://api.crc.testing:6443

> crc status
CRC VM:          Running
OpenShift:       Running (v4.17.14)
Disk Usage:      23.61GB of 32.68GB (Inside the CRC VM)
Cache Usage:     64.15GB

> $env:CONTAINERS_MACHINE_PROVIDER='wsl'
> podman machine init --now --log-level=debug
time="2025-02-27T19:15:44+01:00" level=info msg="C:\\Program Files\\RedHat\\Podman\\podman.exe filtering at log level debug"
time="2025-02-27T19:15:44+01:00" level=debug msg="Using Podman machine with `wsl` virtualization provider"
...

This machine is currently configured in rootless mode. If your containers
require root permissions (e.g. ports < 1024), or if you run into compatibility
issues with non-podman clients, you can switch using the following command:

        podman machine set --rootful
... 
Machine "podman-machine-default" started successfully
time="2025-02-27T19:17:00+01:00" level=debug msg="Called machine init.PersistentPostRunE(C:\\Program Files\\RedHat\\Podman\\podman.exe machine init --now --log-level=debug)"
time="2025-02-27T19:17:00+01:00" level=debug msg="Shutting down engines"

> podman machine ls
NAME                     VM TYPE     CREATED        LAST UP            CPUS        MEMORY      DISK SIZE
podman-machine-default*  wsl         2 minutes ago  Currently running  4           2GiB        100GiB
> podman image pull httpd
Resolving "httpd" using unqualified-search registries (/etc/containers/registries.conf.d/999-podman-machine.conf)
Trying to pull docker.io/library/httpd:latest...
Getting image source signatures
Copying blob sha256:fdebd6c6e1b28dfa478a01b758d8a3eeef5d8c457ae9c14676db5b5d607553fd
Copying blob sha256:7cf63256a31a4cc44f6defe8e1af95363aee5fa75f30a248d95cae684f87c53c
Copying blob sha256:38fd0d422c41e887747bb431cc895ab880989389b3cf9212df3f0ee86dd5e640
Copying blob sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1
Copying blob sha256:470035b3d48f5ca69f4fdcf928c47013217143ae426caa4a486e2e461ae3e21a
Copying blob sha256:d2f10b557009896789e986473b1b9100117a1301d155a969c925fd79e55a8899
Error: copying system image from manifest list: writing blob: storing blob to file "/var/tmp/container_images_storage1878999430/2": happened during read: local error: tls: bad record MAC

Additional context

First reported on crc-extension repository: crc-org/crc-extension#453.

CRC and other logs in full available on gist: https://gist.github.com/odockal/9353e80de22b1433ddde901d243b5215#file-pull-image-error-crc-txt

Activity

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

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions