Git Product home page Git Product logo

Comments (9)

jbristow avatar jbristow commented on July 17, 2024

I solved this by putting the bin in the cloned repo directory.

Since I was on a mac, I had to massage the provider a little but I got it to work (Working up a couple PRs for that, since the massaging happened across a few repos) just fine once I recompiled the go binary.

from windows-vagrant.

rgl avatar rgl commented on July 17, 2024

Have a look at the last paragraphs of https://github.com/rgl/packer-provisioner-windows-update/blob/master/README.md. That is, set the packer log environment variable, and run packer again. The log should give more insight of why it's not finding the plugin.

from windows-vagrant.

jbristow avatar jbristow commented on July 17, 2024

Ah, I assumed that he was referring to the provider's readme which had this statement:

Download the binary from the releases page and put it in the same directory as your packer executable.

Which didn't work for me. But placing the bin file in the directory I was running packer from fixed the problem.

from windows-vagrant.

advait-patel avatar advait-patel commented on July 17, 2024

Hi, when I run packer build command with windows-update provisioner, it gives me the following error of - Failed to initialize build 'sql-server-image': error initializing provisioner 'windows-update': fork/exec /usr/local/bin/packer-provisioner-windows-update: permission denied.

I am running this on my mac. @rgl

from windows-vagrant.

rgl avatar rgl commented on July 17, 2024

I do not publish macos binaries (I no longer have a Mac). Only for windows and Linux.

from windows-vagrant.

advait-patel avatar advait-patel commented on July 17, 2024

Let me clarify my question: I have a packer.json file which will create an AMI for SQL Server on Windows server and I am going to run that packer file from my mac. So do I need to install the plugin on my mac? If yes, then I can't as the binaries are not available for mac. Also, do you have a script that updates windows? @rgl

from windows-vagrant.

rgl avatar rgl commented on July 17, 2024

The packer plugins run in the same machine as packer itself, so yes, you would need to install it in your mac, but you have to compile/test it yourself.

What do you mean by "a script that updates windows"?

from windows-vagrant.

advait-patel avatar advait-patel commented on July 17, 2024

So if I am not able to use the plugin, I need to write a script (ex: a PowerShell script) that updates windows, correct?

from windows-vagrant.

rgl avatar rgl commented on July 17, 2024

I advice you to just compile the packer-provisioner-windows-update plugin in your mac.

Just install the latest golang in your mac, remove GOOS=linux GOARCH=amd64 from the Makefile, and type make to build the binary (as described at the Development section).

from windows-vagrant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.