-
Notifications
You must be signed in to change notification settings - Fork 22
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
Problems with qemu 5.2 #39
Comments
@alejandro-perez Thanks for the report. Could you provide some minimal example to reproduce?
|
HI, I cannot reproduce it locally either, only on our remote Gitlab runners. Guess it has to be with the configuration our our Gitlab runners, that do not get along with this new version of qemu. I'll try fiddling with them, but truth is that it still works with previous versions, so it must be something that qemu 5.2 has introduced (perhaps is asking for more memory than it used to?). I'll see if we can raise the virtual memory ulimit on the runner and will be back with the outcome. |
Hi, on the gitlab runner, ulimit says unlimited virtual memory, and min_mmap_addr is set to 4096, but with those two exact values it works on my local machine. I've been testing around and playing with QEMU_RESERVED_VA (equivalemnt to the -R parameter) to make it request less than 4GB, but it always fails to request it. Example, that's requesting just 20Mbytes.
I guess the way in which qemu is requesting virtual memory is different for 5.2 and our gitlab runner does not like it. |
@alejandro-perez are you still facing this issue or have you found a workaround? |
Hi @klutchell. I'm still facing it. My workaround was using 3.11 and updating the repositories to 3.12 |
@alejandro-perez so your workaround was to use a newer multiarch/alpine container and repositories, and didn't involve any changes to the host OS for your gitlab runners? Any guesses as to which package change specifically? |
Sorry I replied too fast and probably without much clarity.
|
@alejandro-perez Thanks for the details! Unfortunately it doesn't help with my use case where qemu-arm-static 5.2 isn't able to allocate guest memory when running in a container on EC2. For now we rolled back to 4.0 until we can figure this out. |
Oh right, sorry I got confused since I'm fnding a different problem with 3.13 and that was the solution I was using. The actual solution for the problem was to stick to an earlier version of the image that I happened to have in my cache which ships with qemu-static 5.1. |
BTW, my gitlab instance is running on Azure, also finding the same problem. I guess they share similar configurations. |
I'm not actually using Good to know that 5.1 works for you though, I'll try that and see if I can narrow down the change between versions. |
Ok good to know. I read it was possible to use qemu-arm-static fromthe host rather than rellying on it being available in the container, but I never tried. Will take a look at that too :) |
@alejandro-perez FYI, the fix for us was actually discovered by the debian package maintainers. We saw this commit and applied the same https://salsa.debian.org/qemu-team/qemu/-/commit/4adae9b8654d58b3d26d9d35568347f8da5b03bb Perhaps something similar is required by the alpine package maintainers? |
That's very interesting and seems like a great fix to me. @lafin what do you think? |
Hi, we use
multiarch/alpine
to build some images for armv7 target on gitlab, and since the last update to qemu 5.2 we.re getting this error:Any idea of why it could be or how to workaround it?
The text was updated successfully, but these errors were encountered: