Skip to content

Instantly share code, notes, and snippets.

@ivandavidov
Created May 12, 2017 23:13
Show Gist options
  • Save ivandavidov/bbe81dbbdd2f715fabb8a4bfd1e71352 to your computer and use it in GitHub Desktop.
Save ivandavidov/bbe81dbbdd2f715fabb8a4bfd1e71352 to your computer and use it in GitHub Desktop.
ivan@ivan-pc:~/github/pivotal-cf/pcfdev$ packer build -debug -var 'distro=oss' -var 'source_ami=ami-485e2a5e' -var 'source_ova_path=/home/ivan/github/pivotal-cf/pcfdev/pcfdev-base/pcfdev-base.ova' /home/ivan/github/pivotal-cf/pcfdev/pcfdev.json
Debug mode enabled. Builds will not be parallelized.
amazon-ebs output will be in this color.
virtualbox-ovf output will be in this color.
==> amazon-ebs: Prevalidating AMI Name...
==> amazon-ebs: Error querying AMI: NoCredentialProviders: no valid providers in chain. Deprecated.
==> amazon-ebs: For verbose messaging see aws.Config.CredentialsChainVerboseErrors
Build 'amazon-ebs' errored: Error querying AMI: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
==> virtualbox-ovf: Pausing after run of step 'StepOutputDir'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepSuppressMessages'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepCreateFloppy'. Press enter to continue.
==> virtualbox-ovf: Starting HTTP server on port 8061
==> virtualbox-ovf: Pausing after run of step 'StepHTTPServer'. Press enter to continue.
==> virtualbox-ovf: Cannot find "Default Guest Additions ISO" in vboxmanage output (or it is empty)
==> virtualbox-ovf: Downloading or copying Guest additions checksums
virtualbox-ovf: Downloading or copying: http://download.virtualbox.org/virtualbox/5.0.40/SHA256SUMS
==> virtualbox-ovf: Downloading or copying Guest additions
virtualbox-ovf: Downloading or copying: http://download.virtualbox.org/virtualbox/5.0.40/VBoxGuestAdditions_5.0.40.iso
==> virtualbox-ovf: Pausing after run of step 'StepDownloadGuestAdditions'. Press enter to continue.
==> virtualbox-ovf: Downloading or copying OVF/OVA
virtualbox-ovf: Downloading or copying: file:///home/ivan/github/pivotal-cf/pcfdev/pcfdev-base/pcfdev-base.ova
==> virtualbox-ovf: Pausing after run of step 'StepDownload'. Press enter to continue.
==> virtualbox-ovf: Importing VM: /home/ivan/github/pivotal-cf/pcfdev/pcfdev-base/pcfdev-base.ova
==> virtualbox-ovf: Pausing after run of step 'StepImport'. Press enter to continue. ==> virtualbox-ovf: Pausing after run of step 'StepAttachGuestAdditions'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepConfigureVRDP'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepAttachFloppy'. Press enter to continue.
==> virtualbox-ovf: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4082)
==> virtualbox-ovf: Pausing after run of step 'StepForwardSSH'. Press enter to continue.
==> virtualbox-ovf: Executing custom VBoxManage commands...
virtualbox-ovf: Executing: modifyvm packer-oss-v0 --cpus 4
virtualbox-ovf: Executing: modifyvm packer-oss-v0 --memory 4096
virtualbox-ovf: Executing: modifyvm packer-oss-v0 --natdnshostresolver1 on
virtualbox-ovf: Executing: modifyvm packer-oss-v0 --nic1 nat
virtualbox-ovf: Executing: modifyvm packer-oss-v0 --paravirtprovider minimal
==> virtualbox-ovf: Pausing after run of step 'StepVBoxManage'. Press enter to continue.
==> virtualbox-ovf: Starting the virtual machine...
virtualbox-ovf: The VM will be run headless, without a GUI. If you want to
virtualbox-ovf: view the screen of the VM, connect via VRDP without a password to
virtualbox-ovf: rdp://127.0.0.1:5906
==> virtualbox-ovf: Waiting 10s for boot...
==> virtualbox-ovf: Pausing after run of step 'StepRun'. Press enter to continue.
==> virtualbox-ovf: Typing the boot command...
==> virtualbox-ovf: Pausing after run of step 'boot_command[0]: <esc><esc><enter><wait>'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[1]: /install/vmlinuz noapic '. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[2]: preseed/url=http://10.0.2.2:8061/preseed.cfg '. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[3]: debian-installer=en_US auto locale=en_US kbd-chooser/method=us '. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[4]: hostname=pcfdev '. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[5]: fb=false debconf/frontend=noninteractive '. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[6]: keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA '. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[7]: keyboard-configuration/variant=USA console-setup/ask_detect=false '. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'boot_command[8]: initrd=/install/initrd.gz -- <enter>'. Press enter to continue.
==> virtualbox-ovf: Pausing after run of step 'StepTypeBootCommand'. Press enter to continue.
==> virtualbox-ovf: Waiting for SSH to become available...
==> virtualbox-ovf: Connected to SSH!
==> virtualbox-ovf: Pausing after run of step 'StepConnect'. Press enter to continue.
==> virtualbox-ovf: Uploading VirtualBox version info (5.0.40)
==> virtualbox-ovf: Pausing after run of step 'StepUploadVersion'. Press enter to continue.
==> virtualbox-ovf: Uploading VirtualBox guest additions ISO...
==> virtualbox-ovf: Pausing after run of step 'StepUploadGuestAdditions'. Press enter to continue.
==> virtualbox-ovf: Uploading assets/keys/key.pem => /tmp/key.pem
==> virtualbox-ovf: Uploading manifest.yml => /tmp/manifest.yml
==> virtualbox-ovf: Provisioning with shell script: /tmp/packer-shell288964949
==> virtualbox-ovf: Provisioning with shell script: /tmp/packer-shell734624147
virtualbox-ovf: Reading package lists...
virtualbox-ovf: Building dependency tree...
virtualbox-ovf: Reading state information...
virtualbox-ovf: The following extra packages will be installed:
virtualbox-ovf: dnsmasq-base libmnl0 libnetfilter-conntrack3
virtualbox-ovf: The following NEW packages will be installed:
virtualbox-ovf: dnsmasq dnsmasq-base libmnl0 libnetfilter-conntrack3
virtualbox-ovf: 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
virtualbox-ovf: Need to get 330 kB of archives.
virtualbox-ovf: After this operation, 980 kB of additional disk space will be used.
virtualbox-ovf: Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libmnl0 amd64 1.0.3-3ubuntu1 [11.4 kB]
virtualbox-ovf: Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main libnetfilter-conntrack3 amd64 1.0.4-1 [45.9 kB]
virtualbox-ovf: Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main dnsmasq-base amd64 2.68-1ubuntu0.1 [257 kB]
virtualbox-ovf: Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe dnsmasq all 2.68-1ubuntu0.1 [14.9 kB]
virtualbox-ovf: debconf: unable to initialize frontend: Dialog
virtualbox-ovf: debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
virtualbox-ovf: debconf: falling back to frontend: Readline
virtualbox-ovf: debconf: unable to initialize frontend: Readline
virtualbox-ovf: debconf: (This frontend requires a controlling tty.)
virtualbox-ovf: debconf: falling back to frontend: Teletype
virtualbox-ovf: dpkg-preconfigure: unable to re-open stdin:
virtualbox-ovf: Fetched 330 kB in 2s (147 kB/s)
virtualbox-ovf: Selecting previously unselected package libmnl0:amd64.
virtualbox-ovf: (Reading database ... 124565 files and directories currently installed.)
virtualbox-ovf: Preparing to unpack .../libmnl0_1.0.3-3ubuntu1_amd64.deb ...
virtualbox-ovf: Unpacking libmnl0:amd64 (1.0.3-3ubuntu1) ...
virtualbox-ovf: Selecting previously unselected package libnetfilter-conntrack3:amd64.
virtualbox-ovf: Preparing to unpack .../libnetfilter-conntrack3_1.0.4-1_amd64.deb ...
virtualbox-ovf: Unpacking libnetfilter-conntrack3:amd64 (1.0.4-1) ...
virtualbox-ovf: Selecting previously unselected package dnsmasq-base.
virtualbox-ovf: Preparing to unpack .../dnsmasq-base_2.68-1ubuntu0.1_amd64.deb ...
virtualbox-ovf: Unpacking dnsmasq-base (2.68-1ubuntu0.1) ...
virtualbox-ovf: Selecting previously unselected package dnsmasq.
virtualbox-ovf: Preparing to unpack .../dnsmasq_2.68-1ubuntu0.1_all.deb ...
virtualbox-ovf: Unpacking dnsmasq (2.68-1ubuntu0.1) ...
virtualbox-ovf: Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
virtualbox-ovf: Processing triggers for ureadahead (0.100.0-16) ...
virtualbox-ovf: ureadahead will be reprofiled on next reboot
virtualbox-ovf: Setting up libmnl0:amd64 (1.0.3-3ubuntu1) ...
virtualbox-ovf: Setting up libnetfilter-conntrack3:amd64 (1.0.4-1) ...
virtualbox-ovf: Setting up dnsmasq-base (2.68-1ubuntu0.1) ...
virtualbox-ovf: Setting up dnsmasq (2.68-1ubuntu0.1) ...
virtualbox-ovf: * Starting DNS forwarder and DHCP server dnsmasq
virtualbox-ovf: ...done.
virtualbox-ovf: Processing triggers for libc-bin (2.19-0ubuntu6.11) ...
virtualbox-ovf: Processing triggers for ureadahead (0.100.0-16) ...
virtualbox-ovf: * Stopping DNS forwarder and DHCP server dnsmasq
virtualbox-ovf: ...done.
virtualbox-ovf: Removing any system startup links for /etc/init.d/dnsmasq ...
virtualbox-ovf: /etc/rc0.d/K85dnsmasq
virtualbox-ovf: /etc/rc1.d/K85dnsmasq
virtualbox-ovf: /etc/rc2.d/S15dnsmasq
virtualbox-ovf: /etc/rc3.d/S15dnsmasq
virtualbox-ovf: /etc/rc4.d/S15dnsmasq
virtualbox-ovf: /etc/rc5.d/S15dnsmasq
virtualbox-ovf: /etc/rc6.d/K85dnsmasq
virtualbox-ovf: Uploading /opt/bosh-provisioner/assets
virtualbox-ovf: Uploading /opt/bosh-provisioner/config.json
virtualbox-ovf: chmod: cannot access ‘/opt/bosh-provisioner/assets/bosh-provisioner’: No such file or directory
==> virtualbox-ovf: Pausing before cleanup of step 'StepUploadGuestAdditions'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepUploadVersion'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepConnect'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepTypeBootCommand'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepRun'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepVBoxManage'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepForwardSSH'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepAttachFloppy'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepConfigureVRDP'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepAttachGuestAdditions'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepImport'. Press enter to continue.
==> virtualbox-ovf: Unregistering and deleting imported VM...
==> virtualbox-ovf: Pausing before cleanup of step 'StepDownload'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepDownloadGuestAdditions'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepHTTPServer'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepCreateFloppy'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepSuppressMessages'. Press enter to continue.
==> virtualbox-ovf: Pausing before cleanup of step 'StepOutputDir'. Press enter to continue.
==> virtualbox-ovf: Deleting output directory...
Build 'virtualbox-ovf' errored: Setting provisioner perms: Non-zero exit status: 1
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error querying AMI: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
--> virtualbox-ovf: Setting provisioner perms: Non-zero exit status: 1
==> Builds finished but no artifacts were created.
ivan@ivan-pc:~/github/pivotal-cf/pcfdev$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment