Comments (6)
Strange. I just kicked off a packer run to see if this reproduces. Did not have any luck reproducing this error. Its odd that it complains that "The definition "Get-Boxstarter" was not recognised" because that is the function that it is running inside of.
from packer-templates.
Just found out that this error occures when executing boxstarter.ps1
without admin privileges (tried to reproduce why the script didnt run until the end and executed boxstarter.ps1
for debugging purposes - without admin privileges... dumb myself).
Now the Get-Boxstarter
cmdlet is invoked and running, though it throws now the actual error which made the script stop.
This does happen when executing the Get-Boxstarter
cmdlet aswell as manually executing cinst Boxstarter -version 2.6.41
in the powershell. The chocolatey logfile doesnt give more information.
When cinst Boxstarter
on my host machine it does work without any errors. The VM has unrestricted access to the network and clist Boxstarter
returns the full dependency list.
from packer-templates.
very strange. Curious what happens if you run cinst Boxstarter.Common
from packer-templates.
Runs without problems and installs the Boxstarter.Common
package.
Edit: I did the following steps to detect if this problem remains to my configuration/iso or maybe this is being more general.
- cloned this repository
- replaced
iso_checksum
andiso_url
with my local ISO - set german as the default language in
Autounattend.xml
(en-US
=>de-DE
) because Ive only got a german ISO - ran
packer build -only virtualbox-iso -force vbox-2012r2.json
And still, the unresolved dependency of Boxstarter.Common
shows up and the boxstarter.ps1
script fails. (Here is my final almost untouched vbox-2012r2.json
).
So the error thrown belongs either to my ISO or my environment.
Since I can use the IE inside my (incomplete) machine the internet connection does work as expected, I can ping packages.chocolatey.org
without problems and also install Boxstarter.Common
by hand I dont think this error is related to network stuff.
Also, I'm curious if my ISO can cause such a problem - its most likely an original copy and has all features needed packaged.
from packer-templates.
@LokiTaria it's possible some part of the software isn't fully i18n compliant and can't handle the German names vs the English ones. Could you test with leaving the language on your ISO as English in the unattend, and then in the "postunattend.xml" try changing the language? You should be able to copy the XML block for language and drop it into the appropriate section since it is basically just another Autounattend that runs after the install is complete.
from packer-templates.
Actually the Boxstarter.ps1 doesn't work with Windows 7 Enterprise at the line 11:
Import-Module $env:appdata\boxstarter\boxstarter.chocolatey\boxstarter.chocolatey.psd1
because the folder boxstarter in AppData\Roaming isn't created due faulty chocolatey setup
EDIT: I've found out that in the function Enable-Net40 it's downloaded .NET 4.5 instead of downloading the .Net 4.0 (at this location)
from packer-templates.
Related Issues (20)
- error when installing vbox-2016.json HOT 1
- endless "Waiting for WinRM to become available" HOT 13
- mwrock/Windows2012R2 box: "The source files could not be downloaded." HOT 1
- SSL Errors on Corporate Network (Proposed Solution) HOT 1
- can't login as administrator in Windows2012R2 HOT 1
- Reupload box mwrock/Windows2012R2Full' (v0.1.0) so URL isn't broken
- Nano Build 2.0Gb... any ideas as to why and how to make smaller
- Remove Berksfile.lock from repo
- Chef client not removed
- Failure in creation of Windows 2016 images HOT 5
- ChefDK14 w/ chef-solo run fails due to Mixin HOT 6
- Server 2012 R2 Download ISO Path Broken
- nano server output
- Server 2016 broken link HOT 3
- can't login as administrator in Windows2012R2 HOT 1
- windows cookbook dependency in packer-templates cookbook incompatible with latest chef-client versions
- Win2016 HyperV - No Search Match For NuGet HOT 4
- Issues installing Chef
- Create templates for Win2008 R2 HOT 1
- Creating HOT 1
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-templates.