Qemu builder with zip url

89 views
Skip to first unread message

oko loj

unread,
Sep 19, 2018, 10:04:23 AM9/19/18
to Packer
I'm downloading raspbian and building it with qemu-system-arm:

  "builders": [
    {
      "type": "qemu",
      "iso_checksum": "8636ab9fdd8f58a8ec7dde33b83747696d31711d17ef68267dbbcd6cfb968c24",
      "iso_checksum_type": "sha256",


the "iso_url" is getting a .zip file, and I can't find a .iso link anywhere on the internet.

Qemu-img tries to convert it to "raw" but in the output folder it's still a zip:

$ file packer-qemu
packer-qemu: Zip archive data, at least v4.5 to extract

Is there a way to convert the zip file to a raw image before qemu boots it?

Thanks

Rickard von Essen

unread,
Sep 19, 2018, 10:14:33 AM9/19/18
to packe...@googlegroups.com
No, you need to wrap packer into a script that downloads the files and unzip it before hand.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/ddcc4cc2-4614-4eba-8781-d707105f117d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

oko loj

unread,
Sep 19, 2018, 10:23:00 AM9/19/18
to Packer
Thanks, I will do that

Op woensdag 19 september 2018 16:14:33 UTC+2 schreef Rickard von Essen:
Reply all
Reply to author
Forward
0 new messages