Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to unzip "C:\Users\vagrant\windows.iso" #37

Closed
3goats opened this issue Oct 1, 2015 · 9 comments
Closed

Unable to unzip "C:\Users\vagrant\windows.iso" #37

3goats opened this issue Oct 1, 2015 · 9 comments
Assignees
Labels
question stale This issue has had no recent or new discussion and will be forcefully closed in 1 month

Comments

@3goats
Copy link

3goats commented Oct 1, 2015

I'm getting a build error (VmWare) with what looks like the vmtool.bat file. If I remove it from the Packer config file it works. VirtualBox and Parallels is working OK.

==> vmware-iso: Provisioning with shell script: script/vmtool.bat
    vmware-iso: ==> Creating "C:\Users\vagrant\AppData\Local\Temp\sevenzip"
    vmware-iso: ==> Downloading "http://www.7-zip.org/a/7z938-x64.msi" to "C:\Users\vagrant\AppData\Local\Temp\sevenzip\7z938-x64.msi"
    vmware-iso: ==> Installing "C:\Users\vagrant\AppData\Local\Temp\sevenzip\7z938-x64.msi"
    vmware-iso: 2015-10-01 11:16:36 URL:http://d.7-zip.org/a/7z938-x64.msi [1513472/1513472] -> "C:/Users/vagrant/AppData/Local/Temp/sevenzip/7z938-x64.msi" [1]
    vmware-iso: ==> Copying "C:\Program Files\7-Zip\7z.exe" to "C:\Windows"
    vmware-iso: 1 file(s) copied.
    vmware-iso: 1 file(s) copied.
    vmware-iso: ==> Extracting the VMWare Tools installer
    vmware-iso:
    vmware-iso: 7-Zip [64] 9.38 beta  Copyright (c) 1999-2014 Igor Pavlov  2015-01-03
    vmware-iso:
    vmware-iso: Processing archive: C:\Users\vagrant\windows.iso
    vmware-iso:
    vmware-iso: Error: Can not open file as archive
    vmware-iso:
    vmware-iso: Can't open as archive: 1
    vmware-iso: Files: 0
    vmware-iso: Size:       0
    vmware-iso: Compressed: 0
    vmware-iso:
    vmware-iso: Kernel  Time =     0.000 =    0%
    vmware-iso: User    Time =     0.000 =    0%
    vmware-iso: Process Time =     0.000 =    0%    Virtual  Memory =      1 MB
    vmware-iso: Global  Time =     0.000 =    0%    Physical Memory =      3 MB
    vmware-iso: ==> WARNING: Error 2 was returned by: 7z e -o"C:\Users\vagrant\AppData\Local\Temp\vmware" "C:\Users\vagrant\windows.iso" "setup64.exe"
    vmware-iso: ==> Unable to unzip "C:\Users\vagrant\windows.iso"
    vmware-iso:
    vmware-iso: Pinging 127.0.0.1 with 32 bytes of data:
    vmware-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    vmware-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    vmware-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    vmware-iso: Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
    vmware-iso:
    vmware-iso: Ping statistics for 127.0.0.1:
    vmware-iso: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    vmware-iso: Approximate round trip times in milli-seconds:
    vmware-iso: Minimum = 0ms, Maximum = 0ms, Average = 0ms
    vmware-iso: ==> Script exiting with errorlevel 1
==> vmware-iso: Stopping virtual machine...
==> vmware-iso: Deleting output directory...
Build 'vmware-iso' errored: Script exited with non-zero exit status: 1

==> Some builds didn't complete successfully and had errors:
--> vmware-iso: Script exited with non-zero exit status: 1

==> Builds finished but no artifacts were created.
make: *** [box/vmware/win2012r2-datacenter-nocm-1.0.4.box] Error 1
@vFondevilla
Copy link

Same here with VMware Fusion 8 Pro, Packer 0.8.6 and Vagrant 1.7.4

@vmenajr
Copy link

vmenajr commented Nov 18, 2015

I'm having the same issue and currently running with the suggestion from the packer thread... However, I also decided to add floppy/update.bat to win7x64-enterprise.json. I mistakenly assumed that simply setting "updates=true" on the packer build -var line would run the updates.

@icnocop
Copy link
Contributor

icnocop commented Nov 19, 2015

Can you explicitly set "tools_upload_path": "C:/Users/vagrant/windows.iso" or "tools_upload_path": "c:/Windows/Temp/windows.iso"?

@jstortz
Copy link

jstortz commented Nov 26, 2015

Same here with VMware Fusion 8.02 Pro, Packer 0.8.6 and Vagrant 1.7.4

@icnocop
Copy link
Contributor

icnocop commented Nov 27, 2015

If you are using WinRM, see packer-community/packer-windows-plugins#25

@icnocop
Copy link
Contributor

icnocop commented Nov 27, 2015

Not sure if this will help, but as suggested here and here you can try:
setting WINRMCP_DEBUG=1 (for logging purposes)
setting MaxConcurrentOperationsPerUser to 1000
setting MaxMemoryPerShellMB to 1000

@smudgerdan
Copy link

smudgerdan commented May 20, 2016

To get around this issue I disabled "guest_additions_mode" and instead read in the .vbox_version file and use it to create a URL in order to download the iso from download.virtualbox.org/virtualbox. There is still the chance that the .vbox_version file causes the error but as it is a much smaller file I have only seen it fail once.

@arizvisa
Copy link
Contributor

arizvisa commented Jan 5, 2020

I don't seem to have this issue, but despite that is this issue still occuring? A lot of things have changed since then so I just want to be sure.

I've marked this issue as stale as this is almost 4 years old. Iff nobody has any objections, I'll close it in one month.

@arizvisa arizvisa self-assigned this Jan 5, 2020
@arizvisa arizvisa added question stale This issue has had no recent or new discussion and will be forcefully closed in 1 month labels Jan 5, 2020
@arizvisa
Copy link
Contributor

Closing this. Let me know if closing it is a mistake and I'll re-open it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question stale This issue has had no recent or new discussion and will be forcefully closed in 1 month
Projects
None yet
Development

No branches or pull requests

7 participants