-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
0.6.7 - Initialization of base image fails / stuck at "expanding disk" - macOS Intel with vmtype vz and virtioifs #930
Comments
Another one just had the same issue at my place of work:
|
The only solution I found was to temporarily downgrade to 0.6.6, do the start there, then reinstall 0.6.7. So something like this - probably not all deletions etc. are necessary but to be safe I did them multiple times:
|
This specifically happens with vz on intel devices, right? |
@abiosoft yes, qemu version seems to work fine and also I had another colleague try it on an M2 (delete / start) and there it worked fine. but I got the same issue on two Intel Maac with vm type VZ. not sure if virtiofs is relevant or not (though I am not sure iff anything else works in combination with VZ). |
@abiosoft I also just tried the following lima config and manually creating it, and it fails as well with expanding disk: images:
- location: 'https://github.com/abiosoft/colima-core/releases/download/v0.6.7/ubuntu-23.10-minimal-cloudimg-amd64.qcow2'
arch: 'x86_64'
digest: 'sha512:9980ac00edc0a0b75e9c924f25f3403e76ef8fd680ee1847082de543a8ff851413992a18b065c53092edf298d11de50b0b129ece1ec17217bd8a6e9266b22345'
vmType: 'vz'
mountType: 'virtiofs' maybe the image or the conversion from qcow2 to raw has some issue. I think the previous one was raw format? I also found that lima issue, might be related ? lima-vm/lima#1964 though the file does not seem to be empty that has been created but it might have been before it tries to expand the file. |
@abiosoft I did one more test and the following did indeed work (using limactl manually): download and convert image manually to raw using qemu-img curl -o ubuntu-23.10-minimal-cloudimg-amd64.qcow2 -L https://github.com/abiosoft/colima-core/releases/download/v0.6.7/ubuntu-23.10-minimal-cloudimg-amd64.qcow2
qemu-img convert ubuntu-23.10-minimal-cloudimg-amd64.qcow2 ubuntu-23.10-minimal-cloudimg-amd64.raw and then using the following lime config I was able to successfully create the instance: images:
- location: './ubuntu-23.10-minimal-cloudimg-amd64.raw'
arch: 'x86_64'
vmType: 'vz'
mountType: 'virtiofs' so I guess the issue is indeed lima qcow2 auto-conversion to raw image. |
Interesting. Thanks for the detailed feedback. |
Got the same issue |
@abiosoft The easiest solution would be to switch back to the raw image type until the lima bug is fixed. |
@AndreasA colima can actually do the conversion to raw as a temporary workaround. This is specific to Intel as I am unable to reproduce on my m1 devices. |
@abiosoft that would be even better. strictly speaking it could always be done for now for VZ vm type, as lima does the conversion anyway. Any idea when the corresponding update will be available (approximately)? |
@abiosoft any news when this might be fixed? as it bascially prevents me to do a colima delete (though it is probably not necessary now that I have it running again with 0.6.7) without having to downgrade again. |
I am seeing the same error on an M2 air with 0.6.8. Is there any workaround for this? |
Same error with colima 0.6.8 on M3 Pro on Sonoma 14.3. Well, it was hanging on the "expanding disk" step when I did |
I downgraded to 0.5.6 and it's working fine on there. M3 is using vz by default AFAIK so likely same issue @pgarrett-twc. |
Had the same problem. What fixed my issues was Used limactl to create one instance first (don't know if this did anything) Then stopped it And used colima - NOTE the smaller disk size Then docker ps worked again |
If there were a raw version of the latest colima image, users could workaround this with an override right? |
None of the above solutions worked for me (M2 Mac). I switched to Lima, which worked on the first try.
|
Stopped working on M1 as well. During this phase: It eats all my HDD space. My settings is:
|
Works on M1 Pro, but doesn't work on M3 for me |
I changed the space back to default (60GB, i had about 70GB left on my device when i was trying 100GB option) then the expanding finished without problem (maybe it would finish with 100GB as well if i had that space left). I was just wondering why it stopped working when i didn't make any change. But now after some docker and colima reinstalations its working again. My use case was that my ARM64 Oracle DB stopped working. |
This worked for me on an M3 with 14.3.1 (23D60). |
This actually did work for me, but it still took around 5 minutes to expand the disk. So now I'm wondering if I just wasn't patient enough before 😆 On 0.5.x, initial startup is much faster. |
Updated my iMac to 14.3.1 from 14.2.1 and it worked with |
The |
When having this problem I also see caching behavior: So best to |
I also have this problem on a M2 Max, Sonoma 14.3.1, colima 0.6.8.
Took 1 hour 20 minutes, activity monitor shows around 15MB/sec disk writes. Using |
Same issue here on an older intel MacOS Ventura 13.6.4, with colima 0.6.7, if i recall correctly the version 0.6.6 had the same issue. Here is how if it helps someone brew uninstall colima && rm -rf ~/.colima # Removing the folder just in case I don´t think it is necessary
# this is the formulae for the version 0.6.5
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/c3c2a6daa274d5f4b9cc7bb3d25b3cfde50b4e0a/Formula/c/colima.rb -o /tmp/colima.rb
brew install --formulae /tmp/colima.rb
colima start --vm-type=vz --mount-type=virtiofs --disk 60
colima stop
brew update && brew upgrade |
Same issue on Apple Silicon M2 running MacOS Sonoma 14.3.1 and Colima 0.6.8 but working fine with Colima 0.6.5. |
I also found that I was able to get past this by using I also noted that during several failures I saw that there were zombie instances of limactl that could not be killed, so when I saw them ( |
Facing the same issue, going through 0.6.6 initialization and then upgrading to latest did the job well. |
I experimented with different disk sizes on M1, Sonoma 14.4. If disk is 40 then it starts very quickly without any issues but for other sizes it gets stuck colima 0.6.8 For last 10 mins I have 273 GB free |
Using |
Can confirm that using It seems to specifically be people that are on M2/3 that are affected. Intel and M1 seems fine for the most part. |
Mac mini M1, this colima start --cpu 8 --memory 12 --disk 128 --arch aarch64 --vm-type=vz --vz-rosetta took several hours writing 15 MB/s to the disk. Version 0.6.8. |
I haven't tried this yet but the newest lima 0.22.0 version should include a bugfix regarding the issue lima-vm/lima#1964 so I hope this is fixed now as well. Bugfix: lima-vm/lima#2255 which is mentioned in the full changes: https://github.com/lima-vm/lima/milestone/45?closed=1 |
This has been fixed in the latest head. It seems the issue is due to the way the Colima disk image was compressed. With compression disabled, it works as desired. The only downside is heavier download during first startup. |
@abiosoft any timeline on when the change will be released and we can just install latest ( |
I had the same issue and using I ran: brew uninstall colima
rm -rf ~/Library/Caches/lima ~/.colima ~/.lima
brew install --head colima
colima start --mount $HOME/workingCopies:w -c 10 -m 16 --disk 200 --ssh-agent --vm-type vz --vz-rosetta --mount-type virtiofs |
Yeah, over the weekend. |
v0.6.9 has been released and should be available on homebrew shortly. |
Version 0.6.9 confirmed to have fixed the issue for me, thanks! |
Colima now does this instead #930 (comment) as a permanent fix and would be part of the imminent next release. The disk image downloads are smaller again but without the disk expansion issues. Anyone can try the development version with |
Description
After updating to colima 0.6.7 something did not work upon start, so I did the usual
Then I did a colima start with vm-type vz and virtiofs and the new image failed to load successfully. It got stuck at expanding disk image. After this happened the mac got stuck on shutdown/reboot as well and only a force shutdown worked.
I checked the folder
~/.colima/_lima/colima
and it seems the image conversion might have failed or was missing a step as it was called diffdisk..tmp instead of just diffdisk.I tried not specifying the vz type and virtiofs and it started successfully in QEMU and sshfs mode.
I then uninstalled
0.6.7
and manually downloaded0.6.6
, did acolima start
there and it worked fine. I then removed the 0.6.6 colima binary and installed 0.6.7 through brew again and now a start works as well. so it seems the issuue is indeed with 0.6.7 and image initialization. maybe the image has a bug?I originally had 13.x installed and tried the upgrade to 14.x to check if that might solve the issue. it did not, so the issue occured in both scenarios.
Version
colima version 0.6.7
git commit: ba1be00
runtime: docker
arch: x86_64
client: v24.0.7
server: v24.0.7
limactl version 0.19.0
Operating System
Output of
colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: x86_64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
Reproduction Steps
see description.
Expected behaviour
colima starts even after delete on intel mac with 0.6.7
Additional context
No response
The text was updated successfully, but these errors were encountered: