Closed mikaalanwar closed 1 year ago
I am experiencing this issue as well. Only I didn't need to uninstall colima. I was able to reproduce this by doing the following:
colima delete
colima start
This error es due to QEMU library that was updated to 8.1.0. You must downgrade to 8.0.4. Link issue lima.
Using the downgrade workaround resolved the issue for me on a MacOS Intel i9. Thanks for the heads up @nosagadu!
Duplicate of:
brew uninstall qemu
curl -OSL https://raw.githubusercontent.com/Homebrew/homebrew-core/dc0669eca9479e9eeb495397ba3a7480aaa45c2e/Formula/qemu.rb
brew install ./qemu.rb
brew uninstall qemu
brew install --build-from-source qemu
Lima v0.17.2 shows a prompt to suggest applying this workaround.
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-$(uname -m | sed -e s/arm64/aarch64/)
The proper fix is being discussed here:
Fixed in the qemu bottle 8.1.0-1
🎉
Duplicate of:
Workarounds
Option 1: Downgrade QEMU to v8.0.3
brew uninstall qemu curl -OSL https://raw.githubusercontent.com/Homebrew/homebrew-core/dc0669eca9479e9eeb495397ba3a7480aaa45c2e/Formula/qemu.rb brew install ./qemu.rb
Option 2: Install QEMU from the source
brew uninstall qemu brew install --build-from-source qemu
Option 3: Sign the QEMU binary locally
Lima v0.17.2 shows a prompt to suggest applying this workaround.
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-$(uname -m | sed -e s/arm64/aarch64/)
@AkihiroSuda Thanks a lot! Workaround option # 1 fixed it for me. I'll close this to prevent duplication.
Description
Colima does not start on my local workstation. Here are the logs when I try to start colima:
Here's my log file:
I have tried the following:
As well as tried re-installing it using MacPorts, instead of brew:
But nothing worked, so far. Any suggestions?
Version
Colima Version: 0.5.5 Lima Version: 0.17.2 Qemu Version: 8.1.0
Operating System
Output of
colima status
FATA[0000] colima is not running
Reproduction Steps
Expected behaviour
colima should start properly.
Additional context
N/A