Giter Club home page Giter Club logo

Comments (6)

mwrock avatar mwrock commented on July 30, 2024

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.

 avatar commented on July 30, 2024

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.
cinst_boxstarter

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.

mwrock avatar mwrock commented on July 30, 2024

very strange. Curious what happens if you run cinst Boxstarter.Common

from packer-templates.

 avatar commented on July 30, 2024

Runs without problems and installs the Boxstarter.Common package.
boxstarter_common

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 and iso_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.

dragon788 avatar dragon788 commented on July 30, 2024

@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.

madduci avatar madduci commented on July 30, 2024

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)

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.