Skip to content
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 not starting after upgrading to MacOS 14.5 #1029

Closed
1 of 5 tasks
rachellawson opened this issue May 14, 2024 · 13 comments · Fixed by getsentry/devenv#183
Closed
1 of 5 tasks

Colima not starting after upgrading to MacOS 14.5 #1029

rachellawson opened this issue May 14, 2024 · 13 comments · Fixed by getsentry/devenv#183

Comments

@rachellawson
Copy link

Description

I’m seeing a failure to Start Colima after upgrading my MacBook Pro M3 to Mac OS 14.5

Startup log appears to be:

{"level":"debug","msg":"Creating iso file /Users/rlawson/.colima/_lima/colima/cidata.iso","time":"2024-05-14T09:53:04+01:00"} {"level":"debug","msg":"Using /var/folders/kt/_k_x72x90370249hvcjh29lhb9_9bm/T/diskfs_iso1647795550 as workspace","time":"2024-05-14T09:53:04+01:00"} {"level":"debug","msg":"Failed to detect CPU features. Assuming that AES acceleration is available on this Apple silicon.","time":"2024-05-14T09:53:04+01:00"} {"level":"debug","msg":"OpenSSH version 9.6.1 detected","time":"2024-05-14T09:53:04+01:00"} {"level":"debug","msg":"AES accelerator seems available, prioritizing aes128-gcm@openssh.com and aes256-gcm@openssh.com","time":"2024-05-14T09:53:04+01:00"} {"level":"info","msg":"hostagent socket created at /Users/rlawson/.colima/_lima/colima/ha.sock","time":"2024-05-14T09:53:04+01:00"} {"level":"info","msg":"Starting VZ (hint: to watch the boot progress, see \"/Users/rlawson/.colima/_lima/colima/serial*.log\")","time":"2024-05-14T09:53:04+01:00"} {"level":"fatal","msg":"dial unix /Users/rlawson/.colima/_lima/_networks/user-v2/user-v2_fd.sock: connect: connection refused","time":"2024-05-14T09:53:04+01:00"}

Version

colima version 0.6.8
git commit: 9b0809d
limactl version 0.22.0
qemu-img version 9.0.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

installed via brew

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

FATA[0000] colima is not running

Reproduction Steps

  1. Upgrade to Mac OS 14.5
  2. Run colima

Expected behaviour

Colima starts

Additional context

I tried totally removing colima and reinstalling. No difference.

@mscrivo
Copy link

mscrivo commented May 14, 2024

Same here on M1 Mac. Seems fine on Intel ones though

@mscrivo
Copy link

mscrivo commented May 14, 2024

actually, I got it working by running:

rm -rf ~/.colima/_lima/_networks/user-v2
colima restart

@Physium
Copy link

Physium commented May 15, 2024

actually, I got it working by running:

rm -rf ~/.colima/_lima/_networks/user-v2
colima restart

not sure what this does but this works! thanks!

@diei
Copy link

diei commented May 15, 2024

My colleague had the same problem and deleting ~/.colima/_lima/_networks/user-v2 did not help.

The following steps helped:

# Install all colima updates
brew upgrade

# Cleanup whole colima (images, volumes etc. are deleted)
colima delete

colima start

@steinmb
Copy link

steinmb commented May 23, 2024

Non of the "soft" fixes did it for me. Only the fix above worked for me #1029 (comment)

@prmm95
Copy link

prmm95 commented Aug 6, 2024

Thanks @mscrivo, your fix worked on macOS Sonoma 14.6 that stopped working after the update 🙏🏼

@writerofcode1
Copy link

writerofcode1 commented Aug 15, 2024

I was fine on Sonoma 14.5 but it broke after upgrading to Sonoma 14.6.1.

However, #1029 (comment) fixed it for me too.

@vishal06jain
Copy link

My colleague had the same problem and deleting ~/.colima/_lima/_networks/user-v2 did not help.

The following steps helped:

# Install all colima updates
brew upgrade

# Cleanup whole colima (images, volumes etc. are deleted)
colima delete

colima start

Worked

@thiesschneider
Copy link

thiesschneider commented Sep 20, 2024

I am not sure if this fixes the specific problem here, but I had the issue, that colima did not autostart, no matter what I tried.

Wrong observation:

As my mac is acting as a server and has no display attached I disabled filevault when I set it up first. I did this to avoid entering the password everytime I reboot to be able to remote screenshare and ssh into it.

Today I updated to sequoia and activated filevault. Then colima started automatically on boot.

I tested it and there seems to be a dependency to have filevault activated, otherwise colima does not autostart.

Corrected: I mapped the volume which was mounted on system start, because it was not mapped before colima started, colima did not start properly. I edited the launch plist to startonmount the Volume and then it worked.

Hope this helps some people...

@cozma
Copy link

cozma commented Sep 23, 2024

actually, I got it working by running:

rm -rf ~/.colima/_lima/_networks/user-v2
colima restart

This worked! I also had to exit my docker instance.

@andrw
Copy link

andrw commented Nov 20, 2024

+1 to rm -rf ~/.colima/_lima/_networks/user-v2 fixing it for me, happened after upgrade to 15.1.1

@Irishemma
Copy link

actually, I got it working by running:

rm -rf ~/.colima/_lima/_networks/user-v2
colima restart

it worked for me, too. Ventura 13.7.1

@abiosoft
Copy link
Owner

This should be resolved now with the new release https://github.com/abiosoft/colima/releases/tag/v0.8.1.

tmeijn pushed a commit to tmeijn/dotfiles that referenced this issue Dec 21, 2024
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [abiosoft/colima](https://github.com/abiosoft/colima) | patch | `v0.8.0` -> `v0.8.1` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>abiosoft/colima (abiosoft/colima)</summary>

### [`v0.8.1`](https://github.com/abiosoft/colima/releases/tag/v0.8.1)

[Compare Source](abiosoft/colima@v0.8.0...v0.8.1)

#### Highlights

This is an incremental release with bug fixes.

#### Fixes

-   Cleanup of network assets directory on startup. Fixes [#&#8203;1210](abiosoft/colima#1210), [#&#8203;1029](abiosoft/colima#1029), [#&#8203;1212](abiosoft/colima#1212), [#&#8203;1116](abiosoft/colima#1116).
-   Use of primary network adapter as default route when external network address is enabled. Fixes [#&#8203;1214](abiosoft/colima#1214).

#### Other Updates

-   `VZ` is now the default virtual machine type on macOS 13 or newer. Qemu can still be used if specified.
-   Disk image can now be downloaded locally and specified with the `--disk-image` flag for `colima start`.

##### Runtime version bumps

Runtime version can be updated running the `colima update` command.

-   Docker version updated to `27.4.0`
-   Nerdctl version updated to `2.0.2`
-   Incus version updated to `6.8`

#### Commits

-   ci: fix integration tests by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1190
-   build(deps): bump golang.org/x/term from 0.25.0 to 0.26.0 by [@&#8203;dependabot](https://github.com/dependabot) in abiosoft/colima#1189
-   core: update disk images by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1191
-   cli: add --json flag to status command by [@&#8203;ecrousseau](https://github.com/ecrousseau) in abiosoft/colima#1196
-   config: ability to specifying memory in decimal GiB by [@&#8203;qiao-summer](https://github.com/qiao-summer) in abiosoft/colima#1206
-   build(deps): bump golang.org/x/term from 0.26.0 to 0.27.0 by [@&#8203;dependabot](https://github.com/dependabot) in abiosoft/colima#1207
-   net: clear assets directory on startup by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1213
-   net: set route for external address by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1214
-   core: update disk images by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1215
-   vm: add support for custom disk images by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1216
-   config: use vz as default vm type on macOS 13 or newer by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1217
-   ci: clean up by [@&#8203;abiosoft](https://github.com/abiosoft) in abiosoft/colima#1220

#### New Contributors

-   [@&#8203;ecrousseau](https://github.com/ecrousseau) made their first contribution in abiosoft/colima#1196
-   [@&#8203;qiao-summer](https://github.com/qiao-summer) made their first contribution in abiosoft/colima#1206

**Full Changelog**: abiosoft/colima@v0.8.0...v0.8.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS43Ny4wIiwidXBkYXRlZEluVmVyIjoiMzkuNzcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.