mwrock / packer-templates

Templates for creating vagrant boxes
Other
536 stars 250 forks source link

Issues installing 7zip to finish install #38

Closed b1v1r closed 8 years ago

b1v1r commented 8 years ago

packer build -force -only virtualbox-iso vbox-2012r2.json

This seems to work, but then there is an error installing 7zip.commandline. This is with eea6e05fa27b5089222de0194ba3fc444be1a117. I'm running from a Mac.

    virtualbox-iso: Installing the following packages:
    virtualbox-iso: 7zip.commandline
    virtualbox-iso: By installing you accept licenses for the packages.
    virtualbox-iso: 7zip.commandline not installed. The package was not found with the source(s) listed.
    virtualbox-iso: If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
    virtualbox-iso: 7z : The term '7z' is not recognized as the name of a cmdlet, function, script
    virtualbox-iso: Version: ""
    virtualbox-iso: Source(s): "https://chocolatey.org/api/v2/"
    virtualbox-iso:
    virtualbox-iso: Chocolatey installed 0/1 package(s). 1 package(s) failed.
    virtualbox-iso: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    virtualbox-iso: Failures:
    virtualbox-iso: - 7zip.commandline
    virtualbox-iso: file, or operable program. Check the spelling of the name, or if a path was
    virtualbox-iso: included, verify that the path is correct and try again.
    virtualbox-iso: At C:\Windows\Temp\script.ps1:12 char:5
    virtualbox-iso: +     7z x C:\Windows\Temp\VBoxGuestAdditions.iso -oC:\Windows\Temp\virtualbox
    virtualbox-iso: +     ~~
    virtualbox-iso: + CategoryInfo          : ObjectNotFound: (7z:String) [], ParentContainsEr
    virtualbox-iso: rorRecordException
    virtualbox-iso: + FullyQualifiedErrorId : CommandNotFoundException
    virtualbox-iso:
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
mwrock commented 8 years ago

chocolatey was having issues around the time this issue was created. I'd give it another try.

b1v1r commented 8 years ago

ok, well, I got a different error this time, so maybe it is just some instability vs a specific issue.

==> virtualbox-iso: Waiting for WinRM to become available...
==> virtualbox-iso: Connected to WinRM!
==> virtualbox-iso: Uploading VirtualBox version info (5.0.14)
==> virtualbox-iso: Uploading VirtualBox guest additions ISO...
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error uploading guest additions: Error uploading file to $env:TEMP\winrmcp-56d9e4c1-525e-892a-8ed3-be698af40d05.tmp: http error: 500 - <s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</a:Action><a:MessageID>uuid:12958D19-4E9A-4148-8ED5-B11741B77E1A</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:33911ff2-af5a-456c-5907-5fef140b9533</a:RelatesTo></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value><s:Subcode><s:Value>w:AccessDenied</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en-US">Access is denied. </s:Text></s:Reason><s:Detail><f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="5" Machine="127.0.0.1"><f:Message><f:ProviderFault provider="Shell cmd plugin" path="%systemroot%\system32\winrscmd.dll">Access is denied. </f:ProviderFault></f:Message></f:WSManFault></s:Detail></s:Fault></s:Body></s:Envelope>

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error uploading guest additions: Error uploading file to $env:TEMP\winrmcp-56d9e4c1-525e-892a-8ed3-be698af40d05.tmp: http error: 500 - <s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:e="http://schemas.xmlsoap.org/ws/2004/08/eventing" xmlns:n="http://schemas.xmlsoap.org/ws/2004/09/enumeration" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"><s:Header><a:Action>http://schemas.dmtf.org/wbem/wsman/1/wsman/fault</a:Action><a:MessageID>uuid:12958D19-4E9A-4148-8ED5-B11741B77E1A</a:MessageID><a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To><a:RelatesTo>uuid:33911ff2-af5a-456c-5907-5fef140b9533</a:RelatesTo></s:Header><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value><s:Subcode><s:Value>w:AccessDenied</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en-US">Access is denied. </s:Text></s:Reason><s:Detail><f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="5" Machine="127.0.0.1"><f:Message><f:ProviderFault provider="Shell cmd plugin" path="%systemroot%\system32\winrscmd.dll">Access is denied. </f:ProviderFault></f:Message></f:WSManFault></s:Detail></s:Fault></s:Body></s:Envelope>

==> Builds finished but no artifacts were created.