-
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 builder in 0.8.1 fails to create disk image #2449
Comments
Actually, err... I forgot that I can probably lop off the compress post-processor lines and try it with 0.8.0. |
@tylert The post-processor crash should be fixed in 0.8.1. |
The post-processor compress crash is most definitely fixed in 0.8.1, however, I encountered a different failure in 0.8.1. Hence this ticket. |
Confirmed. The same failure occurs in 0.8.0 with the template linked above after you remove the compress post-processor. In 0.8.1, the template may be used as-is to reproduce the failure. |
@tylert Thanks for the repro and thorough testing! |
Please let me know if you require me to try anything else. Also, thanks for the great tool and prompt feedback. |
You have error in you template, latest packer does not contains disk format in file name, so change you template and remove from qemuargs hda .raw portion. |
Or best - remove hda completely |
@vtolstov Thank you for pointing out the problem in my template (running test now). Was this something that should have been flagged as an error by "packer validate" or "packer fix"? |
This is custom variable and can't checked automatic. Simply not specify by
|
@vtolstov спасибо. понимать. Is this the diff that you are suggesting?...
I normally do all my qemu Packer work on Linux and I don't have such a machine handy right now. I tried, for the first time, a "brew install qemu" on my Mac (10.10.4) to do a quick test of the changes you suggested but it seems to fail complaining about SDL support being disabled. Oh well. I shall have to attempt this test again (sometime within the next 96 hours) when I'm near my Linux machine again. |
@tylert yes, this is looks good. |
Confirmed. The fixes recommended by @vtolstov corrected the problem. Closing. |
With the template found at...
https://github.com/tylert/packer-build/blob/a81f4a22331f968b33c85eb8b3667a6034fdafa7/debian/jessie/base-64.json
... the qemu builder fails with the following output:
The pertinent lines would appear to be:
Full capture of failure output:
https://gist.github.com/tylert/16bbbc74c28dda5abc21
The template linked above works fine with Packer 0.7.5 (on Debian 8.1.0 amd64) if you strip out the "communicator", "ssh_pty" and "ssh_timeout" lines. I can't test it with Packer 0.8.0 since that one crashes (#2311).
Please let me know if you would like me to attempt to provide a more minimal template that reproduces the problem.
The text was updated successfully, but these errors were encountered: