Get checksum of box file created by virtualbox-iso builder?

357 views
Skip to first unread message

r.r.z...@gmail.com

unread,
May 30, 2017, 3:12:52 AM5/30/17
to Packer
Hello,

My goal is getting checsum of box file, created by virtualbox-iso builder. I think there are two ways:

1. Using checksum post-processor. They give me checksums for disks, but not for entire box file.
2. Using shell-local post-processor. But this don't work for me, because I use WIndows, and this bug is dissapointed me.

Possible there have another solution for my task? I will be very apprecated for any help.

Renat.

Rickard von Essen

unread,
May 30, 2017, 3:54:55 AM5/30/17
to packe...@googlegroups.com
1. Using checksum post-processor. They give me checksums for disks, but not for entire box file.

Since you write "but not for [the] entire box file" I assume you are using the vagrant post-processor. I think you just missed that you need to have the checksum post-processor in a sequence after the vagrant post-processor.

{
  "post-processors": [
    [
      {
        "type": "vagrant",
        "keep_input_artifact": false
      },
      {
        "type": "checksum",
      }
    ]
  ]
}



/ Rickard

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a3c271c1-7892-4f5d-9213-5e704f06dcd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

r.r.z...@gmail.com

unread,
May 30, 2017, 5:50:40 AM5/30/17
to Packer
Rickard, yes, I'm using vagrant post-processor, and with checksum post-ropessor

  "post-processors": [
    {
      "type": "vagrant",
      "output": "win7.box",

      "keep_input_artifact": false
    },
    {
      "type": "checksum",
      "checksum_types": ["sha1"],
      "output": "boxes/win7-sha1.txt"
    }

But after build boxes/win7-sha1.txt contain next line:

3d1507efb6e1d2c21074ea26fc8e86a27e8d38a5    win7.ovf

I want to get win7.box checksum, not only sum of win7.ovf

Renat

вторник, 30 мая 2017 г., 10:54:55 UTC+3 пользователь Rickard von Essen написал:
1. Using checksum post-processor. They give me checksums for disks, but not for entire box file.

Since you write "but not for [the] entire box file" I assume you are using the vagrant post-processor. I think you just missed that you need to have the checksum post-processor in a sequence after the vagrant post-processor.

{
  "post-processors": [
    [
      {
        "type": "vagrant",
        "keep_input_artifact": false
      },
      {
        "type": "checksum",
      }
    ]
  ]
}



/ Rickard
On 30 May 2017 at 09:12, <r.r.z...@gmail.com> wrote:
Hello,

My goal is getting checsum of box file, created by virtualbox-iso builder. I think there are two ways:

1. Using checksum post-processor. They give me checksums for disks, but not for entire box file.
2. Using shell-local post-processor. But this don't work for me, because I use WIndows, and this bug is dissapointed me.

Possible there have another solution for my task? I will be very apprecated for any help.

Renat.

--
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.

Alvaro Miranda Aguilera

unread,
May 30, 2017, 6:00:45 AM5/30/17
to packe...@googlegroups.com
Hello

post-processor run in parallel, so you need the double [ [ a , b ] ] to force them be in sequence.

Alvaro

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/8a837d79-fa95-4e87-a3a5-374d52ee5842%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

r.r.z...@gmail.com

unread,
May 30, 2017, 7:56:12 AM5/30/17
to Packer
Alvaro, Rickard, sorry for my innatention about using sequence for postprocessors! Now all works perfectly, thank you!

Best regards, Renat

вторник, 30 мая 2017 г., 13:00:45 UTC+3 пользователь Alvaro Miranda Aguilera написал:



--
Alvaro

Reply all
Reply to author
Forward
0 new messages