Re: [packer] bento-master vmware build "Unable to connect to host" error

2016-09-21 Thread Rickard von Essen
This is because you have a version of VMware Player which is not supported
or not correctly setup to use with Packer.

Rerun with: PACKER_LOG=1 packer build template.json
And attach the full log.

On Sep 21, 2016 22:39, "Steven Langlois"  wrote:

> Using the bento-master templates I can successfully create VirtualBox VMs
> but I'm getting an error with VMWare.
>
> I installed:
>
> VMware-Player
> VMwareVIX
> QEMU
>
> I created a virtual machine with VMware-Player and installed VMware Tools
> but now I am stuck on this error. Any pointers are much appreciated.
>
> The output I am seeing:
>
> [newzr@newgw189 bento-master]$ packer build vmware-centos-7.2-x86_64.json
> vmware-iso output will be in this color.
>
> ==> vmware-iso: Downloading or copying ISO
> vmware-iso: Downloading or copying: http://mirrors.kernel.org/
> centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso
> ^[c==> vmware-iso: Creating virtual machine disk
> ==> vmware-iso: Building and writing VMX file
> ==> vmware-iso: Starting HTTP server on port 8945
> ==> vmware-iso: Starting virtual machine...
> ==> vmware-iso: Error starting VM: VMware error: Unable to connect to host.
> ==> vmware-iso: Error: The specified version was not found
> ==> vmware-iso: Waiting 4.993297601s to give VMware time to clean up...
> ==> vmware-iso: Deleting output directory...
> Build 'vmware-iso' errored: Error starting VM: VMware error: Unable to
> connect to host.
> Error: The specified version was not found
>
> ==> Some builds didn't complete successfully and had errors:
> --> vmware-iso: Error starting VM: VMware error: Unable to connect to host.
> Error: The specified version was not found
>
> ==> Builds finished but no artifacts were created.
>
> My vmware-centos.json which is just the bento-master with virtual-box,
> parallels, and vagrant removed:
>
> [newzr@newgw189 bento-master]$ cat vmware-centos-7.2-x86_64.json
> {
>   "builders": [
> {
>   "boot_command": [
> " text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user
> `ks_path`}}"
>   ],
>   "boot_wait": "10s",
>   "disk_size": "{{user `disk_size`}}",
>   "guest_os_type": "centos-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": "packer-{{user `template`}}-vmware",
>   "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
>   "ssh_password": "vagrant",
>   "ssh_port": 22,
>   "ssh_username": "vagrant",
>   "ssh_wait_timeout": "1s",
>   "tools_upload_flavor": "linux",
>   "type": "vmware-iso",
>   "vm_name": "{{ user `template` }}",
>   "vmx_data": {
> "cpuid.coresPerSocket": "1",
> "memsize": "{{ user `memory` }}",
> "numvcpus": "{{ user `cpus` }}"
>   }
> }
>   ],
>   "provisioners": [
> {
>   "destination": "/tmp/bento-metadata.json",
>   "source": "{{user `metadata`}}",
>   "type": "file"
> },
> {
>   "environment_vars": [
> "HOME_DIR=/home/vagrant",
> "http_proxy={{user `http_proxy`}}",
> "https_proxy={{user `https_proxy`}}",
> "no_proxy={{user `no_proxy`}}"
>   ],
>   "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux
> '{{.Path}}'",
>   "scripts": [
> "scripts/common/metadata.sh",
> "scripts/common/sshd.sh",
> "scripts/centos/networking.sh",
> "scripts/centos/vmware.sh",
> "scripts/centos/cleanup.sh",
> "scripts/common/minimize.sh"
>   ],
>   "type": "shell"
> }
>   ],
>   "variables": {
> "box_basename": "centos-7.2",
> "build_timestamp": "{{isotime \"20060102150405\"}}",
> "cpus": "1",
> "disk_size": "16384",
> "git_revision": "__unknown_git_revision__",
> "headless": "",
> "http_proxy": "{{env `http_proxy`}}",
> "https_proxy": "{{env `https_proxy`}}",
> "iso_checksum": "907e5755f824c5848b9c8efbb484f3
> cd945e93faa024bad6ba875226f9683b16",
> "iso_checksum_type": "sha256",
> "iso_name": "CentOS-7-x86_64-DVD-1511.iso",
> "ks_path": "centos-7.2/ks.cfg",
> "memory": "512",
> "metadata": "floppy/dummy_metadata.json",
> "mirror": "http://mirrors.kernel.org/centos;,
> "mirror_directory": "7.2.1511/isos/x86_64",
> "name": "centos-7.2",
> "no_proxy": "{{env `no_proxy`}}",
> "template": "centos-7.2-x86_64",
> "version": "2.1.TIMESTAMP"
>   }
> }
>
> --
> 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 

[packer] bento-master vmware build "Unable to connect to host" error

2016-09-21 Thread Steven Langlois
Using the bento-master templates I can successfully create VirtualBox VMs 
but I'm getting an error with VMWare.

I installed:

VMware-Player
VMwareVIX
QEMU

I created a virtual machine with VMware-Player and installed VMware Tools 
but now I am stuck on this error. Any pointers are much appreciated.

The output I am seeing:

[newzr@newgw189 bento-master]$ packer build vmware-centos-7.2-x86_64.json 
vmware-iso output will be in this color.

==> vmware-iso: Downloading or copying ISO
vmware-iso: Downloading or copying: 
http://mirrors.kernel.org/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-DVD-1511.iso
^[c==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Starting HTTP server on port 8945
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Error starting VM: VMware error: Unable to connect to host.
==> vmware-iso: Error: The specified version was not found
==> vmware-iso: Waiting 4.993297601s to give VMware time to clean up...
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: Error starting VM: VMware error: Unable to 
connect to host.
Error: The specified version was not found

==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Error starting VM: VMware error: Unable to connect to host.
Error: The specified version was not found

==> Builds finished but no artifacts were created.

My vmware-centos.json which is just the bento-master with virtual-box, 
parallels, and vagrant removed:

[newzr@newgw189 bento-master]$ cat vmware-centos-7.2-x86_64.json 
{
  "builders": [
{
  "boot_command": [
" text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user 
`ks_path`}}"
  ],
  "boot_wait": "10s",
  "disk_size": "{{user `disk_size`}}",
  "guest_os_type": "centos-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": "packer-{{user `template`}}-vmware",
  "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
  "ssh_password": "vagrant",
  "ssh_port": 22,
  "ssh_username": "vagrant",
  "ssh_wait_timeout": "1s",
  "tools_upload_flavor": "linux",
  "type": "vmware-iso",
  "vm_name": "{{ user `template` }}",
  "vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "{{ user `memory` }}",
"numvcpus": "{{ user `cpus` }}"
  }
}
  ],
  "provisioners": [
{
  "destination": "/tmp/bento-metadata.json",
  "source": "{{user `metadata`}}",
  "type": "file"
},
{
  "environment_vars": [
"HOME_DIR=/home/vagrant",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"no_proxy={{user `no_proxy`}}"
  ],
  "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E sh -eux 
'{{.Path}}'",
  "scripts": [
"scripts/common/metadata.sh",
"scripts/common/sshd.sh",
"scripts/centos/networking.sh",
"scripts/centos/vmware.sh",
"scripts/centos/cleanup.sh",
"scripts/common/minimize.sh"
  ],
  "type": "shell"
}
  ],
  "variables": {
"box_basename": "centos-7.2",
"build_timestamp": "{{isotime \"20060102150405\"}}",
"cpus": "1",
"disk_size": "16384",
"git_revision": "__unknown_git_revision__",
"headless": "",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"iso_checksum": 
"907e5755f824c5848b9c8efbb484f3cd945e93faa024bad6ba875226f9683b16",
"iso_checksum_type": "sha256",
"iso_name": "CentOS-7-x86_64-DVD-1511.iso",
"ks_path": "centos-7.2/ks.cfg",
"memory": "512",
"metadata": "floppy/dummy_metadata.json",
"mirror": "http://mirrors.kernel.org/centos;,
"mirror_directory": "7.2.1511/isos/x86_64",
"name": "centos-7.2",
"no_proxy": "{{env `no_proxy`}}",
"template": "centos-7.2-x86_64",
"version": "2.1.TIMESTAMP"
  }
}

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/dad09c60-3d67-494a-b84c-fc220a4c99f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[packer] Packer 0.10.2 released

2016-09-21 Thread Matthew Hooker
Hello,

Yesterday we released v0.10.2 which is a recompile of v0.10.1 on OS X 
Sierra, which should prevent Packer from crashing on Sierra.

Thanks,
--Matt Hooker
@mwhooker

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/cde5ab73-452c-43f3-bb7c-0670cae05909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [packer] Re: avoid windows %APPDATA% in packer post-process

2016-09-21 Thread Rickard von Essen
Guess something like this should work:
http://answers.microsoft.com/en-us/windows/forum/windows_7-files/change-location-of-temp-files-folder-to-another/19f13330-dde1-404c-aa27-a76c0b450818?auth=1

Go just ask the OS for the temp path.

On 21 September 2016 at 06:26, Michael Cook 
wrote:

> I'm guessing these lines in post-processor.go tell me it's not going to be
> possible...
>
> // Create a temporary directory for us to build the contents of the box in
> dir, err := ioutil.TempDir("", "packer")
>
> the (brief) go doc indicates TempDirs are set for the os.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/51eb9f9b-4c02-453b-adbd-388bae0dc990%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_r4N1Cb20O2tT-iKBqX0z5TXQQSNfMxpins_RBHHcSqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [packer] Re: 404 error with the creation of image on OpenStack

2016-09-21 Thread Rickard von Essen
Could you rerun with loggin enabled: PACKER_LOG=1 packer build template.json
and attach the log.

On 21 September 2016 at 11:08, Eleonora Ciceri 
wrote:

> Please notice that the same error has been reported here:
> https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
> but there does not seem to be a fix for the issue.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/42dcc048-2e2e-4400-89d7-6aebb4da55b2%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt_YtxPPDQPhRjRcMdSrfZ7pZywqKUy0PT71x%2Bs4y%2B9Wfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[packer] Re: 404 error with the creation of image on OpenStack

2016-09-21 Thread Eleonora Ciceri
Please notice that the same error has been reported here:
https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
but there does not seem to be a fix for the issue.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/42dcc048-2e2e-4400-89d7-6aebb4da55b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.