Re: [packer] Question about Packer variables passed via JSON

2017-05-17 Thread Rickard von Essen
And you can use process substitution: packer build -var-fil=<(var_fn) template.json See http://www.tldp.org/LDP/abs/html/process-sub.html / Rickard On May 17, 2017 10:53 PM, "Matthew Hooker" wrote: > Hi Andrew, > > Glad to hear our tools are working out for you. > > We

Re: [packer] Build gets stuck with Docker builder, Salt Privisioner after downloading salt bootstrap script

2017-05-11 Thread Rickard von Essen
You should add: "disable_sudo": true, to salt-masterless and it will be alright, see https://www.packer.io/docs/provisioners/salt-masterless.html#disable_sudo // Rickard On 11 May 2017 at 21:45, Adam wrote: > Just trying to test out Packer builds. My environment: > > Packer

Re: [packer] QEMU builder from qcow2

2017-05-08 Thread Rickard von Essen
Yes it is, see https://www.packer.io/docs/builders/qemu.html#iso_url On May 8, 2017 9:32 PM, "esio" wrote: > Hello. > > Is it possible to use QEMU builder but without install OS from scrath but > use prepared qcow2 or raw image instead? Something like in VirtualBox >

Re: [packer] SSH Error on Ubuntu

2017-05-03 Thread Rickard von Essen
Could you add some more context, full template, scripts and full output etc. On May 4, 2017 2:29 AM, "Farye Nwede" wrote: > I'm not sure if this is the best place for this. I'm encountering this > error. My host system is Ubuntu 14.04. The system that I'm trying to build >

Re: [packer] Re: Error generating elevated runner:

2017-05-01 Thread Rickard von Essen
Without digging deeper into this it seems like a bug. Can you create a minimal example to reproduce and open an issue on github. / Rickard On May 1, 2017 12:57 PM, "Kristopher Landon" wrote: > I should add this is windows 2012 R2 with latest patches and Packer V 1.0.0 > >

Re: [packer] Re: vmware packer build inside docker with http_directory setting

2017-04-28 Thread Rickard von Essen
Ram, Dan is building on a remote vmware ESXi only running packer inside a container, not vmware. On Apr 27, 2017 23:38, "Ram Maram" wrote: > Hi Dan, > > We are trying to build vmware packer images inside container, we have > created a docker image with vmware workstation,

Re: [packer] Need help implementing the windows-update plugin

2017-04-28 Thread Rickard von Essen
art/provisioner.go#L138). > > -- RGL > > On Thursday, April 27, 2017 at 4:26:26 PM UTC+1, Rickard von Essen wrote: >> >> This is a concurrency error in your code. >> >> Somewhere in your code you write to the cancel channel after you have >> closed it. Try add

Re: [packer] vmware packer build inside docker container

2017-04-27 Thread Rickard von Essen
Most likely you can't run vmware workstation in a docker container. Try and run your container and enter it and create a VM manually. Does that work? On Apr 27, 2017 20:54, "Ram Maram" wrote: > Hi, > > > I'm trying to build vmware packer images inside docker container

Re: [packer] Using docker-push post processort with Gitlab Container Registry

2017-04-27 Thread Rickard von Essen
It's just a bundled default docker registry ( https://github.com/docker/distribution/blob/master/README.md) so it should be fine. On Apr 27, 2017 18:14, "'Mitchell Cooper' via Packer" < packer-tool@googlegroups.com> wrote: > Does anyone know if packer supports using the docker-push post

Re: [packer] Need help implementing the windows-update plugin

2017-04-27 Thread Rickard von Essen
This is a concurrency error in your code. Somewhere in your code you write to the cancel channel after you have closed it. Try adding a printout before you close and write to it. // Rickard On 27 April 2017 at 13:34, Rui Lopes wrote: > That's what I did. I just

Re: [packer] Remote Chroot Builder

2017-04-25 Thread Rickard von Essen
You need to run amazon-chroot from an AWS EC2 instance, the only way to run that from travis is to issue a ssh command from travis that runs the build on an instance you have running. (I'm not sure you can ssh out from Travis.) // Rickard On 24 April 2017 at 19:26, Stephen

Re: [packer] Packer to create additional filesystems for CIS security.

2017-04-25 Thread Rickard von Essen
==> amazon-ebs: Cleaning up any extra volumes... > ==> amazon-ebs: No volumes to clean up, skipping > ==> amazon-ebs: Deleting temporary keypair... > Build 'amazon-ebs' errored: Script exited with non-zero exit status: 1 > > ==> Some builds didn't complete successfully a

Re: [packer] Packer to create additional filesystems for CIS security.

2017-04-25 Thread Rickard von Essen
Haven't done anything similar, but a few comments: This looks wrong: "sudo mkfs.ext4 /dev/xvdf", "sudo mv /home/ec2-user /home/ec2-user.save", "sudo mkdir -p /home", "sudo shopt -s dotglob; cp -R /home/ec2-user.save/ /home/ec2-user/",

Re: [packer] IP address of AWS instance to use for provisioning

2017-04-22 Thread Rickard von Essen
; has some promise! > > Thanks, > rg > > On Friday, April 21, 2017 at 3:53:53 PM UTC-4, Rickard von Essen wrote: >> >> Run a shell provisioner that saves the IP in a file. Use a file >> provisioner to download it and read it in the shell-local script. >> >>

Re: [packer] multiple disks for Google Compute images

2017-04-15 Thread Rickard von Essen
Hi, The GCE API for creating an Image[1] only allows one disk when creating an Image. The API for launching an Instance[2] allows a list of disks but since only one can be used in the resulting Image I we haven't implemented support for that. And no one have requested support for it. // Rickard

Re: [packer] how to expand root volume on EC2 instance

2017-04-12 Thread Rickard von Essen
I think you shouldn't use launch_block_device_mappings that will replace the (source) ami snapshot with a 60 GB empty ebs volume. On Apr 11, 2017 22:16, "Shalin Patel" wrote: > Hi > I am trying to create new AMI based off official coreos AMI. I am trying > to expand

Re: [packer] builder image to json file

2017-04-06 Thread Rickard von Essen
No On Apr 6, 2017 7:57 AM, "JAI RAJ" wrote: using packer we can process a json file and generate appropriate templates like iso,ami files. Is it possible to generate json file from given iso or ami files.? -- This mailing list is governed under the HashiCorp Community

Re: [packer] Packer v1.0.0 released

2017-04-05 Thread Rickard von Essen
Awesome! Four years after Mitchells initial commit. Thanks to lots of hard work from HashiCorp and the community. // Rickard von Essen On 4 April 2017 at 23:22, Vasiliy Tolstov <v.tols...@selfip.ru> wrote: > 2017-04-04 23:55 GMT+03:00 Matthew Hooker <mwhoo...@gmail.com&

Re: [packer] Re: Script exited with non-zero exit status: 8

2017-04-04 Thread Rickard von Essen
What's the content of install-hdfs.sh ? The exit code is simply from that script. On 4 April 2017 at 16:55, Laeeq Ahmed wrote: > Complete log here. > > https://pastebin.com/v6JBh9R6 > > > On Tuesday, 4 April 2017 16:50:27 UTC+2, Laeeq Ahmed wrote: >> >> Hi, >> >> What can be

Re: [packer] Find out if run through packer in cloudinit script

2017-04-02 Thread Rickard von Essen
;> Thanks, I didn't know about per-instance. But still is there a way to >> make the script not run at all when launched by packer? >> >> Cheers >> >> On 29 March 2017 at 14:33, Rickard von Essen <rickard.von.es...@gmail.com >> > wrote: >> >&

Re: [packer] Can't Run Packer 0.12.3 on RHEL/CentOS 7

2017-03-30 Thread Rickard von Essen
Check your path, at least Fedora includes a tool (crackerlib) which includes a binary also called packer. / Rickard On Mar 31, 2017 05:36, "Saed Alavinia" wrote: > Hello, > > I am trying to run packer_0.12.3_linux_amd64 on my RHEL for Developers > Image. But when I unzip

Re: [packer] What is the use of ```preemptible``` option in packer provisioner

2017-03-30 Thread Rickard von Essen
Preemptible is just this option in GCE https://cloud.google.com/compute/docs/instances/preemptible. It allow you VM to be stoped if someone else needs the resources. This gives a lover price per minute but risk that your VM is interrupted. If you want to launch a VM of the newly built image you

Re: [packer] packer 1.0.0-rc2 released

2017-03-30 Thread Rickard von Essen
1.0 has already branched off https://github.com/mitchellh/packer/tree/v1.0 So masters next build is 1.1 // Rickard On 30 March 2017 at 07:38, Matt Black wrote: > Hi Matt, > > How comes the new version is reporting 1.1.0? I thought I'd messed > something up building a testing

Re: [packer] how to build images for docker and amazon-ebs from the same script, or "to sudo or not to sudo?"

2017-03-29 Thread Rickard von Essen
Just install sudo in the docker image in a shell provisioner with "only": [ "docker" ]. On Mar 29, 2017 6:22 PM, "Kevin Pauli" wrote: > Newbie here, trying to figure out how to build both a docker image and an > amazon-ebs ami from the same script. Here I have stripped it

Re: [packer] Find out if run through packer in cloudinit script

2017-03-29 Thread Rickard von Essen
? > > Cheers > > On 29 March 2017 at 14:33, Rickard von Essen <rickard.von.es...@gmail.com> > wrote: > >> Just put it in per-instance, then cloud-init will see to that it runes >> once per instance. >> >> https://cloudinit.readthedocs.io/en/latest/top

Re: [packer] Find out if run through packer in cloudinit script

2017-03-29 Thread Rickard von Essen
Just put it in per-instance, then cloud-init will see to that it runes once per instance. https://cloudinit.readthedocs.io/en/latest/topics/modules.html#scripts-per-instance On 29 March 2017 at 13:55, Michael Seiwald wrote: > Hello, > > I'm building an AMI that

Re: [packer] Re: Packer + OpenStack-based system - not able to authenticate

2017-03-28 Thread Rickard von Essen
The bottom note on https://www.packer.io/docs/builders/openstack.html suggest that OS_TENANT_NAME should be mcafee-siem and not soc. On 28 March 2017 at 21:28, Rickard von Essen <rickard.von.es...@gmail.com> wrote: > That is interesting. > > I assume that this is a pr

Re: [packer] Re: Packer + OpenStack-based system - not able to authenticate

2017-03-28 Thread Rickard von Essen
setting. > > export OS_PROJECT_NAME=mcafee-siem > export OS_USER_DOMAIN_NAME=soc > export OS_PROJECT_DOMAIN_NAME=soc > export OS_TENANT_NAME=soc > > But in Packer I cannot change project name, in the docummentation is > written that PROJECT_NAME is same as TENANT_NAME or similar.

Re: [packer] openstack builder shutdown command?

2017-03-27 Thread Rickard von Essen
there another way for OpenStack builder and CentOS images ? > > El lunes, 27 de marzo de 2017, 15:31:38 (UTC+2), Lorena Lobato escribió: >> >> I will give a try and let you know, thanks >> >> El viernes, 24 de marzo de 2017, 21:45:16 (UTC+1), Rickard von

Re: [packer] winrm communicator in GCE

2017-03-25 Thread Rickard von Essen
Actually after some googling I think it kind of works but then we should have an example in the docs. On 25 March 2017 at 17:30, Sachin <sachee...@gmail.com> wrote: > > Thank you Rickard, > > I will report bug. > > On Saturday, March 25, 2017 at 12:10:56 PM UTC-4,

Re: [packer] Packer cannot access Windows using WinRM when creating image on Google Compute

2017-03-25 Thread Rickard von Essen
Did you get this to work for you? // Rickard On 22 February 2017 at 16:32, Rickard von Essen <rickard.von.es...@gmail.com > wrote: > I think you might be missing to allow the firewall traffic on port: > tcp/5986 from anywhere. By default it allows SSH and RDP but not Win

Re: [packer] winrm communicator in GCE

2017-03-25 Thread Rickard von Essen
7:55:19 packer.exe: 2017/03/25 07:55:19 [ERROR] connection >>> error: http response error: 401 - invalid content type >>> 2017/03/25 07:55:19 packer.exe: 2017/03/25 07:55:19 [ERROR] WinRM >>> connection err: http response error: 401 - invalid content type >>> >

Re: [packer] winrm communicator in GCE

2017-03-25 Thread Rickard von Essen
By default the GCE firewall doen't allow WinRM connections (from the outside). Have you opened up port 5986 in the firewall? If that doesn't help can you run PACKER_LOG=1 packer build template.json and attach/gist the output? // Rickard On 25 March 2017 at 12:02, Sachin

Re: [packer] openstack builder shutdown command?

2017-03-24 Thread Rickard von Essen
bato wrote: > > Same case but with Linux images. When I reboot the machine in the > provisioner stops without any error and skipping the post commands. > > Is there anyway to avoid this? Need to reboot the machine during > provisioning time to make effective some puppet chang

Re: [packer] openstack builder shutdown command?

2017-03-24 Thread Rickard von Essen
e to make effective some puppet changes. >> >> >> El viernes, 24 de marzo de 2017, 7:39:54 (UTC+1), Rickard von Essen >> escribió: >>> >>> Shutdown is initiated by an api towards openstack. >>> >>> On Mar 23, 2017 23:46, "Blake Garner&

Re: [packer] What is the best way to determine the boot commands for Packer?

2017-03-24 Thread Rickard von Essen
Check how other do it: https://github.com/chef/bento https://github.com/boxcutter And the documentation: https://wiki.debian.org/DebianInstaller/Preseed https://www.centos.org/docs/5/html/Installation_Guide-en-US/ch-kickstart2.html On 24 March 2017 at 11:43, Shiraaz Moollatjie

Re: [packer] Re: Packer + OpenStack-based system - not able to authenticate

2017-03-24 Thread Rickard von Essen
It's hard to give any further debugging advice unless you can capture the traffic or access the logs on keystone and see why your auth is denied. On 23 March 2017 at 11:07, wrote: > http://pastebin.com/A2Wx9whX Here is the full log. > > Dne čtvrtek 23. března 2017

Re: [packer] Windows provisioner fails after 2 hours when running powershell script

2017-03-24 Thread Rickard von Essen
t" > } > } > > > If i run this without elevated user/pass, the loop runs fine for over 2 > hours. Googling what this option does show it is creating a windows > scheduled task and running as an elevated user. Is packer setting a limit > for how long these s

Re: [packer] Re: EBS builder - ssh only authenticating with 1 key

2017-03-23 Thread Rickard von Essen
You couldn't connect to the instance, but without more details it's hard to say why. Could you provide your template? On Mar 23, 2017 20:11, wrote: > I am getting below error. Can you please suggest me what to do to fox this > issue. > > amazon-ebs output will be in this

Re: [packer] Packer + OpenStack-based system - not able to authenticate

2017-03-23 Thread Rickard von Essen
Looks good to me. Can you run with PACKER_LOG=1 packer build template.json and pastbin the output. On 23 March 2017 at 10:15, wrote: > Hello, I am trying to automate some deployment to an Openstack-based > cloud. It's based on Openstack, but there might be some minor

Re: [packer] Windows provisioner fails after 2 hours when running powershell script

2017-03-22 Thread Rickard von Essen
Script exited with non-zero exit status: 259. This means that your script returned a non 0 exit code (259). Without knowing much about Windows this seams to be a restriction set there. Googling gives alot of similar issues for different softwares written in different languages. E.g.

Re: [packer] Re: packer fails after upgrade to ESX 6.5

2017-03-20 Thread Rickard von Essen
Upgrade packer to 0.12.3 and report back again. On Mar 20, 2017 6:38 PM, "Steven Langlois" wrote: > Sorry, should have mentioned that I am running packer 0.10.2. > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - >

Re: [packer] The easiest way to build a windows version of Packer for testing

2017-03-20 Thread Rickard von Essen
atform... > find: `./pkg/linux_amd64': No such file or directory > > ==> Results: > total 0 > > Which I think means it failed to copy the binary in the end? There's > nothing in the $GOPATH/bin folder and nothing in the packer/bin folder > either > > > On Mon

Re: [packer] The easiest way to build a windows version of Packer for testing

2017-03-20 Thread Rickard von Essen
; Which is progress! So now I need to figure out why govendor isn't a > command. > > On Monday, 20 March 2017 22:03:03 UTC+13, Rickard von Essen wrote: >> >> I tested my docker command and it's not completely accurate. This works >> on my Mac: >> >> docker run -v

Re: [packer] The easiest way to build a windows version of Packer for testing

2017-03-20 Thread Rickard von Essen
sn't seem to > produce a package either. > > > On Monday, 20 March 2017 21:36:21 UTC+13, Rickard von Essen wrote: >> >> It should work to build on Windows, unfortunately I can't really help >> with that. We build each commit in appveyor and that is green so I expect >>

Re: [packer] The easiest way to build a windows version of Packer for testing

2017-03-20 Thread Rickard von Essen
to avoid having to create a Linux machine to build > Packer on, but if that's the only way then I guess I'll have to make one. > > On Sun, Mar 19, 2017 at 9:48 PM, Rickard von Essen < > rickard.von.es...@gmail.com> wrote: > >> If you have Docker for Windows the

Re: [packer] The easiest way to build a windows version of Packer for testing

2017-03-19 Thread Rickard von Essen
If you have Docker for Windows the simplest way might be cross compile in a container. Go to the directory where you have packer checked out and run something like: docker run -v %PWD%:/usr/src/packer -w /usr/src/packer golang:1.8 bash -c XC_ARCH=amd64 XC_OS=windows make dev This should give

Re: [packer] Re: Docker builder: Ansible "copy" fails: Unable to find src in expected paths

2017-03-07 Thread Rickard von Essen
Could you provide the values for your user vars and the output when you run ansible with -. On Mar 7, 2017 10:53 PM, "Alvaro Miranda Aguilera" wrote: > I see > > thanks for the explanation. missed that. > > > > On Tue, Mar 7, 2017 at 10:49 PM, Chris Stevens

Re: [packer] Packer gives Openstack error loading extensions

2017-02-28 Thread Rickard von Essen
controller is not a known dns name in the dns server you are using. Ask your OpenStack admin if you need to use a specific dns server or if there is a misconfiguration on their end. On Feb 28, 2017 16:07, "balubhai555" wrote: > Hello Team, > > Currently, I am new to

Re: [packer] Packer can't find user when run from within container

2017-02-27 Thread Rickard von Essen
hats a different issue. > > Thanks! > > On Monday, February 27, 2017 at 4:05:08 PM UTC-5, Rickard von Essen wrote: >> >> Could you provide some more context here? Give us a example packer >> template (.json) and what do you mean with a container ? a do

Re: [packer] Packer can't find user when run from within container

2017-02-27 Thread Rickard von Essen
Could you provide some more context here? Give us a example packer template (.json) and what do you mean with a container ? a docker container, if so can you specify the command you started it with. It might just be that env var USER is not set. If I run: docker run -it ubuntu:trusty bash USER

Re: [packer] packer 10.2 aws builder ansible remote provisioner

2017-02-27 Thread Rickard von Essen
Try dropping these two lines: "user": "ec2-user", "sftp_command": "/usr/libexec/openssh/sftp-server -e" On 27 February 2017 at 14:45, Tony Mills wrote: > Hi All, > > I am trying to get packer running ansible and am wondering if there is a > fix for the

Re: [packer] roles_path or ansible.cfg path in ansible provisioner

2017-02-27 Thread Rickard von Essen
Use: "ansible_env_vars": [ "ANSIBLE_ROLES_PATH=/some_custom_path/:$ANSIBLE_ROLES_PATH" ] See https://www.packer.io/docs/provisioners/ansible.html#ansible_env_vars On 27 February 2017 at 12:29, Yasin Amadmia < yasin.amad...@travisperkins.co.uk> wrote: > Hi, > > Is it possible to provide a

Re: [packer] Chained remote vmware builds

2017-02-26 Thread Rickard von Essen
Hi Kevin, I think this is definitely a missing feature that we would like to have in Packer (builder/vmware-vmx with support for remote ESXi). Just 3 days ago the was a PR opened which adds this support, https://github.com/mitchellh/packer/pull/4591 . It might not make it to the 1.0 release so I

Re: [packer] digitalocean: Error creating temporary SSH key on packer v.0.12.2 Mac OS X 10.12.3

2017-02-25 Thread Rickard von Essen
Also if you set DIGITALOCEAN_API_TOKEN packer will use that. I.e. export DIGITALOCEAN_API_TOKEN=$DO_API_TOKEN If that doesn't work it would be good I'd you attach a log from PACKER_LOG=1 packer build template.json, just redact all sensitive information. On Feb 25, 2017 5:27 PM, "Alvaro Miranda

Re: [packer] Re: Integration with artifactory

2017-02-24 Thread Rickard von Essen
IMHO it's best to wrapp packer for these kind of things. Use the manifests post-processor to write out information about the resulting artifact, if needed. On Feb 24, 2017 4:50 PM, "Basil Peace" wrote: > On Wednesday, August 10, 2016 at 8:15:53 PM UTC+3, Yuriy Medvedev

Re: [packer] EBS builder - ssh only authenticating with 1 key

2017-02-23 Thread Rickard von Essen
day, February 22, 2017 at 8:25:48 PM UTC, Rickard von Essen wrote: >> >> When you set ssh_keypair_name to server_key you also have to update >> ssh_private_key_file. But from the logs it looks like you haven't done that. >> >> On 22 February 2017 at 20:11, notmyrealna

Re: [packer] EBS builder - ssh only authenticating with 1 key

2017-02-22 Thread Rickard von Essen
When you set ssh_keypair_name to server_key you also have to update ssh_private_key_file. But from the logs it looks like you haven't done that. On 22 February 2017 at 20:11, notmyrealname wrote: > Packer v0.12.2 > Mac OS X 10.11.6 > > As suggested, I've moved this

Re: [packer] Packer cannot access Windows using WinRM when creating image on Google Compute

2017-02-22 Thread Rickard von Essen
I think you might be missing to allow the firewall traffic on port: tcp/5986 from anywhere. By default it allows SSH and RDP but not WinRM. Except for that everything looks fine with me. The user should be created and the password is retrieved over the API in the same way as the gcloud tool do.

Re: [packer] Packer integration with Hashi-UI

2017-02-15 Thread Rickard von Essen
There is no api, and I don't expect there to be one since this is more of a build tool than Nomad, Consul, Vault, etc. Also see https://github.com/mitchellh/packer/issues/1840 But it should be fairly easy to run packer by OS exec. I think the difficult part will be how to handle config. I think

Re: [packer] Error getting network with vmware-iso+esx

2017-02-13 Thread Rickard von Essen
It should work even with static IP's. Worst case you need to set ssh_host. On Feb 13, 2017 11:13, "Shyam J" wrote: Thanks a lot. It worked After that I see it is looking for Dhcp, but I don't have a Dhcp in that network and configured in kick-start static IP details. Is

Re: [packer] Error getting network with vmware-iso+esx

2017-02-13 Thread Rickard von Essen
Packer doesn't work with dvs (distributed virtual switches), I recommend unsetting those in the vmx_data section and add "ethernet0.networkName": "VM Network" or whatever your ESXi network is called. / Rickard On Feb 13, 2017 7:50 AM, "Shyam J" wrote: > , > > I am trying to

Re: [packer] Step "StepUploadVersion" failed, aborting...

2017-02-12 Thread Rickard von Essen
Rerun with PACKER_LOG=1 and post the out here. On Feb 13, 2017 00:40, "Dan Linder" wrote: > I am trying to build a RHEL 6.8 server VM from ISO, but it fails on the > "StepUploadVersion": > > *==> virtualbox-iso: Waiting for SSH to become available...* > *==> virtualbox-iso:

Re: [packer] variable order of precedence

2017-02-09 Thread Rickard von Essen
It's not possible to interpolate values in user variables. On Feb 9, 2017 5:52 PM, "Kevin Moser" wrote: > Is there a way to have a variable reference another variable, but still > allow it to be overriden in a var file or var on the cmd line? > > Example: > > { >

Re: [packer] Error installing packer

2017-02-07 Thread Rickard von Essen
What's the output of: which -a packer ? On Feb 7, 2017 7:07 PM, "Srinivas Reddy" wrote: > I installed packer and set the path in ./bashrc_profile > PATH=$PATH:/usr/local > > under /usr/local/ > > libexec *packer* sbin share src > > I have the packer installed . When

Re: [packer] Builder [azure-arm] - with custom built image - Linux

2017-02-06 Thread Rickard von Essen
Disclaimer: I've never used azure-arm, but if you don't get any answer here I think it's valid to open a Github issue and request a "feature" or a clarification in the docs about this. // Rickard von Essen On 6 February 2017 at 13:57, Johan Elmerfjord <johanel...@gmail.com> wrot

Re: [packer] Searching for a comprehensive resource on Packer templates

2017-02-03 Thread Rickard von Essen
The docs contain all information, most template variables and functions are local per configuration option and are described under each builder/provisioner/etc. If you are just looking for some great examples of how to build vagrant boxes see https://github.com/chef/bento If you are looking for

Re: [packer] Re: Timeout value for provisioners?

2017-02-02 Thread Rickard von Essen
Use the -on-error=ask argument to packer build to pause the build when a provisioner fails. On Feb 2, 2017 23:37, "John C" wrote: > I'm looking for a way to timeout a specific provisioner step, and if the > step fails, either move on and continue the build, or at least

Re: [packer] Centos unable to get kickstarter to work

2017-01-19 Thread Rickard von Essen
No, sshd is installed and enabled by default. The best way to troubleshoot this is by setting an incredible high ssh_timeout, say 12h and use headless false. After that start packer and use the VirtualBox ui to access the console where you can login as root. Now you can troubleshoot the network

Re: [packer] Packer ssh server timeout

2017-01-19 Thread Rickard von Essen
It's not very useful when everything is a user variable. Can supply the values of those, say which distribution the source ami is and run with `PACKER_LOG=1 packer build template.json` and attach the full log. On Jan 19, 2017 6:29 PM, wrote: > Hi all, > Trying to use

Re: [packer] Centos unable to get kickstarter to work

2017-01-19 Thread Rickard von Essen
Please supply _full_ config. On 19 January 2017 at 12:23, Scott Bailey wrote: > Hey, > > Unable to get : "linux ks=http://{{.HTTPIP}}:{{.HTTPPort}}/kickstart.cfg< > enter>" > > http://imgur.com/a/TIXSm > > > > To load. > > { > "builders": [{ > "type":

Re: [packer] Most basic docker builder won't work

2017-01-10 Thread Rickard von Essen
He is using docker for Mac which runs in a VM but requires no env vars and uses a socket just as if it where running locally on a Linux machine. On Jan 10, 2017 20:10, "Alvaro Miranda Aguilera" wrote: > packer is running that command. > > Checking the initial log, it seems

Re: [packer] SSH connection failing to newly created packer instance for GCE

2017-01-10 Thread Rickard von Essen
Specify "ssh_username": "centos" and use 0.12.1 On Jan 10, 2017 08:49, "Alvaro Miranda Aguilera" wrote: > Hello > > Are you on latest packer version? It seems you are not. > > From where are you running packer ?? > > https://www.packer.io/docs/builders/googlecompute.html >

Re: [packer] Attempting to create an ssh VPN tunnel packer just hangs

2017-01-09 Thread Rickard von Essen
The shell which is spawned when packer logs in and runs your ssh tunnel commands will wait for it's childrens before exit. You need to run the tunnel commands in screen/tmux/etc and detach them. For more info see http://stackoverflow.com/q/954302/226174 On Jan 9, 2017 2:56 PM, "Cale Cale"

Re: [packer] Google compute error: ssh_username must be specified

2017-01-04 Thread Rickard von Essen
ssh_username doesn't have a default value anymore. It must be specified. Ubuntu doesn't allow ssh with root. Since this image has GCE tools it will create the user you give and give it sudo rights. So just add ssh_username: ubuntu should work. On Jan 4, 2017 8:50 AM, "Alvaro Miranda Aguilera"

Re: [packer] Call other shell scripts from with a script

2017-01-01 Thread Rickard von Essen
You should use the file privisioner to upload laa.sh and then reference the absolute path. Scripts running in the shell provisioner are uploaded to remote_path/remote_file, see the docs. On Jan 1, 2017 2:08 AM, "Edward Overton" wrote: > I have the code: > "scripts":

Re: [packer] Error: build vmware-iso lstat no such file or directory

2016-12-28 Thread Rickard von Essen
This directory doesn't exist: /vmfs/volumes/datastore1/basic On Dec 28, 2016 19:29, "Cale Cale" wrote: What causes this error?? Do I need to create a dir called basic if my json file is called basic.json ? I am trying to run this remotely to an ESXi box Also at 09:50:10 it

Re: [packer] Re: VMWare Error

2016-12-26 Thread Rickard von Essen
ember 26, 2016 at 2:36:42 PM UTC+1, Rickard von Essen wrote: > Rerun with PACKER_LOG=1 packer build -on-error=ask windows_7.json > > And attach the output. Also before the cleanup check the VMware log file. > > On 26 December 2016 at 14:32, sanan <sanan...@gmail.com> wro

Re: [packer] Re: VMWare Error

2016-12-26 Thread Rickard von Essen
Rerun with PACKER_LOG=1 packer build -on-error=ask windows_7.json And attach the output. Also before the cleanup check the VMware log file. On 26 December 2016 at 14:32, sanan wrote: > Hi Vjayata, > > Were you able to resolve this issue? > I am also facing same problem. I

Re: [packer] aws source_ami_filter and using the found ami-id in the rest of the configuration

2016-12-22 Thread Rickard von Essen
No unfortunately it's not. But I thought about implementing that a few weeks ago. I don't have any eta on that. We would happily accept a PR for this. On Dec 22, 2016 12:27 PM, "Michel Rasschaert" wrote: > Hello, > > source_ami_filter is working great. However I'd

Re: [packer] Re: Building ami form running ec2 instance

2016-12-16 Thread Rickard von Essen
The ami built when running amazon-chroot "from_scratch" is a completely new AMI based on a empty EBS volume. This picture for one of my presentation might shed some light over how it works https://github.com/rickard-von-essen/packer-talk/blob/master/aws-ug-1/presentation/images/08-9_

Re: [packer] Building ami form running ec2 instance

2016-12-13 Thread Rickard von Essen
Not really, and it is not intended since that is not a reproducible process. But it's rather easy by following http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html from the console or with the cli. The purpose of Packer is to do this process repeatable and "as code". On 13 December 2016

Re: [packer] Packer amazon-ebs builder source_ami_filter Issue

2016-12-07 Thread Rickard von Essen
This is a new feature, upgrade to 0.12.0. On Dec 7, 2016 2:12 PM, "Josh Lynn" wrote: > Hello All, > > I'm experiencing an issue with my packer.json file with what appears to be > a configuration issue with the source_ami_filter object. I receive the > following error

Re: [packer] VNC handshaking error in OSX

2016-11-29 Thread Rickard von Essen
Try adding "vnc_disable_password": true https://www.packer.io/docs/builders/vmware-iso.html#vnc_disable_password On 29 November 2016 at 12:57, AndrewH wrote: > I am currently testing Packer v0.12.0 on MAC and attempting to build to a > ESXi 6.5 server running on a local

Re: [packer] Re: Packer seems to hang waiting for shell to be available

2016-11-27 Thread Rickard von Essen
Could you share your kickstart file. On 27 November 2016 at 13:24, Elhanan Maayan wrote: > keeps saying : > starting remote command: esxcli --formatter csv network vm port list -w > 5763554 > [DEBUG] Error getting SSH address: No interface on the VM has an IP > address

Re: [packer] Re: vmware packer build inside docker with http_directory setting

2016-11-26 Thread Rickard von Essen
d. I can discover the docker host, lock the >> http port inside docker, how do i push it to boot_command? >> >> -Dan >> >> On Friday, November 25, 2016 at 12:26:47 PM UTC-8, Rickard von Essen >> wrote: >>> >>> Ok I interpret it as you run

Re: [packer] Re: vmware packer build inside docker with http_directory setting

2016-11-26 Thread Rickard von Essen
a > bless > > solution 2: sounds very hard. I can discover the docker host, lock the > http port inside docker, how do i push it to boot_command? > > -Dan > > On Friday, November 25, 2016 at 12:26:47 PM UTC-8, Rickard von Essen wrote: >> >> Ok I interpret it as

Re: [packer] Re: vmware packer build inside docker with http_directory setting

2016-11-25 Thread Rickard von Essen
e docker, its IP address is 172.* and it is not > visible outside of my container > > -Dan > > [1] https://www.packer.io/docs/builders/virtualbox-iso.html#http_directory > > On Friday, November 25, 2016 at 2:42:03 AM UTC-8, Rickard von Essen wrote: >> >> Could you elaborate a bit, didn't

[packer] Re: vmware packer build inside docker with http_directory setting

2016-11-25 Thread Rickard von Essen
Could you elaborate a bit, didn't really get your setup. On Friday, November 25, 2016 at 10:43:18 AM UTC+1, Dan Tran wrote: > > > Hi > > Since the build is inside docker, packer dynamic http server used by > 'http_directory' setting is not visible to my ESX. > > I wonder if anyone has a

Re: [packer] Re: boot command explanation

2016-11-24 Thread Rickard von Essen
mand with >> ubuntu1404-desktop.json file without changing iso_url (it mention server >> version iso,"iso_url": "http://releases.ubuntu.com/14 >> .04/ubuntu-14.04.5-server-amd64.iso",) >> >> please respond. >> >> Regard >> Dhiraj >

Re: [packer] Re: boot command explanation

2016-11-18 Thread Rickard von Essen
asked about json file content becsuse it seems > incomplete to me..as it does not contains builder type I.e. virtualbox-iso, > post processor section, Provisioner's section etc... > > On 18-Nov-2016 19:52, "Rickard von Essen" <rickard.von.es...@gmail.com> > wrote: > &

Re: [packer] Re: boot command explanation

2016-11-18 Thread Rickard von Essen
op.json) in shared repository is sufficient to create box > or i have to copy only boot command from it and execute with json file that > i have. > > > On Friday, 18 November 2016 11:29:01 UTC+5:30, Rickard von Essen wrote: >> >> The Ubuntu desktop iso doesn't have the tex

Re: [packer] Re: boot command explanation

2016-11-17 Thread Rickard von Essen
The Ubuntu desktop iso doesn't have the text installer, you should use the server iso and install the ubuntu-server package. Check out https://github.com/boxcutter/ubuntu I recommend that you start with that code and adapt it in small steps to your needs. Doing automated installs from scratch

Re: [packer] Packer Qemu image has trouble running vm's

2016-11-17 Thread Rickard von Essen
Can you share any logs, and debug info? On 17 November 2016 at 21:34, Muhammad Tameem Iftikhar < miftik...@surfeasy.com> wrote: > Hey Guys, currently trying to get packer to build a Qemu image for use > with KVM. I can successfully build a qcow2 image using packer and its only > the basic ubuntu

Re: [packer] boot command explanation

2016-11-16 Thread Rickard von Essen
vmlinuz is the name of the Linux kernel executable. It's not possible to click buttons in a UI unless they have a keyboard binding. You should instead study how to do a automated install of your OS / distribution and use a text installer to start it. Which distribution are you trying to build a

Re: [packer] Question Marks in Packer Output

2016-11-16 Thread Rickard von Essen
Probably just a character not available in your charset or font. Try switching charset in your terminal. On Nov 16, 2016 11:34 AM, wrote: > Hi Guys, > > Just a minor one - can anyone explain why question marks appear in my > packer out put when running each of my

Re: [packer] ssh authorized key changes after vagrant post-processor?

2016-11-15 Thread Rickard von Essen
albox-iso kakadu.json >> vagrant up virtualbox --provider=virtualbox >> >> I get a long list of "virtualbox: Warning: Authentication failure. >> Retrying..." and then it gives up. My other packer projects are building >> VMs that can be started though. >>

Re: [packer] ssh authorized key changes after vagrant post-processor?

2016-11-15 Thread Rickard von Essen
Your build works as expected for me. I think you are missing some command in your workflow or something like that. On 15 November 2016 at 20:21, Rickard von Essen <rickard.von.es...@gmail.com > wrote: > So which commands do you run and what's the output of them? From one look &

Re: [packer] share download link of project

2016-11-15 Thread Rickard von Essen
https://github.com/chef/bento On 15 November 2016 at 11:24, dp wrote: > Hi, > > can any one share download link of project which could help to create > linux machine boxes for parallel from iso. > > thanks in advance > > Regards > Dhiraj > > -- > This mailing list is

Re: [packer] parallels-iso Timeout waiting for SSH error comes

2016-11-09 Thread Rickard von Essen
; i think this is because of openssh.ps1 is not executing on VM >> machinne(version windows 7) >> >> please assist how to proceed. >> do i need to update JSON file. >> >> Thanks >> Dhiraj >> >> On Thursday, 3 November 2016 17:56:23 UTC+5:30, Rickard

<    3   4   5   6   7   8   9   >