The term 'virtualbox-iso' is not recognized as the name of a cmdlet, function, script file, or operable program.
Opened this issue · 1 comments
I've checked out your repo and ran the following command:
packer build -force -only virtualbox-iso vbox-2012r2.json
As you can see at the end of the output below, there are no lines in the begining of the ps1 script that would generate this kind of output (before the first Write-Host?), so I think it has to do with Packer, right?
This is what I'm getting in the Windows Command Prompt:
==> virtualbox-iso: Provisioning with shell script: scripts/provision.ps1
virtualbox-iso: virtualbox-iso : The term 'virtualbox-iso' is not recognized as the name of a
virtualbox-iso: cmdlet, function, script file, or operable program. Check the spelling of the
virtualbox-iso: name, or if a path was included, verify that the path is correct and try again.
virtualbox-iso: At line:1 char:30
virtualbox-iso: + & { $env:PACKER_BUILDER_TYPE=virtualbox-iso;
virtualbox-iso: $env:PACKER_BUILD_NAME=virtualbox-i ...
virtualbox-iso: + ~~~~~~~~~~~~~~
virtualbox-iso: + CategoryInfo : ObjectNotFound: (virtualbox-iso:String) [], Comm
virtualbox-iso: andNotFoundException
virtualbox-iso: + FullyQualifiedErrorId : CommandNotFoundException
virtualbox-iso:
virtualbox-iso: virtualbox-iso : The term 'virtualbox-iso' is not recognized as the name of a
virtualbox-iso: cmdlet, function, script file, or operable program. Check the spelling of the
virtualbox-iso: name, or if a path was included, verify that the path is correct and try again.
virtualbox-iso: At line:1 char:69
virtualbox-iso: + & { $env:PACKER_BUILDER_TYPE=virtualbox-iso;
virtualbox-iso: $env:PACKER_BUILD_NAME=virtualbox-i ...
virtualbox-iso: +
virtualbox-iso: ~~~~~~~~~~~~
virtualbox-iso: + CategoryInfo : ObjectNotFound: (virtualbox-iso:String) [], Comm
virtualbox-iso: andNotFoundException
virtualbox-iso: + FullyQualifiedErrorId : CommandNotFoundException
virtualbox-iso:
virtualbox-iso: Enabling file sharing firewall rules
This is a sadly common and intermittent error. It can be fixed by changing the template to use attach instead of upload as the guest_additions_mode
. I'' eventually change this if no one beats me to it similar to https://github.com/mwrock/packer-templates/blob/master/vbox-2016.json