douglascamata / setup-docker-macos-action

A Github Action to setup Docker on macOS runners.
MIT License
29 stars 9 forks source link

Unsigned qemu? #20

Closed yrashk closed 1 year ago

yrashk commented 1 year ago

Having issues with v1-alpha.9:

https://github.com/omnigres/omnigres/actions/runs/6076008419/job/16483278898

Run colima start
time="2023-09-04T16:55:38Z" level=info msg="starting colima"
time="2023-09-04T16:55:38Z" level=info msg="runtime: docker"
time="2023-09-04T16:55:38Z" level=info msg="preparing network ..." context=vm
time="2023-09-04T16:55:38Z" level=info msg="creating and starting ..." context=vm
time="2023-09-04T16:55:38Z" level=info msg="Terminal is not available, proceeding without opening an editor"
time="2023-09-04T16:55:38Z" level=warning msg="QEMU binary \"/Users/runner/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/bin/qemu-system-x86_64\" is not properly signed with the \"com.apple.security.hypervisor\" entitlement" error="failed to run [codesign --verify /Users/runner/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/bin/qemu-system-x86_64]: exit status 1 (out=\"/Users/runner/.colima/_wrapper/4e1b408f843d1c63afbbdcf80c40e4c88d33509f/bin/qemu-system-x86_64: code object is not signed at all\\nIn architecture: x86_64\\n\")"
time="2023-09-04T16:55:38Z" level=warning msg="You have to sign the QEMU binary with the \"com.apple.security.hypervisor\" entitlement manually. See https://github.com/lima-vm/lima/issues/1742 ."
time="2023-09-04T16:55:38Z" level=info msg="Attempting to download the image" arch=x86_64 digest="sha512:f761b807fe9ba345968df72c07f8c5abcae0c4a44976fe5595c0ff748ef693841221a70e663986c700b027cea32b7cac24d5490d4c721593c39f2b8840c362a2" location="https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.5.5/alpine-lima-clm-3.18.0-x86_64.iso"
Downloading the image (alpine-lima-clm-3.18.0-x86_64.iso)

138.39 MiB / 315.00 MiB (43.93%) ? p/s
265.60 MiB / 315.00 MiB (84.32%) 25.44 MiB/s
315.00 MiB / 315.00 MiB (100.00%) 45.03 MiB/stime="2023-09-04T16:55:51Z" level=info msg="Downloaded the image from \"[https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.5.5/alpine-lima-clm-3.18.0-x86_64.iso\](https://github.com/abiosoft/alpine-lima/releases/download/colima-v0.5.5/alpine-lima-clm-3.18.0-x86_64.iso/)""
time="2023-09-04T16:55:52Z" level=fatal msg="exiting, status={Running:false Degraded:false Exiting:true Errors:[] SSHLocalPort:0} (hint: see \"/Users/runner/.lima/colima/ha.stderr.log\")"
time="2023-09-04T16:55:52Z" level=fatal msg="error starting vm: error at 'creating and starting': exit status 1"
Error: Process completed with exit code 1.
douglascamata commented 1 year ago

This is an issue with homebrew that I am already tackling on #19 (see #12). Also closing this as I am tracking this issue at #16.

FYI I am about to merge the PR and tag a new release. But I cannot guarantee that this action will always work, as it relies heavily on Homebrew and software preinstalled in macOS Action Runners. Both these two things recently have been having lots of issues involving the QEMU formula and conflicts with other pre-installed software.

douglascamata commented 1 year ago

Release's out, btw: v1-alpha or v1-alpha.10.

yrashk commented 1 year ago

Thank you so much! ❤️