-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Qemu stderr: qemu-system-x86_64: Display 'sdl' is not available. #6136
Comments
I just realized that version 1.1.3 was not from the debian sid package, but from a previously downloaded version archive from the packer website in /usr/local/bin. I've just downloaded packer 1.2.2 and it is producing the same issue. |
I've tried rebooting my computer to see if it would clear some funky state but the issue is still present. |
This looks to me like a QEMU issue -- http://lists.busybox.net/pipermail/buildroot/2017-June/193544.html You can work around with Packer by setting "use_default_display" to false. |
clarified docs in 747d1eb |
Hi, thanks for the quick response! I've tried setting use_default_display to false as recommended, and it produced exactly the same error. I've tried chaning it to true, and the build started but no display showed up (and no instruction about which port I should use to connect with vnc since headless is set to false) If I don't have the use_default_display setting at all, but set "headless" to true, then build proceeds and I get instructions on how to connect to the display with vnc. ... so I have two options to do my builds now, that's great! The qemu bug report seems to be about a build-time option that needs to needs to be enabled. in my case though this was working well, but then stopped working without a package upgrade or a template change.. so maybe the cause is different. |
It could absolutely be a Packer bug, but I wouldn't know where to begin reproducing; your build used to work and then stopped working without a change to the version of Packer. The error message you're seeing is coming from qemu, not Packer. I think something changed on your local environment to cause this. If you can figure out what changed we might be able to make Packer resilient to it, but without knowing what caused it I don't know how to begin fixing this. |
@SwampDragons you're totally right! the issue is that I have no clue what could have changed.. also it must be something that's being carried on across reboots. Is qemu keeping any kind of state or cache somewhere? |
oh ... I just found out that there were package upgrades on my laptop on the morning that I started having issues (I didn't even remember installing unattended-upgrades!) qemu was upgraded that morning, so I tried downgrading to the version that was there before and ta-da! sdl display is back. so that's definitely a regression on the qemu debian packages in sid. I'll report a bug there. at least now we know that it's not a packer issue! thanks for your support |
to give a bit more of a technical context to the source of the problem, it seems as though the qemu-system-x86 package in debian sid (unstable) recently made a switch from SDL1 to SDL2 and this brought on multiple glitches, crashes and mouse grab issues, so package maintainers decided to disable sdl. See the changelog especially for version 1:2.12~rc3+dfsg-1 http://metadata.ftp-master.debian.org/changelogs/main/q/qemu/qemu_2.12~rc3+dfsg-2_changelog I don't know yet if they plan to reenable sdl at some point. |
Interesting -- thanks for the follow-up! |
To workaround, add this to your packer json file:
|
If you're experiencing this on macOS the argument to use is
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi, I'm having a weird issue: packer has been working great for many hours up to now, but some minutes ago it started refusing to build because of a qemu error: Qemu stderr: qemu-system-x86_64: Display 'sdl' is not available.
I'm using packer 1.1.3 from the debian sid package with qemu 1:2.12~rc3+dfsg-1 also from debian sid
From the logline with the options to qemu, it looks like packer somehow "forgets" to add in the first two numbers in the vnc port (e.g. it chose 5966, but it passes in port 66):
as stated above packer was working perfectly fine before that for many hours. I've been running many builds to test out each change in templates, so maybe packer ended up overflowing some state that has to do with the port that it chooses?
the output with PACKER_LOG : https://gist.github.com/lelutin/933793d131a18f3f027055e66997dee3
I'm using this template https://gitlab.com/LeLutin/vagrant-boxes/tree/master/centos -- but I can also reproduce on the debian templates in the same repository (which was also working fine before).
The text was updated successfully, but these errors were encountered: