Skip to content

Instantly share code, notes, and snippets.

@spuder
Last active April 17, 2017 19:49
Show Gist options
  • Save spuder/a9ddbcb2f8917d64bc0eb060bb65fa42 to your computer and use it in GitHub Desktop.
Save spuder/a9ddbcb2f8917d64bc0eb060bb65fa42 to your computer and use it in GitHub Desktop.
packer chef-solo fails

The ubuntu 14.04 chef-solo provisioner is working (see line 216 of ubuntu14.04.json)
The ubuntu 16.04 chef-solo provisioner sometimes fails

2017/04/17 13:47:13 ui: ==> vmware-iso: Provisioning with chef-solo
==> vmware-iso: Provisioning with chef-solo
2017/04/17 13:47:13 ui:     vmware-iso: Installing Chef...
    vmware-iso: Installing Chef...
2017/04/17 13:47:13 packer: 2017/04/17 13:47:13 opening new ssh session
2017/04/17 13:47:13 packer: 2017/04/17 13:47:13 starting remote command: curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -v 12.19.36
2017/04/17 13:47:13 ui:     vmware-iso: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    vmware-iso: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2017/04/17 13:47:13 ui:     vmware-iso: Dload  Upload   Total   Spent    Left  Speed
    vmware-iso: Dload  Upload   Total   Spent    Left  Speed
2017/04/17 13:47:13 ui:     vmware-iso: 100 20500  100 20500    0     0  53129      0 --:--:-- --:--:-- --:--:-- 53246
    vmware-iso: 100 20500  100 20500    0     0  53129      0 --:--:-- --:--:-- --:--:-- 53246
2017/04/17 13:47:13 ui:     vmware-iso: ubuntu 14.04 x86_64
    vmware-iso: ubuntu 14.04 x86_64
2017/04/17 13:47:13 ui:     vmware-iso: Getting information for chef stable 12.19.36 for ubuntu...
    vmware-iso: Getting information for chef stable 12.19.36 for ubuntu...
2017/04/17 13:47:13 ui:     vmware-iso: downloading https://omnitruck.chef.io/stable/chef/metadata?v=12.19.36&p=ubuntu&pv=14.04&m=x86_64
    vmware-iso: downloading https://omnitruck.chef.io/stable/chef/metadata?v=12.19.36&p=ubuntu&pv=14.04&m=x86_64
2017/04/17 13:47:13 ui:     vmware-iso: to file /tmp/install.sh.1043/metadata.txt
    vmware-iso: to file /tmp/install.sh.1043/metadata.txt
2017/04/17 13:47:13 ui:     vmware-iso: trying wget...
    vmware-iso: trying wget...
2017/04/17 13:47:13 ui:     vmware-iso: sha1	a316f74e4a08fd4d2c535460c3aa16d30e09a08e
    vmware-iso: sha1	a316f74e4a08fd4d2c535460c3aa16d30e09a08e
2017/04/17 13:47:13 ui:     vmware-iso: sha256	fbf44670ab5b76e4f1a1f5357885dafcc79e543ccbbe3264afd40c15d604b6dc
    vmware-iso: sha256	fbf44670ab5b76e4f1a1f5357885dafcc79e543ccbbe3264afd40c15d604b6dc
2017/04/17 13:47:13 ui:     vmware-iso: url	https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
    vmware-iso: url	https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
2017/04/17 13:47:13 ui:     vmware-iso: version	12.19.36
    vmware-iso: version	12.19.36
2017/04/17 13:47:13 ui:     vmware-iso: downloaded metadata file looks valid...
    vmware-iso: downloaded metadata file looks valid...
2017/04/17 13:47:13 ui:     vmware-iso: downloading https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
    vmware-iso: downloading https://packages.chef.io/files/stable/chef/12.19.36/ubuntu/14.04/chef_12.19.36-1_amd64.deb
2017/04/17 13:47:13 ui:     vmware-iso: to file /tmp/install.sh.1043/chef_12.19.36-1_amd64.deb
    vmware-iso: to file /tmp/install.sh.1043/chef_12.19.36-1_amd64.deb
2017/04/17 13:47:13 ui:     vmware-iso: trying wget...
    vmware-iso: trying wget...
2017/04/17 13:47:18 ui:     vmware-iso: Comparing checksum with sha256sum...
    vmware-iso: Comparing checksum with sha256sum...
2017/04/17 13:47:18 ui:     vmware-iso: Installing chef 12.19.36
    vmware-iso: Installing chef 12.19.36
2017/04/17 13:47:18 ui:     vmware-iso: installing with dpkg...
    vmware-iso: installing with dpkg...
2017/04/17 13:47:18 ui:     vmware-iso: Selecting previously unselected package chef.
    vmware-iso: Selecting previously unselected package chef.
2017/04/17 13:47:19 ui:     vmware-iso: (Reading database ... 99000 files and directories currently installed.)
    vmware-iso: (Reading database ... 99000 files and directories currently installed.)
2017/04/17 13:47:19 ui:     vmware-iso: Preparing to unpack .../chef_12.19.36-1_amd64.deb ...
    vmware-iso: Preparing to unpack .../chef_12.19.36-1_amd64.deb ...
2017/04/17 13:47:19 ui:     vmware-iso: Unpacking chef (12.19.36-1) ...
    vmware-iso: Unpacking chef (12.19.36-1) ...
2017/04/17 13:47:21 ui:     vmware-iso: Setting up chef (12.19.36-1) ...
    vmware-iso: Setting up chef (12.19.36-1) ...
2017/04/17 13:47:21 ui:     vmware-iso: Thank you for installing Chef!
    vmware-iso: Thank you for installing Chef!
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 1034 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 317 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 1034 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 317 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 ui:     vmware-iso: Creating directory: /tmp/packer-chef-solo
    vmware-iso: Creating directory: /tmp/packer-chef-solo
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo mkdir -p '/tmp/packer-chef-solo'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo chmod 0777 '/tmp/packer-chef-solo'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 ui:     vmware-iso: Creating directory: /tmp/packer-chef-solo/cookbooks-0
    vmware-iso: Creating directory: /tmp/packer-chef-solo/cookbooks-0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo mkdir -p '/tmp/packer-chef-solo/cookbooks-0'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo chmod 0777 '/tmp/packer-chef-solo/cookbooks-0'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 0 bytes written for 'stdout'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Upload dir 'cookbooks/' to '/tmp/packer-chef-solo/cookbooks-0'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Starting remote scp process:  scp -rvt /tmp/packer-chef-solo/cookbooks-0
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Started SCP session, beginning transfers...
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [DEBUG] scp: Uploading README.md: perms=C0644 size=233
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 SCP session complete, closing stdin pipe.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Waiting for SSH session to complete.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 scp stderr (length 26): Sink: C0644 233 README.md
2017/04/17 13:47:21 ui:     vmware-iso: Creating configuration file 'solo.rb'
    vmware-iso: Creating configuration file 'solo.rb'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 58 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 [INFO] 58 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Starting remote scp process:  scp -vt /tmp/packer-chef-solo
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Started SCP session, beginning transfers...
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Copying input data into temporary file so we can read the length
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [DEBUG] scp: Uploading solo.rb: perms=C0644 size=58
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 SCP session complete, closing stdin pipe.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Waiting for SSH session to complete.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 scp stderr (length 23): Sink: C0644 58 solo.rb
2017/04/17 13:47:21 ui:     vmware-iso: Creating JSON attribute file
    vmware-iso: Creating JSON attribute file
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [INFO] 2 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 [INFO] 2 bytes written for 'uploadData'
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Starting remote scp process:  scp -vt /tmp/packer-chef-solo
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Started SCP session, beginning transfers...
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Copying input data into temporary file so we can read the length
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 [DEBUG] scp: Uploading node.json: perms=C0644 size=2
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 SCP session complete, closing stdin pipe.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 Waiting for SSH session to complete.
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 scp stderr (length 24): Sink: C0644 2 node.json
2017/04/17 13:47:21 ui:     vmware-iso: Executing Chef: sudo chef-solo --no-color -c /tmp/packer-chef-solo/solo.rb -j /tmp/packer-chef-solo/node.json
    vmware-iso: Executing Chef: sudo chef-solo --no-color -c /tmp/packer-chef-solo/solo.rb -j /tmp/packer-chef-solo/node.json
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 opening new ssh session
2017/04/17 13:47:21 packer: 2017/04/17 13:47:21 starting remote command: sudo chef-solo --no-color -c /tmp/packer-chef-solo/solo.rb -j /tmp/packer-chef-solo/node.json
2017/04/17 13:47:22 ui:     vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /tmp/packer-chef-solo
    vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /tmp/packer-chef-solo
2017/04/17 13:47:22 ui:     vmware-iso: One version per cookbook
    vmware-iso: One version per cookbook
2017/04/17 13:47:22 ui:     vmware-iso:
    vmware-iso:
2017/04/17 13:47:22 ui:     vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Forking chef instance to converge...
    vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Forking chef instance to converge...
2017/04/17 13:47:22 ui:     vmware-iso: [2017-04-17T19:47:22+00:00] INFO: *** Chef 12.19.36 ***
    vmware-iso: [2017-04-17T19:47:22+00:00] INFO: *** Chef 12.19.36 ***
2017/04/17 13:47:22 ui:     vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Platform: x86_64-linux
    vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Platform: x86_64-linux
2017/04/17 13:47:22 ui:     vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Chef-client pid: 1141
    vmware-iso: [2017-04-17T19:47:22+00:00] INFO: Chef-client pid: 1141
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/vagrant.vm
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/vagrant.vm
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List is []
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List is []
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List expands to []
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Run List expands to []
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Starting Chef Run for vagrant.vm
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Starting Chef Run for vagrant.vm
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running start handlers
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running start handlers
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Start handlers complete.
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Start handlers complete.
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found:
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found:
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Loading cookbooks []
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Loading cookbooks []
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] WARN: Node vagrant.vm has an empty run list.
    vmware-iso: [2017-04-17T19:47:24+00:00] WARN: Node vagrant.vm has an empty run list.
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Chef Run complete in 0.051898128 seconds
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Chef Run complete in 0.051898128 seconds
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running report handlers
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Running report handlers
2017/04/17 13:47:24 ui:     vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Report handlers complete
    vmware-iso: [2017-04-17T19:47:24+00:00] INFO: Report handlers complete
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:24 [INFO] 1221 bytes written for 'stdout'
2017/04/17 13:47:24 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:24 [INFO] RPC client: Communicator ended with: 0
2017/04/17 13:47:24 [INFO] RPC endpoint: Communicator ended with: 0
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] 1221 bytes written for 'stdout'
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] 0 bytes written for 'stderr'
2017/04/17 13:47:24 packer: 2017/04/17 13:47:24 [INFO] RPC client: Communicator ended with: 0
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"vm_name": "{{ user `template` }}",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"http_directory": "http",
"hard_drive_interface": "sata",
"disk_size": 40960,
"headless": "{{ user `headless` }}",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"boot_wait": "10s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"output_directory": "packer-{{user `template`}}-virtualbox",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1024"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
]
}, {
"type": "vmware-iso",
"guest_os_type": "ubuntu-64",
"vm_name": "{{ user `template` }}",
"tools_upload_flavor": "linux",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"boot_wait": "10s",
"disk_size": 40960,
"disk_type_id": "0",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"output_directory": "packer-{{user `template`}}-vmware",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "1024",
"numvcpus": "2"
}
}, {
"type": "parallels-iso",
"vm_name": "{{ user `template` }}",
"disk_size": 40960,
"guest_os_type": "ubuntu",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"boot_wait": "10s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"output_directory": "packer-{{user `template`}}-parallels",
"parallels_tools_flavor": "lin",
"prlctl_version_file": ".prlctl_version",
"prlctl": [
[
"set",
"{{.Name}}",
"--memsize",
"1024"
],
[
"set",
"{{.Name}}",
"--cpus",
"2"
]
],
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now"
}, {
"type": "qemu",
"vm_name": "{{ user `template` }}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"disk_size": 40960,
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"boot_wait": "10s",
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"http_directory": "http",
"output_directory": "packer-{{user `template`}}-qemu",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now"
}],
"post-processors": [
{
"keep_input_artifact": true,
"output": "output-virtualbox-iso/ubuntu1404-{{.Provider}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"type": "chef-solo",
"guest_os_type": "unix",
"install_command": "curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -v {{ user `chef_version` }}",
"cookbook_paths": ["cookbooks"],
"run_list": []
}
],
"variables": {
"chef_version": "12.19.36",
"box_basename": "ubuntu-14.04",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "dde07d37647a1d2d9247e33f14e91acb10445a97578384896b4e1d985f754cc1",
"iso_checksum_type": "sha256",
"iso_name": "ubuntu-14.04.5-server-amd64.iso",
"metadata": "floppy/dummy_metadata.json",
"mirror": "http://releases.ubuntu.com",
"mirror_directory": "14.04.5",
"name": "ubuntu-14.04",
"no_proxy": "{{env `no_proxy`}}",
"preseed_path": "ubuntu-14.04/preseed.cfg",
"template": "ubuntu-14.04-amd64",
"version": "2.1.TIMESTAMP"
}
}
{
"builders": [{
"boot_command": [
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US.UTF-8<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US.UTF-8<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": "{{user `disk_size`}}",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "Ubuntu_64",
"hard_drive_interface": "sata",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"output_directory": "output-ubuntu-16.04-virtualbox",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_pty" : "true",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"{{ user `memory` }}"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"{{ user `cpus` }}"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{ user `template` }}"
}, {
"boot_command": [
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US.UTF-8<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US.UTF-8<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": "{{user `disk_size`}}",
"disk_type_id": "0",
"guest_os_type": "ubuntu-64",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"output_directory": "output-ubuntu-16.04-vmware",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"tools_upload_flavor": "linux",
"type": "vmware-iso",
"vm_name": "{{ user `template` }}",
"vmx_data": {
"cpuid.coresPerSocket": "1",
"ethernet0.pciSlotNumber": "32",
"memsize": "{{ user `memory` }}",
"numvcpus": "{{ user `cpus` }}"
}
}, {
"boot_command": [
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US.UTF-8<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US.UTF-8<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "ubuntu",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"output_directory": "output-ubuntu-16.04-parallels",
"parallels_tools_flavor": "lin",
"prlctl": [
[
"set",
"{{.Name}}",
"--memsize",
"{{ user `memory` }}"
],
[
"set",
"{{.Name}}",
"--cpus",
"{{ user `cpus` }}"
]
],
"prlctl_version_file": ".prlctl_version",
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "parallels-iso",
"vm_name": "{{ user `template` }}"
}, {
"boot_command": [
"<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US.UTF-8<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US.UTF-8<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=vagrant<wait>",
" grub-installer/bootdev=/dev/vda<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": "{{user `disk_size`}}",
"headless": "{{ user `headless` }}",
"http_directory": "http",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
"output_directory": "output-ubuntu-16.04-qemu",
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "qemu",
"vm_name": "{{ user `template` }}"
}],
"post-processors": [
{
"keep_input_artifact": true,
"output": "output-virtualbox-iso/ubuntu1604-{{.Provider}}.box",
"type": "vagrant"
}
],
"provisioners": [
{
"type": "chef-solo",
"guest_os_type": "unix",
"install_command": "curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -v {{ user `chef_version` }}",
"cookbook_paths": ["cookbooks"],
"run_list": []
}
],
"variables": {
"chef_version": "12.19.36",
"box_basename": "ubuntu-16.04",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "1",
"disk_size": "40960",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": "29a8b9009509b39d542ecb229787cdf48f05e739a932289de9e9858d7c487c80",
"iso_checksum_type": "sha256",
"iso_name": "ubuntu-16.04.1-server-amd64.iso",
"memory": "512",
"metadata": "floppy/dummy_metadata.json",
"mirror": "http://old-releases.ubuntu.com/releases",
"mirror_directory": "16.04.1",
"name": "ubuntu-16.04",
"no_proxy": "{{env `no_proxy`}}",
"preseed_path": "ubuntu-16.04/preseed.cfg",
"template": "ubuntu-16.04-amd64",
"version": "2.1.TIMESTAMP"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment