-
-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colima start error: failed to open the QMP socket $HOME/.lima/colima/qmp.sock", forcibly killing QEMU #746
Comments
I'm also seeing this on macOS Intel >= 13 |
Can you upgrade Qemu to 8.0.0? |
I've tried qemu 8.0.0 and that didn't work for me, but I just tried upgrading from 0.5.4 to 0.5.5 and that did work for me. So my problem appears to have been different from OPs. I think the SSH fix is what I needed. Edit: I just want to confirm that my issue was indeed fixed by upgrading to 0.5.5 |
sflr and thank you for the suggestions. I have tried upgrading Qemu to 8.0.3 and I am still seeing the same error. Here is the error log
|
I'm also seeing this on macOS 12 Intel |
My error log:
Versions:
UPDATE:
|
lima@0.17.2 seems to have identified root cause which explains why |
The issue is now solved: |
Thanks so much for chasing this so successfully @AkihiroSuda ! |
Thanks guys. I ran into the same problem. Fortunately it has been resolved. After reinstall qemu |
thank you for the help and support. i tried updating qemu and it seems like the error does not go away. anything that i am missing out? thank you guys 🙏
|
I'm still struggling with this on Github Workflows :( I imagine the runner image hasn't been properly updated, or some runners are still in the wild with the bad version. |
Seems old |
It's not fixing it on GitHub Actions: https://github.com/hofstadter-io/hof/actions/runs/5898945057/job/16000752109 qemu-8.0.4 |
|
Hi 👋 TL;DR try resetting your default colima profile with:
I've been lurking on this thread because I've had all the issues mentioned above and diligently went through all the troubleshooting steps mentioned here and linked from other issues raised (and closed) across lima and colima. I also tried downgrading my versions to Anyways I think I found the fix? Funnily enough it was through the ol' RTFM and heading to this section in the FAQ of the Colima docs: https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#issues-after-an-upgrade If you, like me, have done All The Things to try and get colima to recognise the validity of the apple hypervisor signature within the qemu binary, then the issue might be that your default colima profile might need to be reset. Test this with:
If the separate profile starts successfully without issues, then the issue would be resolved by resetting the default profile:
After I did that, colima was good to go:
VersionColima Version: 0.5.5 Operating SystemmacOS Intel Hope that helps someone -- if you want the |
After working through the issues, I got everything up to date on my GHA worker, still saw the same error Eventually what worked for me was to run these steps rather than the
deleting the profile only caused other problems, it was not pleasant to debug by pushing commits :], so I didn't dig deeper as to why |
take that back, still seeing issues |
looks like we still have to wait for a rollout still there are more workarounds there |
Ran into this problem. Tried reinstalling colima, lima, qemu but that didn't help.
VersionsmacOS Intel |
Workaroundcat >entitlements.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
</plist>
EOF
codesign --sign - --entitlements entitlements.xml --force /usr/local/bin/qemu-system-x86_64 The proper fix is proposed here: |
This is our working GHA workaround, thanks for the help y'all 🙏 brew install docker
brew reinstall -f --force-bottle qemu lima colima
# hack to codesign for entitlement
cat >entitlements.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
</plist>
EOF
codesign --sign - --entitlements entitlements.xml --force /usr/local/bin/qemu-system-x86_64
colima start --cpu 3 --memory 10 --disk 12 and also echo "DOCKER_HOST="unix://$HOME/.colima/default/docker.sock"" >> $GITHUB_ENV (because we have a tool that needs this) |
sflr again. thank you all for the detailed inputs and valuable support. greatly appreciate it 😄 🙏 . finally got it to work yay 💯 ! it seems like i needed to run the command
instead without seeing the
log for too long. but anyways its working so im gonna close this 👍 |
Description
Steps to Reproduce
Run
colima start
Actual
Process is killed with error: failed to open the QMP socket "$HOME/.lima/colima/qmp.sock", forcibly killing QEMU.
ha.stderr.log
Expected
colima starts without errors.
Version
Colima Version: v0.5.5
Lima Version: 0.16.0
Qemu Version: 7.1.0
Operating System
Output of
colima status
colima is not running
Reproduction Steps
colima start
Expected behaviour
colima starts without errors.
Additional context
I have tried to reinstall homebrew but it still did not help.
The text was updated successfully, but these errors were encountered: