Skip to content

Instantly share code, notes, and snippets.

@berney
berney / packer-vagrant-pp-failure.log
Created October 25, 2016 00:47
Vagrant Post-Processor on vmware-iso remote ESXi fails due to lstat no such file or directory
$ PACKER_LOG=1 packer build -var-file=macos1012.json -only=vmware-iso macos.json
2016/10/19 20:32:32 [INFO] Packer version: 0.10.2
2016/10/19 20:32:32 Packer Target OS/Arch: linux amd64
2016/10/19 20:32:32 Built with Go Version: go1.7.1
2016/10/19 20:32:32 Detected home directory from env var: /home/user
2016/10/19 20:32:32 Using internal plugin for docker
2016/10/19 20:32:32 Using internal plugin for file
2016/10/19 20:32:32 Using internal plugin for parallels-pvm
2016/10/19 20:32:32 Using internal plugin for qemu
2016/10/19 20:32:32 Using internal plugin for amazon-instance
@berney
berney / macos.json
Created October 18, 2016 10:20
Packer using vmware-iso builder remote ESXi with modified boxcutter/macos templates failure due to VMware Tools Install step failure
{
"_command": "Build with `packer build macos.json`",
"builders": [
{
"boot_wait": "2s",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "{{ user `vmware_guest_os_type` }}",
"iso_checksum_type": "none",
"iso_url": "{{ user `iso_url` }}",
"output_directory": "output-{{ user `vm_name` }}-vmware-iso",
@berney
berney / cook_rsa_key.go
Created July 1, 2016 23:25 — forked from AGWA/cook_rsa_key.go
Demonstrates that an RSA signature does not uniquely identify a public key.
/*
* Demonstrates that an RSA signature does not uniquely identify a public key.
* Given a signature, s, and a message m, it's possible to construct a new RSA key
* pair such that s is a valid signature for m under the new key pair.
*
* Requires Go version >= 1.5. Go <= 1.4 doesn't work due to a bug in the bignum
* package: https://github.com/golang/go/issues/9826
*
* Written in 2015 by Andrew Ayer <agwa@andrewayer.name>
*