Comments (8)
The hooks are a good idea. I have really minimal requirements, I just want to install: OS, OS patches, Chef, VMWare or VBox tools. In fact I'd rather not install Cygwin if I could.
from packer-windows.
Cygwin is a silly requirement because @mitchellh decided to write Packer in Go ;) Or said another way: Go has no WinRM library, because it has no WS-* library, because it has no SOAP library, because the Go community hates SOAP / has no interest in implementing anything with it (See: https://botbot.me/freenode/go-nuts/msg/4943492/, https://botbot.me/freenode/go-nuts/msg/4943637/, https://botbot.me/freenode/go-nuts/msg/4943655/, https://botbot.me/freenode/go-nuts/msg/4943756/ & actual civility here: https://botbot.me/freenode/go-nuts/msg/4943739/). For the record, I understand their frustration with SOAP and WS-*, but the attitude is unbecoming, but is typical of the community's attitude towards Windows. Such is life.
I believe @mitchellh is thinking of shelling out to a ruby-based helper to provide WinRM support in the future in a way that is consistent for both Packer and Vagrant.
Essentially we install Cygwin purely to allow Packer to say 'hello, world!' to know it can move on to run the shutdown command. We could register a script in the registry to ensure that on first boot, it's removed again. But if we want people to be able to work with Packer provisioners, Cygwin is essential.
from packer-windows.
Windows 2012 R2 is available now as a download from MSDN. It's quite likely that I will switch to it within weeks.
Joe, can I assume you want to drive the build with trollop and command-line options?
We could also use WinRM to remove Cygwin at end of the build after packer has done its thing.
from packer-windows.
That makes sense - Trollop or some equivalent would be fine, and we could use a Ruby templating engine to build the .json file.
I'm interested in moving to 2012 R2 also. Hopefully it'll drastically cut down the time to build the box due to a lack of Windows Updates to apply ;)
If we use WinRM to remove Cygwin at the end of the build it could get a little complex, as packer's final 'action' prior to packaging is to run the shutdown command, which requires SSH. Seems like an easier option would be to just throw a script in HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run so that Cygwin is removed on first boot of the box.
from packer-windows.
Ah now I'm following. If we have some canned scripts that others can mix-and-match, then it makes sense to provide one to help remove Cygwin on first boot. (Also, enable remote desktop, disable hibernation, etc...)
Otherwise you what, create a vagrant-windows post-processor? :/
from packer-windows.
... Or you wait for @mitchellh to create a Ruby helper that Packer calls to leverage WinRM, allowing us to avoid installing Cygwin in the first place.
from packer-windows.
Work on this will continue at https://github.com/joefitzgerald/inductor
from packer-windows.
Fixed by #200
from packer-windows.
Related Issues (20)
- Internet Explorer can't open while User Account Control is turned off HOT 1
- Installation of Cygwin HOT 2
- Windows 10 still asking for region HOT 3
- Windows 2012 R2 in Waiting for SSH to become available... HOT 3
- Windows could not apply the unattend answer file's <DiskConfiguration> setting HOT 6
- vm-guest-tools.bat - Server 2016 issue HOT 4
- Disable welcome animation on Windows 8/10
- [question] Exclude Windows Update Patches KB's during update
- Packer hangs at : ==> vmware-iso: Waiting for SSH to become available... HOT 3
- VMWare tools installation hangs HOT 1
- debloat-windows.ps1 fails
- Packer(version1.3.2) running from AWS CodeBuild, Stops abruptly while execution PS script
- Step "StepProvision" failed
- Windows 7 iso is no longer available HOT 4
- Avoid using SourceForge tools to prevent potentially unwanted programms from being installed
- Multiple insecure HTTP download links HOT 3
- Windows Server 2019 win-updates.ps1 issue HOT 1
- Windows 10 "Waiting for WinRM to become available" HOT 1
- build stops at or after UltraDefrag HOT 1
- looks like a password was leaked as part of the openssh.ps1 script
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 packer-windows.