Re: [packer] Using Packer for Bare Metal deployment

2023-10-07 Thread Alvaro Miranda Aguilera
Hello Packer can use null builder to connect over ssh to a linux machine and run scripts but will more to configure after the OS install have started. Can you share more information on what you do today, and how you think this solution would work? how you take a copy of 1 server bare metal, and

Re: [packer] Packer - Unable to create VM resource via azure arm with os disk type Standard HDD

2022-11-12 Thread Alvaro Miranda Aguilera
Hello I can see you are using the right setting - managed_image_storage_account_type (string) - Specify the storage account type for a managed image. Valid values are

Re: [packer] Packer - Unable to create VM resource via azure arm with os disk type Standard HDD

2022-11-04 Thread Alvaro Miranda Aguilera
please share template On Wed, Nov 2, 2022 at 8:59 AM Rahul Negi wrote: > Hi Team, I am using packer with azure-arm template to build up managed > images and store them in Share Image Gallery or Azure Compute Gallery. > > While creating the temporary vm resource, I am getting below error. Below

Re: [packer] Adding new volumes to Ubuntu 20.04

2022-04-05 Thread Alvaro Miranda Aguilera
Can you share a Zip file with packer template and scripts? File provisioning will happen with the user you defined for connection /tmp and /var/tmp require special permissions I think 1777 As the system is already running, if you still have issues after setting permissions, you could mount

Re: [packer] packer build stuck at welcome screen ubuntu 21

2021-09-21 Thread Alvaro Miranda Aguilera
try to start from a packer project that works, and modify as you need in old days the server version worked fine for preseed install sample templates here: https://github.com/chef/bento/tree/main/packer_templates/ubuntu please note they use the server iso for the reason i shared with you

Re: [packer] can i patch ubuntu in cloud-init script

2021-09-21 Thread Alvaro Miranda Aguilera
yes you can packer can handle reboots too cloud-init will be fire and forget, so you can have a script that checks for for file mark ie cloud-init creates a file: /var/tmp/completed and a script wait for that file to exists. I personally would patch from a shell script, to control the

Re: [packer] Re: Help for packer error while building VM in proxmox environment

2021-06-11 Thread Alvaro Miranda Aguilera
late to > unix format via dos2unix but still facing the same problem. Please help me > in resolving this issue and let me know if you need any thing from me to > resolve this issue. > > On Sun, Jun 6, 2021 at 4:22 PM Alvaro Miranda Aguilera > wrote: > >> hi >> >&g

Re: [packer] Re: Help for packer error while building VM in proxmox environment

2021-06-06 Thread Alvaro Miranda Aguilera
hi seems different character set make sure you save template as text file try to use dos2unix on the template file On Fri, Jun 4, 2021 at 10:31 PM Akhila Garlapally < akhila.garlapa...@ecosmob.com> wrote: > Hi, > > we are using proxmox of version 4.1 and I'm facing the below error . > -->

Re: [packer] Packer Configuration for windows

2021-06-06 Thread Alvaro Miranda Aguilera
hi you can see an example here https://github.com/chef/bento/blob/master/packer_templates/windows/windows-2019.json#L115-L151 On Thu, Jun 3, 2021 at 9:51 AM Niroop Janagoudar wrote: > hi Team, >I'm trying to build windows qcow2 2019 image using packer which should > of type qemu builder.

Re: [packer] Failed ssh for rhcos

2021-05-28 Thread Alvaro Miranda Aguilera
28, 2021 at 3:45 PM Alvaro Miranda Aguilera > wrote: > >> can you see to the new machine when is created ? >> >> using his user and key? >> >> core >> /home/ubuntu/.ssh/id_rsa >> >> ? >> >> The ip should be one defined here: >>

Re: [packer] Failed ssh for rhcos

2021-05-28 Thread Alvaro Miranda Aguilera
can you see to the new machine when is created ? using his user and key? core /home/ubuntu/.ssh/id_rsa ? The ip should be one defined here: vm_v4address": "xxx.xxx.x.xx", I fail to see how this boot from iso will create this user, allow login with this private key and set fixed IP On Thu,

Re: [packer] Hyper-V Iso Gen-1

2021-05-17 Thread Alvaro Miranda Aguilera
is this what you looking? https://github.com/chef/bento/blob/master/packer_templates/ubuntu/ubuntu-20.04-amd64.json#L190-L223 On Mon, May 3, 2021 at 12:58 PM Amit Chettri wrote: > Hello All, > > Lately I have been looking around for reference to build the ubuntu 20.04 > live server image

Re: [packer] How can i assign static ip address to AWS EC2 in packer

2021-02-04 Thread Alvaro Miranda Aguilera
hen I run > the packer. > > Thanks for your response. > > On Thu, Feb 4, 2021 at 1:03 PM Alvaro Miranda Aguilera > wrote: > >> hi >> >> packer on aws will create an instance, and packer will know how to ssh to >> that instance. >> >> is not clear wha

Re: [packer] How can i assign static ip address to AWS EC2 in packer

2021-02-04 Thread Alvaro Miranda Aguilera
hi packer on aws will create an instance, and packer will know how to ssh to that instance. is not clear what you want to do. you are having an existing VM with a known IP you want to connect and run provisioners? or you want packer to build an ec2 instance with a fixed IP? where you read

Re: [packer] Using variables in amazon-ebs user_data_file script

2021-01-05 Thread Alvaro Miranda Aguilera
hello user_data_file it will just upload this file, its content is not processed by packer. thanks alvaro On Tue, Jan 5, 2021 at 6:53 AM Pujitha Kondaveeti < kondaveetipuji...@gmail.com> wrote: > Hi, > I'm using amazon-ebs packer builder to create an AMI and I need to run a > script as part of

Re: [packer] strange behavior with cpu shares using vsphere-iso

2021-01-05 Thread Alvaro Miranda Aguilera
hello can you share your packer config? are you building with packer on ESXi or vcenter? thanks alvaro On Tue, Dec 29, 2020 at 8:35 PM Elhanan Maayan wrote: > hi.. > i'm attempting to create a vm with hardware compatibility 11 on esxi 6.5 > using vsphere 6.7 > for some reason, i see that

Re: [packer] Packer is not allowing me to enable Software collection packages in Centos-7 with Packer

2020-07-18 Thread Alvaro Miranda Aguilera
hi the way you run the commands probably can re reviewed when using sudo is just one command so this command i think wont do what you want sudo scl enable devtoolset-8 bash but if you remove the sudo scl enable devtoolset-8 bash not sure will work, if i do a search it seems you should be

Re: [packer] can packer create a machine with EulaSection?

2020-07-07 Thread Alvaro Miranda Aguilera
I would say after packer finish the best will be use a tool made for that, ie ovftool https://vdc-download.vmware.com/vmwb-repository/dcr-public/bb505ca7-88b5-4b11-aff4-f59125ab27bc/f3d05149-23e9-4ac2-8f99-0c851a8a5231/ovftool-430-userguide.pdf --eula N/A OVF, OVA Inserts the EULA in the first

Re: [packer] has something changed with packet 1.6.0 in regards to iso downloads?

2020-06-28 Thread Alvaro Miranda Aguilera
can you run a build in debug mode and create an issue on github? Please attach the template and debug log thanks! alvaro On Sun, Jun 28, 2020 at 11:22 AM Elhanan Maayan wrote: > i'm trying to download ubuntu with > >"iso_urls": [ > "{{user `workdir`}}/iso/{{user `iso_name`}}", >

Re: [packer] Vmware-iso hangs

2020-05-12 Thread Alvaro Miranda Aguilera
hello can you share an debug run of the one that hangs and template file? export PACKER_LOG=DEBUG packer build template.json thanks alvaro On Mon, May 11, 2020 at 11:32 AM vmware-iso wrote: > packer 1.5.6 > > bento ubuntu 20.04 vmware-iso hangs at shell connection refused. > virtualbox-iso

Re: [packer] Debugging Packer builds within a CI pipeline

2020-05-06 Thread Alvaro Miranda Aguilera
have you tried PACKER_LOG=DEBUG as environment variable ? On Tue, May 5, 2020 at 7:24 PM Adam Rush wrote: > I know we can use `-debug` and `-on-error=ask` when doing local Packer > builds, but they don't seem to work within a CI build pipeline (like > Jenkins). > > Has anyone else found a

Re: [packer] packer fails in lvm creation

2020-05-06 Thread Alvaro Miranda Aguilera
hello are you using an standard centos iso ? i dont see how the kickstart may be getting called here why not try to use a template as base and then adapt? have a look at https://github.com/chef/bento/blob/master/packer_templates/centos/centos-6.10-x86_64.json alvaro On Tue, May 5, 2020 at

Re: [packer] Photon kick start only via http or ISO?

2020-05-05 Thread Alvaro Miranda Aguilera
HEllo PhotonOS is done my VMWare, so a definitive answer will came from them, or their documentation. However I happen to pass cross a photon project once and they used packer http server + boot command to said http server

Re: [packer] how to create image LXC by packer ?

2020-04-27 Thread Alvaro Miranda Aguilera
Hello Have you tried the documentation? https://www.packer.io/docs/builders/lxc.html#basic-example If you have issues, please describe what issue you have, what steps you have performed alvaro On Tue, Apr 21, 2020 at 5:10 AM jam mahmoudi wrote: > please guide me > > -- > This mailing list

Re: [packer] Packer: vsphere-iso builder deploy multiple disks?

2020-04-16 Thread Alvaro Miranda Aguilera
try like this https://github.com/hashicorp/packer/blob/cc257387f151c3dddb1cacc55cddb301caed6314/website/pages/partials/builder/vsphere/iso/DiskConfig.mdx On Sun, Apr 12, 2020 at 6:55 PM Raj Wurttemberg wrote: > I'm trying to get Packer (1.5.5) to deploy multiple disks for a > specialized

Re: [packer] Packer Pipeline Stuck: Terminating Source AWS Instance

2020-04-09 Thread Alvaro Miranda Aguilera
hello current version of packer is 1.5.5 can you test with current version? if issue persist, share new debug log and template you are using. thanks alvaro On Thu, Apr 9, 2020 at 12:16 AM Aaron Tracy wrote: > Packer Version: 1.4.3 > > Hey All, > > I have a packer pipeline running in Gitlab

Re: [packer] Best Practices in developing the windows AMI with inplace patches

2020-04-08 Thread Alvaro Miranda Aguilera
Hello Have a look at this template. it should similar for you in AMI / AWS https://github.com/MattHodge/PackerTemplates/blob/master/builders/hyperv/01-windows-local.json#L37-L70 https://github.com/MattHodge/PackerTemplates/blob/master/scripts/install_windows_updates.ps1 Alvaro On Mon, Apr

Re: [packer] Storage Account Type - SSD Possible In Packer Image ?

2020-04-08 Thread Alvaro Miranda Aguilera
when you deploy a new VM with these templates, can you choose the type of disk ? On Mon, Apr 6, 2020 at 9:12 PM Manikavelu Velayutham wrote: > Storage Account type of Images generated through Packer is always Standard > HDD. > > Is there any possibilities to generate the Image with SDD storage

Re: [packer] Guidance on how to properly use the galaxy_force_install parameter

2020-03-29 Thread Alvaro Miranda Aguilera
e around my immediate problem. > > Couldn't find a way to add --force as an extra argument to ansible-galaxy > but I'll leave this for now. > > Thanks for your help! > > On Sunday, March 22, 2020 at 9:33:29 AM UTC, Alvaro Miranda Aguilera wrote: >> >> per documentation i

Re: [packer] Guidance on how to properly use the galaxy_force_install parameter

2020-03-22 Thread Alvaro Miranda Aguilera
per documentation it should add --force to the arguments can you try removing galaxy_force_install and setting --force as extra argument to test if does what you expect ? this should to confirm where the issue may be alvaro On Tue, Mar 17, 2020 at 3:06 PM Piya wrote: > Hello! > > First

Re: [packer] Usage of isotime in Naming custom Images for Oracle Cloud Infrastructure

2020-02-26 Thread Alvaro Miranda Aguilera
Hello Have your tried like the documentation? {{isotime \"2006-01-02 03:04:05\"}}" On Fri, Feb 21, 2020 at 9:55 PM Anil Shenoy wrote: > Hi All, > > Can you please suggest what is the best way to use isotime and rename a > custom image in OCI? > > I have used the below and it worked fine. > >

Re: [packer] Re: Azure windows virtual image provision Packer- winrm timeout issue

2020-01-17 Thread Alvaro Miranda Aguilera
have you tried azure example? they use winrm https://docs.microsoft.com/en-us/azure/virtual-machines/windows/build-image-with-packer On Thu, Jan 16, 2020 at 11:30 AM mohanapriya k1990 wrote: > Hi, Thanks for you reply. could you please mention where should i mention > the winrm settings file

Re: [packer] Create OVA from VM created by vsphere-clone

2020-01-17 Thread Alvaro Miranda Aguilera
Hello You can use ovftools to create OVAs from VMs https://code.vmware.com/web/tool/4.3.0/ovf Alvaro. On Mon, Jan 13, 2020 at 8:18 AM Akhilesh Verma wrote: > HI , > I am using vsphere-clone as builder to clone a VM. Now i want to create a > OVA file which i can export anywhere. > I was

Re: [packer] Packer vmware-iso build ubuntu server 18.04.3 + vmware workstation pro 15

2020-01-17 Thread Alvaro Miranda Aguilera
Hello Can you explain a bit more please. - What is your host os? - Do you have VMWare Workstation Installed? - Can you create VM manually ? they boot ok ? now to packer - what packer version? - do you have a template that works? I am not sure if I understand what is failing or where. Are you

Re: [packer] iso_url path doesn't work for windows network paths

2020-01-01 Thread Alvaro Miranda Aguilera
hello if this worked before and stopped to work the best is if you can open a issue on github and provide a template to reproduce, and the output in debug mode of a run thanks alvaro On Tue, Dec 31, 2019 at 12:34 PM q t <6434...@gmail.com> wrote: > Hello. > up to this point, I was using

Re: [packer] Using non Administrator winrm user with amazon-ebs

2019-11-29 Thread Alvaro Miranda Aguilera
hi there you can specify user and password, so your template should set Administrator somewhere. https://www.packer.io/docs/communicators/winrm.html#winrm_username So instead of Administrator you could use this non-Administrator user. Alvaro. On Tue, Nov 26, 2019 at 9:52 PM Gautam Singh

Re: [packer] Packer build using vmware-iso\ESX, post processor to vagrant\virtualbox possible?

2019-11-29 Thread Alvaro Miranda Aguilera
Hello. The idea behind packer is if you use the same way to create a VM, the vms should be the same. So instead of trying to convert one VM or disk from one format to other, your project could build from ISO 2 VMs. one for VMWare and one for Virtualbox. You will be able to run the same script

Re: [packer] Packer Image creation Fails to git clone using username/password in the inline block .

2019-09-24 Thread Alvaro Miranda Aguilera
have you tested this script? if you create a VM and copy and run does this work? I don't believe this is a packer issue since is able to create VM, copy and run the script. Alvaro. On Sat, Sep 21, 2019 at 5:14 PM Rohan Gupta wrote: > Attaching the builder script for more information. > > >

Re: [packer] Error starting VM: VMware error: VERIFY bora/lib/misc/hostinfoPosix.c:1771

2019-09-09 Thread Alvaro Miranda Aguilera
hello just to make sure i understand. you are truing to run vmware inside a docker container? i assume the container run in some sort of vm too. probably wont work as 64 bit require access to hw virtualization. vmware requires access to hw virtualization, so not a packer issue at this moment.

Re: [packer] How to use amis from packer

2019-08-25 Thread Alvaro Miranda Aguilera
your configuration on top of of the old ami need be your application. how did you configure those? if by hand, then you will have to do all by hand. packer is just building a new ami, how you use it, and what you do on top need to be part of the release cycle of the application alvaro On Mon,

Re: [packer] Using Packer to build a windows box and provision with Ansible

2019-08-16 Thread Alvaro Miranda Aguilera
hello could you share some code that works? in case someone came later to this thread, will be good to have a working example thanks alvaro On Wed, Aug 14, 2019 at 9:39 AM 'Richard Payne' via Packer < packer-tool@googlegroups.com> wrote: > Yeah, the relevant directories are accessible and

Re: [packer] Packer with vmware workstation windows guest installtion stuck after loading iso

2019-08-16 Thread Alvaro Miranda Aguilera
you could compare the hw on vm that works and what packer creates by default could be hdd or controller type, or bios/uefi On Thu, Aug 15, 2019 at 5:57 PM Automationbuilder360 Builder < automationbuilder...@gmail.com> wrote: > Hi All, > > Am using packer with vmware workstaiton, > I have

Re: [packer] Using Packer in conjunction with Gitlab CI to create build artifacts in my AWS VPC

2019-08-08 Thread Alvaro Miranda Aguilera
Hello Seems what you want is just a CI worker and AWS cli packer is a tool that bulild VMs/AMIs/Docker primarily. you could add a manifest post processor, and grab de AMI created there and just delete it if you don't need it On Wed, Aug 7, 2019 at 10:09 PM Dean Kayton wrote: > It seems

Re: [packer] Boots into UEFI interactive Shell

2019-08-05 Thread Alvaro Miranda Aguilera
hello without using packer, how do you create a VM in virtualbox that does what you need ? what OS you use for the VM ? those settings may include legacy bios or UEFI. On Thu, Jul 18, 2019 at 4:53 PM StateFarm_94 wrote: > I have this code that when I run the packer command on my .json, the

Re: [packer] Not Sure, where is the problem in Provisioners

2019-07-20 Thread Alvaro Miranda Aguilera
you can run scripts with full path in one line. On Tue, Jul 16, 2019 at 12:42 PM arunnirmal chinnadurai < arunnirmal.chinnadu...@gmail.com> wrote: > In Packer template as shown below...I use generate inventoryfile > powershell script which creates IP address and store it in > packer-guest.yml,

Re: [packer] Cannot shutdown because of VMware Tools not running

2019-06-26 Thread Alvaro Miranda Aguilera
hello vsphere-clone is not part of the official packer, so i am not sure where the error may be. my suggestion: check for open or past issues here: https://github.com/jetbrains-infra/packer-builder-vsphere/issues if there is nothing similar, perhaps you can open a new one. alvaro On Wed, Jun

Re: [packer] EKS AMI

2019-06-22 Thread Alvaro Miranda Aguilera
hello if you clone this repo and run as is, without any change does work? the reame says you need to run `make` and not packer directly does this work ? On Wed, Jun 19, 2019 at 10:49 PM A S wrote: > Hello Does anyone build eks worker ami using packer? what are all the > steps that we needed

Re: [packer] Packer unable to find a local image

2019-06-22 Thread Alvaro Miranda Aguilera
one starting point would share packer template and the putput of docker images if your docker image is locally cached that is not a registry, so the best will be add pull false to the packer template. alvaro On Wed, Jun 19, 2019 at 10:10 PM Adam Fields wrote: > Hi - I am getting an error

Re: [packer] How to provide unattend.xml for building windows image from a vhdx file?

2019-06-18 Thread Alvaro Miranda Aguilera
hello. Have you done this in windows before? the unattend.xml is read by the Windows installer, from the same ISO or a floppy. Packer allows you to create a floppy disk with some files, ie unattend.xml When you use vhdx, do you have the installer? or you are booting from an existing VM?

Re: [packer] can i run packer from packer itself

2019-06-17 Thread Alvaro Miranda Aguilera
have you tested this ? does work? On Mon, Jun 17, 2019 at 7:59 AM Parag Gupta wrote: > We need to create VM images using packer . Our Jenkins slave are docker > images so installing virtual box on docker and creating VM images on a > docker would be complex . > So what we are thinking is to

Re: [packer] network interface not getting created while building windows 2016 image using vsphere.iso

2019-06-04 Thread Alvaro Miranda Aguilera
hello without packer, does this autounattend works ? On Mon, Jun 3, 2019 at 3:00 AM Srinivasan Govindasamy wrote: > Hello Team, > > would seek your help to identify the issue on assigning the IP address to > the VM. The VM is getting created without assigning the IP address. have > enclosed the

Re: [packer] Packer vmware-iso builder failing with “unexpected EOF”

2019-04-20 Thread Alvaro Miranda Aguilera
hi there please include a link to a github repo where your files are to have a look at them On Fri, Apr 19, 2019 at 11:51 PM wrote: > I am new to Packer and have been attempting to use the Packer vmware-iso > builder. I have attempted to build both an Ubuntu 18.04 and a CentOS 7 > template.

Re: [packer] Automated builds of Vagrant boxes

2019-04-15 Thread Alvaro Miranda Aguilera
hello I did reply over the vagrant mailing list. So basically i said that not much has changed, but not you can build from an existing vagrant box if that helps https://packer.io/docs/builders/vagrant.html there is also an example there alvaro On Fri, Apr 12, 2019 at 11:31 PM Jason Hsu

Re: [packer] Help with building QEMU Xen based template

2019-04-06 Thread Alvaro Miranda Aguilera
hello. have you got any reference that this should work? Is your computer where you run packer a physical machine? its a VM? i notice the qemu binary you using is i386 but the dvd iso is 64 bits, should that work? Can you try with a 32bit iso and then with both qemu-image and a iso 64 bits?

Re: [packer] vmware-iso DHCP lookup issue

2019-03-17 Thread Alvaro Miranda Aguilera
Hello Are you on wifi? Have you tried on a different host computer? If you could share a link to a github repo with your code, will be easier to give it a run and check if works Thanks! Alvaro. On Fri, Mar 15, 2019 at 10:05 PM wrote: > I use vmnet10 for nat and have that set on my

Re: [packer] Inspec provisioner exit codes

2019-03-15 Thread Alvaro Miranda Aguilera
how are you running inspec ? alvaro On Thu, Mar 14, 2019 at 7:23 PM n n wrote: > Hi, > packer is failing when inspec returns a 101 exit code due to skipped tests. > > Build 'amazon-ebs' errored: Error executing Inspec: Non-zero exit status: > exit status 100 > > ==> Some builds didn't complete

Re: [packer] Packer build getting stuck in windows powershell provisioner

2019-01-29 Thread Alvaro Miranda Aguilera
hello is not possible to help without code or logs, and a explanation on if you build this and was working, or this has never worked. If you could share code, logs and a explanation on how this code got built it will help a lot. Thanks Alvaro On Tue, Jan 22, 2019 at 7:17 AM Pradeep C wrote:

Re: [packer] Packer SSH Handshake fails!

2019-01-18 Thread Alvaro Miranda Aguilera
wrote: > Hi, > > Still same issue no luck. I have changed host ip in json file and removed > loop back 10.0.2.2 getting same issue. > > please find the screen shot. Build and Qemu logs > [image: image.png] > > > On Fri, Jan 18, 2019 at 12:39 AM Alvaro Miranda Aguiler

Re: [packer] Packer SSH handshake failed

2019-01-17 Thread Alvaro Miranda Aguilera
i did reply in the other thread you shared seems your host is misconfigured and its confusing packer you have an ip 10.X in the loopback interface, that shouldn't be there alvaro On Thu, Jan 17, 2019 at 2:04 PM Dhatchinamoorthy M wrote: > Hi Rickard, > > During build Qemu emulator coming up

Re: [packer] Packer SSH Handshake fails!

2019-01-16 Thread Alvaro Miranda Aguilera
change in host > machine. my kickstart file serving using 10.0.2.2 this ip address. > > On Fri, Jan 11, 2019 at 12:31 AM Alvaro Miranda Aguilera < > kiki...@gmail.com> wrote: > >> hello >> >> without packer, if you do a VM manually with this kickstart, does th

Re: [packer] Packer SSH Handshake fails!

2019-01-10 Thread Alvaro Miranda Aguilera
hello without packer, if you do a VM manually with this kickstart, does the kickstart work? can you ssh to the vm after the reboot? alvaro On Thu, Jan 10, 2019 at 3:22 PM Tim Bodhini wrote: > So, after some time and other tasks I finally managed to attach my GUI to > the VNC ... The only

Re: [packer] vmware-iso build failing due to missing network VMware Fusion network config.

2019-01-10 Thread Alvaro Miranda Aguilera
I have that file. Can you open Fusion, create a VM, confirm all works? the new security model of MacOS may require you need to approve kernel extensions and other stuff. *0* kikitux ~ $ ls -al "/Library/Preferences/VMware Fusion/networking" -rw-r--r-- 1 root wheel 968 Jan 10 18:59

Re: [packer] CI : detect build errors

2019-01-03 Thread Alvaro Miranda Aguilera
Hello Have you seen this? https://www.packer.io/docs/post-processors/manifest.html Alvaro. On Thu, Jan 3, 2019 at 5:50 PM wrote: > Hi everyone, > > I want to use packer & terraform in a CI environment to deploy projects on > GCP. > > The missing piece in my environment is the build status

Re: [packer] [ AZURE ] Option to "enableAcceleratedNetworking"

2018-12-29 Thread Alvaro Miranda Aguilera
you set this at build time and then each VM deployed from this will inherit? or this is something you can enable at run time? ie on a new VM from the packer template. How packer relates to the test you want to do? Seems you are using packer as a sort of CI for Infra? As workaround seems you

Re: [packer] Packer file provisioner hangs intermittently

2018-12-17 Thread Alvaro Miranda Aguilera
Hello You can use other means, ie put the content into a S3 bucket. and use a script to download the file. On Mon, Dec 17, 2018 at 5:22 PM Shafana Safwan wrote: > I am running a packer script on top of an AWS instance. The packer hangs > at the file provisioner. The folder size packer upload

Re: [packer] Re: VMWare-ISO and ESX network not connecting.

2018-12-14 Thread Alvaro Miranda Aguilera
packer talk to esxi esxi only have normal networks distributed groups etc exists on vcenter, not on esxi so you can : - have a provisioning network, so packer can build - have a iso and make packer build offline using vmware-iso - try packer vcenter plugin

Re: [packer] Not able to check if Post installation scripts are completed after reboot with Packer

2018-12-06 Thread Alvaro Miranda Aguilera
well packer need that to confirm machine is up and running again a script like the example in the documentation is you need for the restart part -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in

Re: [packer] Pre-Installed Software

2018-12-05 Thread Alvaro Miranda Aguilera
; > > On Wednesday, 5 December 2018 03:40:45 UTC+11, Alvaro Miranda Aguilera > wrote: >> >> Hello. >> >> Packer have providers, there you can run scripts. >> >> Just make sure your script can run and download software and install >> silently

Re: [packer] Creating EBS Volume from Snapshot to Bake AMI

2018-12-05 Thread Alvaro Miranda Aguilera
Hello How are you creating these snapshots? Maybe you can add an extra step and create an AMI with the snapshots, and keep packer template more clean, and just use amazon-ebs https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot

Re: [packer] Not able to check if Post installation scripts are completed after reboot with Packer

2018-12-05 Thread Alvaro Miranda Aguilera
the command will only check if the restart happened. if the command can be run, then will continue. So you should separate your logic, from the restart and the command. - first command - restart - next command and in the next command do wait while that process is running or something.

Re: [packer] Pre-Installed Software

2018-12-04 Thread Alvaro Miranda Aguilera
Hello. Packer have providers, there you can run scripts. Just make sure your script can run and download software and install silently and should be fine. If you get into issues. Share what you have done, and the error messages. Try to do it in stage get packer template that builds a VM, and

Re: [packer] Packer + vmware-iso + ESX | VM created with disconnected network interface

2018-11-30 Thread Alvaro Miranda Aguilera
l_980", > "ethernet0.addressType": "generated", > "ethernet0.wakeOnPcktRcv": "FALSE", > "ethernet0.uptCompatibility": "TRUE", > "ethernet0.startConnected": "TRUE", >

Re: [packer] Packer validating the AMI

2018-11-21 Thread Alvaro Miranda Aguilera
Hello i personally use kitchen-ec2 here is one example: https://github.com/achuchulev/packer-aws_nginx Alvaro On Tue, Nov 20, 2018 at 10:28 PM Sai Raghuveer Reddy Narla < raghuveer.u...@gmail.com> wrote: > Hii Everyone, > > Can anyone suggest me the Test automation tool that has to validate

Re: [packer] Possible for Packer to only push a Docker image based on successful execution of a custom script?

2018-11-20 Thread Alvaro Miranda Aguilera
Hello. What is the exit code when the test fails ? On Tue, Nov 20, 2018 at 3:07 PM wrote: > Thanks for the response! > > I did try that but the result was the same. It occurs to me that a flag > like "passthrough_input_artifact" would be useful in this case. I briefly > glanced at some of

Re: [packer] Re: How to tell packer not to delete the instance used to build the AMI

2018-11-17 Thread Alvaro Miranda Aguilera
Hello Depending on what you wan, you will think to build a pipeline. If you want to package ami, then on packer you can do Packer: Base AMI -> Intermediate AMI -> Install product A / run scripts -> AMI for product A Base AMI -> Intermediate AMI -> Install product B / run scripts -> AMI for

Re: [packer] Add File in build

2018-11-15 Thread Alvaro Miranda Aguilera
hello there whats the output of packer validate? seems you got an extra comma after } if you run into errors will be good: - share full packer template, ideally a link to github with all the scripts - what command did you run - what error you got otherwise is hard to help alvaro On Wed, Nov

Re: [packer] How to add code into a vagrant file

2018-11-12 Thread Alvaro Miranda Aguilera
Hello Who is they? What do you want to do? What you have tried? Alvaro On Wed, Nov 7, 2018 at 3:43 AM federico montaldo wrote: > Hi folks > > I got a packer build for a windows 10 for virtual box. There is a way to > add powershell deployment?. They ask me to add a githun workflow for a PR.

Re: [packer] Mounting volumes into Docker

2018-11-04 Thread Alvaro Miranda Aguilera
try "builders": [{ "type": "docker", "image": "centos", "commit": true, "pull": true, "volumes": [ "/home/evan/code": "/tmp/code" ] }], alvaro On Sun, Nov 4, 2018 at 11:30 AM wrote: > Thanks for the reply. There is no documented examples that I can see, for > using VOLUMES. Would you be

Re: [packer] Packer with vshpere ? Do I have to have vsphere access

2018-10-28 Thread Alvaro Miranda Aguilera
Hello packer for vmware-iso with remote connection, aka vsphere, only starts from an ISO. vmware-vmx is only availablefor vmware desktop (Workstation / Fusion) Alvaro On Wed, Oct 24, 2018 at 2:08 AM Ibrahim Buamod wrote: > What should be the path of > > "source_path": "/path/to/a/vm.vmx",

Re: [packer] Build OVA containing multiple VMs

2018-10-27 Thread Alvaro Miranda Aguilera
hello. OVA is a container format, when packer is building a VM, defaults to OVF. you can ask packer to use ova when doing the last export. To answer your question, no, packer wont build 1 OVA with 4 VMS. but, packer can build the 4 VMS you want and have 4 folders with 4 OVF. then you could run

Re: [packer] Looking for packer example with chef solo

2018-10-23 Thread Alvaro Miranda Aguilera
Hello. Then it seems playing more with Chef will be the first step. the provisioner chef solo, like shell, requires understanding of the tools. Alvaro. On Tue, Oct 23, 2018 at 12:37 AM Ibrahim Mohamed wrote: > Hi Jp, but it's not clear how to use things for example how would I use > this

Re: [packer] Login to Windows VM which faced failed ansible provisioning

2018-10-22 Thread Alvaro Miranda Aguilera
does that user/pass have access to the VM? https://docs.microsoft.com/en-us/azure/virtual-machines/windows/build-image-with-packer That may explain why this is failing per documentation should be client_secret and not winrm_password On Mon, Oct 22, 2018 at 8:43 AM Muhammad Faizan-Ul-Haq

Re: [packer] How can you modularize the json template for a Packer project?

2018-10-19 Thread Alvaro Miranda Aguilera
Hello you can put into variables all the info for ubuntu into ubuntu.json and all the debian into debian.json then use packer build -var-file ubuntu.json template.json if you need to use this on the provisioner, say you got different chef playbooks, you could use then { "variables": {

Re: [packer] Azure-arm: Timeout waiting for SSH

2018-10-17 Thread Alvaro Miranda Aguilera
seems packer is not connecting to the VM and per the files you shared, not clear how dockerfile is used. On Wed, Oct 17, 2018 at 2:05 AM Krish K wrote: > I am new to packer and Azure and I am trying to build Azure managed image. > I am trying use the custom docker image to run the packer

Re: [packer] Azure builder context deadline exceeded

2018-10-15 Thread Alvaro Miranda Aguilera
Hello Can you provide more context? what do you mean by resource group deployment? alvaro On Fri, Oct 12, 2018 at 1:08 AM goffries wrote: > I'm starting to see the below error with the azure builder. Is there a way > to increase the timeout during the resource group deployment? > > ==>

Re: [packer] Template Cloudstack Windows Server

2018-10-09 Thread Alvaro Miranda Aguilera
hello if you remove packer from the question, will be a normal windows question on how to do a silent install. all this is answered in microsoft windows documentation. you can pass unattended.xml over a floppy, or add it in some other way, all this is documented in Microsoft. When you get

Re: [packer] Error: hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop

2018-10-09 Thread Alvaro Miranda Aguilera
seems are some issues with the script: ps015687669.ps1 check the error something strange on line 5 alvaro On Sat, Oct 6, 2018 at 9:58 AM Muthu R D wrote: > I am trying to generate the Hyper-V vhdx file, however getting the below > error message, Would you please check and advise. > >

Re: [packer] VM built with VMware Workstation Player does not work on ESXi

2018-10-02 Thread Alvaro Miranda Aguilera
using a fixed size variant (thick). > > On Tuesday, October 2, 2018 at 7:41:32 PM UTC+1, Alvaro Miranda Aguilera > wrote: >> >> Hello. >> >> I can think on 2 options. >> >> 1. you run the VM converter and convert the VM before giving it to your >>

Re: [packer] VM built with VMware Workstation Player does not work on ESXi

2018-10-02 Thread Alvaro Miranda Aguilera
Hello. I can think on 2 options. 1. you run the VM converter and convert the VM before giving it to your customer. 2. Install ESXi host, and either build/convert a VM and then use OVFTool to export as OVA. That will be from ESXi to ESXi. Alvaro. On Mon, Oct 1, 2018 at 7:40 PM Elisiário Couto

Re: [packer] multiple platforms

2018-09-25 Thread Alvaro Miranda Aguilera
hello the idea is packer uses a json file and you can add remove components. you can have a provisioning script, where packer will run the same script to a qemu and esx, and then the 2 created VMs were provision for the same script. The identical part is not to be taken as one VM will be built

Re: [packer] Re: How to skip the installing updates part in the windows installation ?

2018-09-25 Thread Alvaro Miranda Aguilera
do you have any packer specific question? your question seems more the kind of question i would expect be in the manual of the OS you are using, ie Windows 10 pro. alvaro. On Sat, Sep 22, 2018 at 2:06 PM Ayman RBATI wrote: > en_windows_10_pro_10240_x64_dvd >>> >> > Please answer as soon as

Re: [packer] VBoxManage error: nonexistent host networking interface

2018-09-25 Thread Alvaro Miranda Aguilera
hello there if you could share an actual copy of your repo in github, and a copy of the packer build output will be quicker to help. alvaro On Mon, Sep 24, 2018 at 12:26 PM dean warren wrote: > FYI @Rickard my folder structure is as follows: > > packer.json > http > autoinst.xml > scripts

Re: [packer] there is a way to create a nano image with 300mb of space

2018-09-21 Thread Alvaro Miranda Aguilera
Hello Did you build per that blogpost and got something bigger than 300mb? you have an specific requirement on 300mb? Alvaro On Wed, Sep 19, 2018 at 10:38 PM federico montaldo wrote: > All, > > I wan to know if there a posibility to deply a windows nano server > with a size off 300MB?. As

Re: [packer] Releasing Patch version 1.3.1

2018-09-16 Thread Alvaro Miranda Aguilera
 On Fri, Sep 14, 2018 at 9:20 PM wrote: > Hey Packer community! > > We've just released Patch version 1.3.1. We normally try not to do > releases so close together, but we found a critical bug in the new > progress-bar code that was causing deadlocks for many of our users. We've > fixed this

Re: [packer] Using two disks to configure the OS with packer

2018-09-07 Thread Alvaro Miranda Aguilera
Hello Packer for qemu will create just one disk: https://www.packer.io/docs/builders/qemu.html#disk_size Alvaro On Fri, Sep 7, 2018 at 3:23 AM wrote: > I have a qcow2 image that I can tweak using packer with the provisioners > etc. However, I have a situation where when the image that boots

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

2018-09-06 Thread Alvaro Miranda Aguilera
at 9:22:32 AM UTC-4, Alvaro Miranda > Aguilera wrote: >> >> packer checks for exit code 0 (linux/unix way) >> >> whats the exit code of that command? >> >> alvaro >> >> On Thu, Sep 6, 2018 at 2:40 PM roni yako wrote: >> >>> Issue: Wh

Re: [packer] Image sysprep not completing

2018-09-06 Thread Alvaro Miranda Aguilera
Hello that only that particular flavour fails, rise an eyebrow as you are MS on MS, can't get azure to comment? On Fri, Aug 24, 2018 at 11:34 AM wrote: > Hi all, > > Using the very basic sysprep command, as given in Packer documentation. I > can create images from all Windows Server SKUs,

Re: [packer] Networking when Packer boots up an image, ssh issue

2018-09-06 Thread Alvaro Miranda Aguilera
hello if you could put your code in a repo will be easier to test and review alvaro On Sun, Aug 26, 2018 at 6:17 PM wrote: > I have a question on this. When I bootup my qemu raw image without using > packer(say using libvirt/virsh), I can see it gets a 192.x.x.x IP and I can > ssh into it.

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

2018-09-06 Thread Alvaro Miranda Aguilera
packer checks for exit code 0 (linux/unix way) whats the exit code of that command? alvaro On Thu, Sep 6, 2018 at 2:40 PM roni yako wrote: > Issue: When a provisioner powershell file has the "Start-Sleep" command, > the script fails and exits with a error code of 16001. > > The start-sleep

Re: [packer] How to skip the installing updates part in the windows installation ?

2018-09-06 Thread Alvaro Miranda Aguilera
Hello seems a question for Microsoft rather than packer mailing list I assume is somewhere on the documentation of the OS. Alvaro. On Wed, Sep 5, 2018 at 10:38 PM Ayman RBATI wrote: > [image: image] > > -- > This mailing list is governed under the HashiCorp Community Guidelines - >

  1   2   3   4   >