Comments (9)
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.
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.
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.
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.
I do not publish macos binaries (I no longer have a Mac). Only for windows and Linux.
from windows-vagrant.
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.
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.
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.
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)
- How to downgrade PowerShell in Windows 2012? HOT 3
- optimize.ps1 not working on Windows 10 2004 HOT 2
- make build-windows-windows-2019-virtualbox shows /bin/sh: line 1: 7z: command not found HOT 2
- error when trying to use config.vm.synced_folder with rsync HOT 3
- Initial boot of Windows 2019 installation failed HOT 4
- packer: command not found HOT 2
- Windows 2016 build issues on ubuntu host... HOT 3
- Add clean target to Makefile HOT 3
- virtualbox-iso.windows-2022-amd64: error downloading ISO: [read tcp read: connection reset by peer] HOT 1
- Invalid link in doc concerning TMP/TMPDIR packer env variable HOT 1
- QEMU 7.1 removed -soundhw option HOT 2
- win2016 HOT 2
- error when attempting to rsync a synced folder HOT 1
- winrm and sshd services delayed-auto start HOT 2
- WinSxS folder cleanup fails on Windows-2022 HOT 2
- provision-openssh.ps1 fails when run from autounattend HOT 9
- packer: command not found HOT 1
- Provisioning fails with QEMU 8.1 HOT 2
- Windows 2016 ISO 404 HOT 1
- Run .NET Runtime Optimization (ngen) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-vagrant.